public OrderEditPresenter(IOrderEditDataBinder dataBinder, IViewFactory viewFactory)
 {
     if (dataBinder == null)
         throw new ArgumentNullException("dataBinder");
     if (viewFactory == null)
         throw new ArgumentNullException("viewFactory");
     _dataBinder = dataBinder;
     _viewFactory = viewFactory;
 }
Пример #2
0
 public ViewFactory(IOrderFactory orderFactory, IOrderListDataBinder orderListDataBinder, IOrderEditDataBinder orderEditDataBinder)
 {
     if (orderFactory == null)
         throw new ArgumentNullException("orderFactory");
     if (orderListDataBinder == null)
         throw new ArgumentNullException("orderListDataBinder");
     if (orderEditDataBinder == null)
         throw new ArgumentNullException("orderEditDataBinder");
     _orderFactory = orderFactory;
     _orderListDataBinder = orderListDataBinder;
     _orderEditDataBinder = orderEditDataBinder;
 }
Пример #3
0
 public OrderEditPresenter(IOrderEditDataBinder dataBinder, IViewFactory viewFactory)
 {
     if (dataBinder == null)
     {
         throw new ArgumentNullException("dataBinder");
     }
     if (viewFactory == null)
     {
         throw new ArgumentNullException("viewFactory");
     }
     _dataBinder  = dataBinder;
     _viewFactory = viewFactory;
 }
Пример #4
0
 public ViewFactory(IOrderFactory orderFactory, IOrderListDataBinder orderListDataBinder, IOrderEditDataBinder orderEditDataBinder)
 {
     if (orderFactory == null)
     {
         throw new ArgumentNullException("orderFactory");
     }
     if (orderListDataBinder == null)
     {
         throw new ArgumentNullException("orderListDataBinder");
     }
     if (orderEditDataBinder == null)
     {
         throw new ArgumentNullException("orderEditDataBinder");
     }
     _orderFactory        = orderFactory;
     _orderListDataBinder = orderListDataBinder;
     _orderEditDataBinder = orderEditDataBinder;
 }