예제 #1
0
        //a constructor which sets the managers equal to the factory and what it does
        public AddOrder(ProductManager pManager, TaxRateManager tManager, OrderManager oManager)
        {
            _myProductManager = pManager;

            _myTaxManager = tManager;

            _myOrderManager = oManager;
        }
 //pass in what type of repository this is going to use
 public DisplayOrder(OrderManager manager)
 {
     _myOrderManager = manager;
 }
예제 #3
0
 public RemoveOrder(OrderManager manager)
 {
     _myOrderManager = manager;
 }
예제 #4
0
 //the constructor that is used to pull in which repository we are going to work with
 public EditOrder(OrderManager oManager, ProductManager pManager, TaxRateManager tManager)
 {
     _myProductManager = pManager;
     _myTaxManager = tManager;
     _myOrderManager = oManager;
 }