public ExchangeSetCleanUpService(IAzureFileSystemHelper azureFileSystemHelper, IOptions <EssFulfilmentStorageConfiguration> storageConfig, ISalesCatalogueStorageService scsStorageService, IConfiguration configuration, ILogger <ExchangeSetCleanUpService> logger, IOptions <CleanUpConfiguration> cleanUpConfig) { this.azureFileSystemHelper = azureFileSystemHelper; this.storageConfig = storageConfig; this.scsStorageService = scsStorageService; this.configuration = configuration; this.logger = logger; this.cleanUpConfig = cleanUpConfig; }
public void Setup() { fakeAzureFileSystemHelper = A.Fake <IAzureFileSystemHelper>(); fakeStorageConfig = Options.Create(new EssFulfilmentStorageConfiguration() { StorageContainerName = "Test" }); fakeScsStorageService = A.Fake <ISalesCatalogueStorageService>(); fakeConfiguration = A.Fake <IConfiguration>(); fakeLogger = A.Fake <ILogger <ExchangeSetCleanUpService> >(); fakeCleanUpConfig = Options.Create(new CleanUpConfiguration() { NumberOfDays = 1 }); exchangeSetCleanUpService = new ExchangeSetCleanUpService(fakeAzureFileSystemHelper, fakeStorageConfig, fakeScsStorageService, fakeConfiguration, fakeLogger, fakeCleanUpConfig); }