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 ProductService(ProductRepository _productRepository, Product _product)
 {
     this.productRepository = _productRepository;
     this.product           = _product;
 }
 public ProductService()
 {
     productRepository = new ProductRepository();
     product           = new Product();
 }