2828using Nhs . Appointments . Core . Messaging ;
2929using Nhs . Appointments . Core . Okta ;
3030using Nhs . Appointments . Core . ReferenceNumber ;
31+ using Nhs . Appointments . Core . ReferenceNumber . V1 ;
32+ using Nhs . Appointments . Core . ReferenceNumber . V2 ;
3133using Nhs . Appointments . Core . Reports ;
3234using Nhs . Appointments . Core . Reports . SiteSummary ;
3335using Nhs . Appointments . Persistance ;
36+ using Nhs . Appointments . Persistance . Reference ;
3437
3538namespace Nhs . Appointments . Api ;
3639
@@ -70,6 +73,7 @@ public static IFunctionsWorkerApplicationBuilder ConfigureFunctionDependencies(
7073
7174 builder . Services
7275 . Configure < CosmosDataStoreOptions > ( opts => opts . DatabaseName = "appts" )
76+ . Configure < ReferenceGroupOptions > ( opts => opts . InitialGroupCount = 100 )
7377 . Configure < SiteSummaryOptions > ( opts =>
7478 {
7579 opts . DaysForward = configuration . GetValue < int > ( "SITE_SUMMARY_DAYS_FORWARD" ) ;
@@ -94,11 +98,13 @@ public static IFunctionsWorkerApplicationBuilder ConfigureFunctionDependencies(
9498 . AddTransient < IAvailabilityCreatedEventStore , AvailabilityCreatedEventDocumentStore > ( )
9599 . AddTransient < IBookingsDocumentStore , BookingCosmosDocumentStore > ( )
96100 . AddTransient < IBookingReferenceDocumentStore , BookingReferenceCosmosDocumentStore > ( )
101+ . AddTransient < IReferenceNumberDocumentStore , ReferenceGroupCosmosDocumentStore > ( )
97102 . AddTransient < IEulaStore , EulaStore > ( )
98103 . AddTransient < IUserStore , UserStore > ( )
99104 . AddTransient < IRolesStore , RolesStore > ( )
100105 . AddTransient < IRolesService , RolesService > ( )
101106 . AddTransient < ISiteStore , SiteStore > ( )
107+ . AddTransient < IReferenceNumberProvider , ReferenceNumberProvider > ( )
102108 . AddTransient < IEmailWhitelistStore , EmailWhitelistStore > ( )
103109 . AddTransient < INotificationConfigurationStore , NotificationConfigurationStore > ( )
104110 . AddTransient < IAccessibilityDefinitionsStore , AccessibilityDefinitionsStore > ( )
0 commit comments