public OrderService(IOrderRepository orderRepository, ICustomerFactory customerFactory, IEmailService emailService, IOrderSettings orderSettings) { _orderRepository = orderRepository; _customerFactory = customerFactory; _emailService = emailService; _orderSettings = orderSettings; }
public OrderService(IOrderRepository orderRepository, ICustomerFactory customerFactory, IEmailService emailService, IOrderSettings orderSettings) { _orderRepository = orderRepository; _customerFactory = customerFactory; _emailService = emailService; _orderSettings = orderSettings; }
public OrderService(ICustomerFactory customerFactory, IEmailService emailService, IOrderSettings orderSettings, IOrderGroupFactory orderGroupFactory, IOrderRepository orderRepository, ICurrentMarket currentMarket, IPromotionEngine promotionEngine ) { _orderRepository = orderRepository; _promotionEngine = promotionEngine; _customerFactory = customerFactory; _emailService = emailService; _orderSettings = orderSettings; _orderGroupFactory = orderGroupFactory; _market = currentMarket.GetCurrentMarket(); }
public DataAccess(IOrderSettings orderSettings) { _client = new MongoClient(orderSettings.ConnectionString); _db = _client.GetDatabase(orderSettings.DatabaseName); _orders = _db.GetCollection <Order>(orderSettings.OrdersCollectionName); }