public OrderController(IObjectFactory objectFactory)
 {
     _userViewService      = objectFactory.Create <IUserViewService>();
     _orderModifyService   = objectFactory.Create <IOrderModifyService>();
     _orderViewService     = objectFactory.Create <IOrderViewService>();
     _orderTypeViewService = objectFactory.Create <IOrderTypeViewService>();
 }
 public CartController(IObjectFactory objectFactory)
 {
     _productViewService   = objectFactory.Create <IProductViewService>();
     _orderTypeViewService = objectFactory.Create <IOrderTypeViewService>();
     _orderModifyService   = objectFactory.Create <IOrderModifyService>();
     _orderViewService     = objectFactory.Create <IOrderViewService>();
     _userViewService      = objectFactory.Create <IUserViewService>();
     _userModifyService    = objectFactory.Create <IUserModifyService>();
     cart        = new Cart();
     currentUser = new UserViewModel();
 }
示例#3
0
 public RegistrationController(ICommandBus commandBus, IOrderViewService orderDao, IConferenceViewService conferenceDao)
     : base(conferenceDao)
 {
     this.commandBus = commandBus;
     this.orderDao   = orderDao;
 }
示例#4
0
 public OrderController(IOrderViewService orderViewService, IOrderService orderService)
 {
     _orderViewService = orderViewService;
     _orderService     = orderService;
 }
示例#5
0
 public OrderController(IConferenceViewService conferenceDao, IOrderViewService orderDao, ICommandBus bus)
     : base(conferenceDao)
 {
     this.orderDao = orderDao;
     this.bus      = bus;
 }