Ejemplo n.º 1
0
 // Database test constructor. Only used for testing.
 public OrderLogic(string connectionString)
 {
     orderDB      = new OrderDB(connectionString);
     cl           = new CustomerLogic(connectionString);
     productDB    = new ProductDB(connectionString);
     orderLineDB  = new OrderLineDB(connectionString);
     productLogic = new ProductLogic(connectionString);
     customerDB   = new CustomerDB(connectionString);
 }
Ejemplo n.º 2
0
 public OrderLogic()
 {
     orderDB      = new OrderDB();
     cl           = new CustomerLogic();
     productDB    = new ProductDB();
     orderLineDB  = new OrderLineDB();
     productLogic = new ProductLogic();
     customerDB   = new CustomerDB();
 }
Ejemplo n.º 3
0
 public UserLogic()
 {
     userDB       = new UserDB();
     account      = new Account();
     cl           = new CustomerLogic();
     adminDB      = new AdminDB();
     productDB    = new ProductDB();
     orderLineDB  = new OrderLineDB();
     productLogic = new ProductLogic();
 }
Ejemplo n.º 4
0
 public void SetUp()
 {
     orderlineDB = new OrderLineDB(connectionString);
     productDB   = new ProductDB(connectionString);
 }
Ejemplo n.º 5
0
 public OrderLineController()
 {
     olDb = new OrderLineDB();
 }