public void OrdersTestsInitialize() { Resolve <IDbConnectionFactory>().DeleteAllTestData(); _orderPricesCommand = CreateOrderPricesCommand(); _purchasesCommand = CreatePurchasesCommand(); _ordersCommand = CreateOrdersCommand(_purchasesCommand); }
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; }