public FulfilmentDataService(IAzureBlobStorageService azureBlobStorageService, IFulfilmentFileShareService fulfilmentFileShareService, ILogger <FulfilmentDataService> logger, IOptions <FileShareServiceConfiguration> fileShareServiceConfig, IConfiguration configuration, IFulfilmentAncillaryFiles fulfilmentAncillaryFiles, IFulfilmentSalesCatalogueService fulfilmentSalesCatalogueService, IFulfilmentCallBackService fulfilmentCallBackService, IMonitorHelper monitorHelper) { this.azureBlobStorageService = azureBlobStorageService; this.fulfilmentFileShareService = fulfilmentFileShareService; this.logger = logger; this.fileShareServiceConfig = fileShareServiceConfig; this.configuration = configuration; this.fulfilmentAncillaryFiles = fulfilmentAncillaryFiles; this.fulfilmentSalesCatalogueService = fulfilmentSalesCatalogueService; this.fulfilmentCallBackService = fulfilmentCallBackService; this.monitorHelper = monitorHelper; }
public void Setup() { fakeScsStorageService = A.Fake <ISalesCatalogueStorageService>(); fakeAzureBlobStorageService = A.Fake <IAzureBlobStorageService>(); fakeQueryFssService = A.Fake <IFulfilmentFileShareService>(); fakeLogger = A.Fake <ILogger <FulfilmentDataService> >(); fakeConfiguration = A.Fake <IConfiguration>(); fakeFulfilmentAncillaryFiles = A.Fake <IFulfilmentAncillaryFiles>(); fakeFulfilmentDataService = A.Fake <IFulfilmentDataService>(); fakeFileShareServiceConfig = Options.Create(new FileShareServiceConfiguration() { BaseUrl = "http://tempuri.org", CellName = "DE260001", EditionNumber = "1", Limit = 10, Start = 0, ProductCode = "AVCS", ProductLimit = 4, UpdateNumber = "0", UpdateNumberLimit = 10, ParallelSearchTaskCount = 10, EncRoot = "ENC_ROOT", ExchangeSetFileFolder = "V01X01", Info = "INFO", ProductFileName = "TEST.TXT", CatalogFileName = "CATALOG.031", CommentVersion = "VERSION=1.0" }); fakeEssFulfilmentStorageConfiguration = Options.Create(new EssFulfilmentStorageConfiguration() { QueueName = "", StorageAccountKey = "", StorageAccountName = "", StorageContainerName = "" }); fakeFulfilmentSalesCatalogueService = A.Fake <IFulfilmentSalesCatalogueService>(); fakeFulfilmentCallBackService = A.Fake <IFulfilmentCallBackService>(); fakeMonitorHelper = A.Fake <IMonitorHelper>(); fulfilmentDataService = new FulfilmentDataService(fakeAzureBlobStorageService, fakeQueryFssService, fakeLogger, fakeFileShareServiceConfig, fakeConfiguration, fakeFulfilmentAncillaryFiles, fakeFulfilmentSalesCatalogueService, fakeFulfilmentCallBackService, fakeMonitorHelper); }