public InvoiceProcessingService( ILog log, ITransactionManager transactionManager, IRetailerDemListRepository retailerDemListRepository, IRetailerProxy retailerProxy, IProductsProxy productsProxy) { this.log = log; this.transactionManager = transactionManager; this.retailerDemListRepository = retailerDemListRepository; this.retailerProxy = retailerProxy; this.productsProxy = productsProxy; }
public DemStockService( ITransactionManager transactionManager, IRetailerDemListRepository retailerDemListRepository, IRetailerProxy retailerProxy, ISalesRegionProxy salesRegionProxy, IProductsProxy productsProxy) { this.transactionManager = transactionManager; this.retailerDemListRepository = retailerDemListRepository; this.retailerProxy = retailerProxy; this.salesRegionProxy = salesRegionProxy; this.productsProxy = productsProxy; }
public void SetUpContext() { this.DemListRepository = Substitute.For <IRetailerDemListRepository>(); this.TransactionManager = Substitute.For <ITransactionManager>(); this.RetailerProxy = Substitute.For <IRetailerProxy>(); this.SalesRegionProxy = Substitute.For <ISalesRegionProxy>(); this.ProductsProxy = Substitute.For <IProductsProxy>(); this.Sut = new DemStockService( this.TransactionManager, this.DemListRepository, this.RetailerProxy, this.SalesRegionProxy, this.ProductsProxy); }
public void EstablishContext() { this.TransactionManager = Substitute.For <ITransactionManager>(); this.Log = Substitute.For <ILog>(); this.RetailerDemListRepository = Substitute.For <IRetailerDemListRepository>(); this.RetailerProxy = Substitute.For <IRetailerProxy>(); this.ProductsProxy = Substitute.For <IProductsProxy>(); this.Sut = new InvoiceProcessingService( this.Log, this.TransactionManager, this.RetailerDemListRepository, this.RetailerProxy, this.ProductsProxy); }