示例#1
0
 public SalesCatalogueService(ISalesCatalogueClient salesCatalogueClient,
                              ILogger <SalesCatalogueService> logger,
                              IAuthScsTokenProvider authScsTokenProvider,
                              IOptions <SalesCatalogueConfiguration> salesCatalogueConfig)
 {
     this.logger = logger;
     this.authScsTokenProvider = authScsTokenProvider;
     this.salesCatalogueConfig = salesCatalogueConfig;
     this.salesCatalogueClient = salesCatalogueClient;
 }
示例#2
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);
 }