Beispiel #1
0
        public void Setup()
        {
            fakeAzureBlobStorageClient  = A.Fake <IAzureBlobStorageClient>();
            fakeAzureStorageService     = A.Fake <ISalesCatalogueStorageService>();
            fakeAzureTableStorageClient = A.Fake <IAzureTableStorageClient>();
            fakeCacheConfiguration      = A.Fake <IOptions <CacheConfiguration> >();
            fakeEnterpriseEventCacheDataRequestValidator = A.Fake <IEnterpriseEventCacheDataRequestValidator>();
            fakeLogger = A.Fake <ILogger <EssWebhookService> >();
            fakeEssFulfilmentStorageConfig = A.Fake <IOptions <EssFulfilmentStorageConfiguration> >();
            fakeCacheConfiguration.Value.CacheBusinessUnit = "ADDS";
            fakeCacheConfiguration.Value.CacheProductCode  = "AVCS";

            service = new EssWebhookService(fakeAzureTableStorageClient, fakeAzureStorageService, fakeAzureBlobStorageClient, fakeEnterpriseEventCacheDataRequestValidator, fakeCacheConfiguration, fakeLogger, fakeEssFulfilmentStorageConfig);
        }
Beispiel #2
0
 public EssWebhookService(IAzureTableStorageClient azureTableStorageClient,
                          ISalesCatalogueStorageService azureStorageService,
                          IAzureBlobStorageClient azureBlobStorageClient,
                          IEnterpriseEventCacheDataRequestValidator enterpriseEventCacheDataRequestValidator,
                          IOptions <CacheConfiguration> cacheConfiguration,
                          ILogger <EssWebhookService> logger,
                          IOptions <EssFulfilmentStorageConfiguration> essFulfilmentStorageconfig)
 {
     this.azureTableStorageClient = azureTableStorageClient;
     this.azureStorageService     = azureStorageService;
     this.azureBlobStorageClient  = azureBlobStorageClient;
     this.enterpriseEventCacheDataRequestValidator = enterpriseEventCacheDataRequestValidator;
     this.cacheConfiguration         = cacheConfiguration;
     this.logger                     = logger;
     this.essFulfilmentStorageconfig = essFulfilmentStorageconfig;
 }