Ejemplo n.º 1
0
 public void Setup()
 {
     this.fakeLogger = A.Fake <ILogger <SalesCatalogueService> >();
     this.fakeAuthScsTokenProvider = A.Fake <IAuthScsTokenProvider>();
     this.fakeSaleCatalogueConfig  = Options.Create(new SalesCatalogueConfiguration()
     {
         ProductType = "Test", Version = "t1", CatalogueType = "essTest"
     });
     this.fakeSalesCatalogueClient = A.Fake <ISalesCatalogueClient>();
     salesCatalogueService         = new SalesCatalogueService(fakeSalesCatalogueClient, fakeLogger, fakeAuthScsTokenProvider, fakeSaleCatalogueConfig);
 }
Ejemplo n.º 2
0
 public ProductDataService(IProductIdentifierValidator productIdentifierValidator,
                           IProductDataProductVersionsValidator productVersionsValidator,
                           IProductDataSinceDateTimeValidator productDataSinceDateTimeValidator,
                           ISalesCatalogueService salesCatalougeService,
                           IMapper mapper,
                           IFileShareService fileShareService,
                           ILogger <FileShareService> logger, IExchangeSetStorageProvider exchangeSetStorageProvider,
                           IOptions <EssFulfilmentStorageConfiguration> essFulfilmentStorageconfig, IMonitorHelper monitorHelper,
                           UserIdentifier userIdentifier, IAzureAdB2CHelper azureAdB2CHelper)
 {
     this.productIdentifierValidator        = productIdentifierValidator;
     this.productVersionsValidator          = productVersionsValidator;
     this.productDataSinceDateTimeValidator = productDataSinceDateTimeValidator;
     this.salesCatalogueService             = salesCatalougeService;
     this.mapper                     = mapper;
     this.fileShareService           = fileShareService;
     this.logger                     = logger;
     this.exchangeSetStorageProvider = exchangeSetStorageProvider;
     this.essFulfilmentStorageconfig = essFulfilmentStorageconfig;
     this.monitorHelper              = monitorHelper;
     this.userIdentifier             = userIdentifier;
     this.azureAdB2CHelper           = azureAdB2CHelper;
 }
Ejemplo n.º 3
0
        public void Setup()
        {
            fakeSalesCatalogueService = A.Fake <ISalesCatalogueService>();

            fulfilmentSalesCatalogueService = new FulfilmentSalesCatalogueService(fakeSalesCatalogueService);
        }
Ejemplo n.º 4
0
 public FulfilmentSalesCatalogueService(ISalesCatalogueService salesCatalogueService)
 {
     this.salesCatalogueService = salesCatalogueService;
 }