public OrderListPresenter(IOrderFactory orderFactory, IOrderListDataBinder dataBinder, IViewFactory viewFactory)
 {
     if (orderFactory == null)
         throw new ArgumentNullException("orderFactory");
     if (dataBinder == null)
         throw new ArgumentNullException("dataBinder");
     if (viewFactory == null)
         throw new ArgumentNullException("viewFactory");
     _orderFactory = orderFactory;
     _dataBinder = dataBinder;
     _viewFactory = viewFactory;
 }
 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;
 }
Exemple #3
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;
 }
Exemple #4
0
 public OrderListPresenter(IOrderFactory orderFactory, IOrderListDataBinder dataBinder, IViewFactory viewFactory)
 {
     if (orderFactory == null)
     {
         throw new ArgumentNullException("orderFactory");
     }
     if (dataBinder == null)
     {
         throw new ArgumentNullException("dataBinder");
     }
     if (viewFactory == null)
     {
         throw new ArgumentNullException("viewFactory");
     }
     _orderFactory = orderFactory;
     _dataBinder   = dataBinder;
     _viewFactory  = viewFactory;
 }