public OrderHandlerTests() { _customer = new FakeCustomerRepository(); _delivery = new FakeDeliveryFeeRepository(); _discount = new FakeDiscountRepository(); _orderRepository = new FakeOrderRepository(); _product = new FakeProductRepository();; }
public void Finalize() { _customerRepository = null; _deliveryFeeRepository = null; _discountRepository = null; _orderRepository = null; _productRepository = null; }
public void Initialize() { _customerRepository = new FakeCustomerRepository(); _deliveryFeeRepository = new FakeDeliveryFeeRepository(); _discountRepository = new FakeDiscountRepository(); _orderRepository = new FakeOrderRepository(); _productRepository = new FakeProductRepository(); }
public OrderHandler(ICustomerRepository customerRepository, IDeliveryFeeRepository deliveryFeeRepository, IDiscountRepository discountRepository, IProductRepository productRepository, IOrderRepository orderRepository) { _customerRepository = customerRepository; _deliveryFeeRepository = deliveryFeeRepository; _discountRepository = discountRepository; _productRepository = productRepository; _orderRepository = orderRepository; }
public OrderHandlerTests() { this._customerRepository = new FakeCustomerRepository(); this._deliveryFeeRepository = new FakeDeliveryFeeRepository(); this._discountRepository = new FakeDiscountRepository(); this._orderRepository = new FakeOrderRepository(); this._productRepository = new FakeProductsRepository(); }
public CommandHandler( ICustomerRepository customer, IDeliveryFeeRepository delivery, IDiscountRepository discount, IOrderRepository order, IProductRepository product) { _customer = customer; _delivery = delivery; _discount = discount; _orderRepository = order; _product = product; }
public CreateOrderCommandTests() { _customerRepository = new FakeCustomerRepository(); _deliveryRepository = new FakeDeliveryFeeRepository(); _discountRepository = new FakeDiscountRepository(); _productRepository = new FakeProductRepository(); _orderRepository = new FakeOrderRepository(); List <CreateOrderItemCommand> itemsOrder = new List <CreateOrderItemCommand>(); itemsOrder.Add(new CreateOrderItemCommand(Guid.NewGuid(), 1)); itemsOrder.Add(new CreateOrderItemCommand(Guid.NewGuid(), 3)); _orderCreateCommand = new CreateOrderCommand("", "05465845", "Azure", itemsOrder); }
public OutStorageService(IWayBillInfoRepository wayBillInfoRepository, IVenderFeeLogRepository venderFeeLogRepository, IOutStorageInfoRepository outStorageInfoRepository, IFreightService freightService, ICustomerOrderStatusRepository customerOrderStatusRepository = null, IDeliveryChannelConfigurationRepository deliveryChannelConfigurationRepository = null, IReceivingExpensRepository receivingExpensRepository = null, IReceivingExpenseInfoRepository receivingExpenseInfoRepository = null, IDeliveryFeeRepository deliveryFeeRepository = null, IDeliveryFeeInfoRepository deliveryFeeInfoRepository = null, IWaybillPackageDetailRepository waybillPackageDetailRepository = null, IWorkContext workContext = null, ITotalPackageInfoRepository totalPackageInfoRepository = null, ITotalPackageOutStorageRelationalInfoRepository totalPackageOutStorageRelationalInfoRepository = null, ITotalPackageTraceInfoRepository totalPackageTraceInfoRepository = null, ISystemConfigurationRepository systemConfigurationRepository = null, IMailPostBagInfoRepository mailPostBagInfoRepository = null, ICustomerOrderInfoRepository customerOrderInfoRepository = null, IB2CPreAlertLogsRepository b2CPreAlertLogsRepository = null) { _workContext = workContext; _wayBillInfoRepository = wayBillInfoRepository; _venderFeeLogRepository = venderFeeLogRepository; _outStorageInfoRepository = outStorageInfoRepository; _customerOrderStatusRepository = customerOrderStatusRepository; _deliveryChannelConfigurationRepository = deliveryChannelConfigurationRepository; //_inTackingLogInfoRepository = inTackingLogInfoRepository; _receivingExpensRepository = receivingExpensRepository; _receivingExpenseInfoRepository = receivingExpenseInfoRepository; _deliveryFeeRepository = deliveryFeeRepository; _deliveryFeeInfoRepository = deliveryFeeInfoRepository; _freightService = freightService; _waybillPackageDetailRepository = waybillPackageDetailRepository; _freightService = freightService; _totalPackageInfoRepository = totalPackageInfoRepository; _totalPackageOutStorageRelationalInfoRepository = totalPackageOutStorageRelationalInfoRepository; _totalPackageTraceInfoRepository = totalPackageTraceInfoRepository; _systemConfigurationRepository = systemConfigurationRepository; _mailPostBagInfoRepository = mailPostBagInfoRepository; _customerOrderInfoRepository = customerOrderInfoRepository; _b2CPreAlertLogsRepository = b2CPreAlertLogsRepository; }