Exemplo 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);
 }
Exemplo n.º 2
0
 public OrderLogic()
 {
     orderDB      = new OrderDB();
     cl           = new CustomerLogic();
     productDB    = new ProductDB();
     orderLineDB  = new OrderLineDB();
     productLogic = new ProductLogic();
     customerDB   = new CustomerDB();
 }
Exemplo 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();
 }
Exemplo n.º 4
0
 public void SetUp()
 {
     orderlineDB = new OrderLineDB(connectionString);
     productDB   = new ProductDB(connectionString);
 }
Exemplo n.º 5
0
 public OrderLineController()
 {
     olDb = new OrderLineDB();
 }