예제 #1
0
        public void OrdersTestsInitialize()
        {
            Resolve <IDbConnectionFactory>().DeleteAllTestData();

            _orderPricesCommand = CreateOrderPricesCommand();
            _purchasesCommand   = CreatePurchasesCommand();
            _ordersCommand      = CreateOrdersCommand(_purchasesCommand);
        }
예제 #2
0
 public OrdersCommand(IOrdersRepository repository, IOrderPricesCommand orderPricesCommand, IProductsQuery productsQuery, IAllocationsCommand allocationsCommand, IAllocationsQuery allocationsQuery, IPurchasesCommand purchasesCommand)
 {
     _repository         = repository;
     _orderPricesCommand = orderPricesCommand;
     _productsQuery      = productsQuery;
     _allocationsCommand = allocationsCommand;
     _allocationsQuery   = allocationsQuery;
     _purchasesCommand   = purchasesCommand;
 }