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