예제 #1
0
 public FulfilmentServiceJob(IConfiguration configuration,
                             IFulfilmentDataService fulFilmentDataService, ILogger <FulfilmentServiceJob> logger, IFileSystemHelper fileSystemHelper,
                             IFileShareService fileShareService, IOptions <FileShareServiceConfiguration> fileShareServiceConfig,
                             IAzureBlobStorageService azureBlobStorageService, IFulfilmentCallBackService fulfilmentCallBackService)
 {
     this.configuration         = configuration;
     this.fulFilmentDataService = fulFilmentDataService;
     this.logger                    = logger;
     this.fileSystemHelper          = fileSystemHelper;
     this.fileShareService          = fileShareService;
     this.fileShareServiceConfig    = fileShareServiceConfig;
     this.azureBlobStorageService   = azureBlobStorageService;
     this.fulfilmentCallBackService = fulfilmentCallBackService;
 }
예제 #2
0
        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);
        }