public ProductBusiness(DatabaseFactory df = null, UnitOfWork uow = null)
 {
     DatabaseFactory dfactory = df == null ? new DatabaseFactory() : df;
     _unitOfWork = uow == null ? new UnitOfWork(dfactory) : uow;
     _productRepository = new ProductRepository(dfactory);
     this._formsAuthenticationFactory = new FormsAuthenticationFactory();
 }
 public CustomerDetails(DatabaseFactory df = null, UnitOfWork uow = null)
 {
     DatabaseFactory dfactory = df == null ? new DatabaseFactory() : df;
     _unitOfWork = uow == null ? new UnitOfWork(dfactory) : uow;
     _customerdetailsRepository = new CustomerDetailsRepository(dfactory);
     this._formsAuthenticationFactory = new FormsAuthenticationFactory();
 }
 public OrderBusiness(DatabaseFactory df = null, UnitOfWork uow = null)
 {
     DatabaseFactory dfactory = df == null ? new DatabaseFactory() : df;
     _unitOfWork = uow == null ? new UnitOfWork(dfactory) : uow;
     _orderRepository = new OrderDetailsRepository(dfactory);
     this._formsAuthenticationFactory = new FormsAuthenticationFactory();
 }