Example #1
0
 public static void addProducts()
 {
     var _logging = new LoggingBLL();
     _logging.logToDatabase("Startet datacreator.");
     try
     {
         var products = new ProductBLL();
         if (products.getAllProducts().Count != 0)
             return;
         addProduct(createAfterDinnerBlend());
         addProduct(createAstorLibano());
         addProduct(createBrazillianBlend());
         addProduct(createCafedeParis());
         addProduct(createChocoVanilje());
         addProduct(createCostaRicanTarrazu());
         addProduct(createEtiopiskMokka());
         addProduct(createExecutiveBlend());
         addProduct(createIndianMysore());
         addProduct(createIrishCream());
         addProduct(createKoffeinfriEspresso());
         addProduct(createKoffeinfriKaffe());
         addProduct(createMayfairBlend());
         addProduct(createMexicanCoffee());
         addProduct(createNutCream());
         addProduct(createOldBrownJava());
         addProduct(createPrimeHonduras());
     }
     catch (Exception ex)
     {
         _logging.logToDatabase(ex);
     }
 }
 public AdminEmployeeController()
 {
     _employeeBLL = new EmployeeBLL();
     _userBLL = new UserBLL();
     _loggingBLL = new LoggingBLL();
 }
 public SecurityController()
 {
     _userBLL = new UserBLL();
     _customerBLL = new CustomerBLL();
     _LoggingBLL = new LoggingBLL();
 }
Example #4
0
 public CustomerBLL()
 {
     _customerDAL = new CustomerDAL();
     _loggingBLL = new LoggingBLL();
 }
Example #5
0
 public ProductBLL()
 {
     _productDAL = new ProductDAL();
     _loggingBLL = new LoggingBLL();
 }
Example #6
0
 public OrderBLL(IOrderDAL iOrderDAL)
 {
     _orderDAL = iOrderDAL;
     _loggingBLL = new LoggingBLL();
 }
 public SecurityController(EmployeeBLL employeeBLL, UserBLL userBLL, LoggingBLL loggingBLL)
 {
     _EmployeeBLL = employeeBLL;
     _userBLL = userBLL;
     _loggingBLL = loggingBLL;
 }
 public AdminProductController(ProductBLL productBLL, LoggingBLL logginBLL)
 {
     _productBLL = productBLL;
     _loggingBLL = logginBLL;
 }
 public AdminLoggingController(LoggingBLL loggingBLL)
 {
     _loggingBLL = loggingBLL;
 }
 public SecurityController()
 {
     _userBLL = new UserBLL();
     _EmployeeBLL = new EmployeeBLL();
     _loggingBLL = new LoggingBLL();
 }
 public AdminLoggingController()
 {
     _loggingBLL = new LoggingBLL();
 }
Example #12
0
 public UserBLL()
 {
     _userDAL = new UserDAL();
     _loggingBLL = new LoggingBLL();
 }
Example #13
0
 public UserBLL(IUserDAL iUserDAL)
 {
     _userDAL = iUserDAL;
     _loggingBLL = new LoggingBLL();
 }
 public AdminEmployeeController(EmployeeBLL employeeBLL, UserBLL userBLL, LoggingBLL loggingBLL)
 {
     _employeeBLL = employeeBLL;
     _userBLL = userBLL;
     _loggingBLL = loggingBLL;
 }
 public AdminCustomerController()
 {
     _customerBLL = new CustomerBLL();
     _loggingBLL = new LoggingBLL();
 }
 public AdminProductController()
 {
     _productBLL = new ProductBLL();
     _loggingBLL = new LoggingBLL();
 }
 public AdminCustomerController(CustomerBLL customerBLL, LoggingBLL loggingBLL)
 {
     _customerBLL = customerBLL;
     _loggingBLL = loggingBLL;
 }
Example #18
0
 public ProductBLL(IProductDAL iProductDAL)
 {
     _productDAL = iProductDAL;
     _loggingBLL = new LoggingBLL();
 }
 public AdminOrderController(OrderBLL orderBLL, LoggingBLL loggingBLL)
 {
     _orderBLL = orderBLL;
     _loggingBLL = loggingBLL;
 }
 public OrderController()
 {
     _orderBLL = new OrderBLL();
     _loggingBLL = new LoggingBLL();
 }
Example #21
0
 public UserController()
 {
     _customerBLL = new CustomerBLL();
     _userBLL = new UserBLL();
     _loggingBLL = new LoggingBLL();
 }
Example #22
0
 public OrderBLL()
 {
     _orderDAL = new OrderDAL();
     _loggingBLL = new LoggingBLL();
 }
Example #23
0
 public CustomerBLL(ICustomerDAL iCustomerDAL)
 {
     _customerDAL = iCustomerDAL;
     _loggingBLL = new LoggingBLL();
 }