private static ProviderFundingVersionService CreateProviderFundingVersionService(ILogger logger                   = null,
                                                                                  IBlobClient blobClient           = null,
                                                                                  IFileSystemCache fileSystemCache = null,
                                                                                  IExternalApiFileSystemCacheSettings cacheSettings = null,
                                                                                  PublishingInterfaces.IPublishedFundingRepository publishedFundingRepository = null)
 {
     return(new ProviderFundingVersionService(blobClient ?? CreateBlobClient(),
                                              publishedFundingRepository ?? CreatePublishedFundingRepository(),
                                              logger ?? CreateLogger(),
                                              ExternalApiResilienceTestHelper.GenerateTestPolicies(),
                                              fileSystemCache ?? CreateFileSystemCache(),
                                              cacheSettings ?? CreateFileSystemCacheSettings()));
 }
Exemple #2
0
 private static PublishedFundingRetrievalService CreatePublishedFundingRetrievalService(
     IBlobClient blobClient           = null,
     ILogger logger                   = null,
     IFileSystemCache fileSystemCache = null,
     IExternalApiFileSystemCacheSettings cacheSettings = null)
 {
     return(new PublishedFundingRetrievalService(
                blobClient ?? CreateBlobClient(),
                ExternalApiResilienceTestHelper.GenerateTestPolicies(),
                fileSystemCache ?? CreateFileSystemCache(),
                logger ?? CreateLogger(),
                cacheSettings ?? CreateFileSystemCacheSettings()));
 }