コード例 #1
0
 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;
 }
コード例 #2
0
 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;
 }
コード例 #3
0
ファイル: ContextBase.cs プロジェクト: linn/dem-stock
 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);
 }
コード例 #4
0
        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);
        }