Esempio n. 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;
 }
 public RemoveOrder(OrderManager manager)
 {
     _myOrderManager = manager;
 }
 //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;
 }