// 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); }
public OrderLogic() { orderDB = new OrderDB(); cl = new CustomerLogic(); productDB = new ProductDB(); orderLineDB = new OrderLineDB(); productLogic = new ProductLogic(); customerDB = new CustomerDB(); }
public UserLogic() { userDB = new UserDB(); account = new Account(); cl = new CustomerLogic(); adminDB = new AdminDB(); productDB = new ProductDB(); orderLineDB = new OrderLineDB(); productLogic = new ProductLogic(); }
public void SetUp() { orderlineDB = new OrderLineDB(connectionString); productDB = new ProductDB(connectionString); }
public OrderLineController() { olDb = new OrderLineDB(); }