public HomeController(IRepositoryBase<Customer> customers, IRepositoryBase<Product> products, IRepositoryBase<Basket> baskets, IRepositoryBase<Voucher> vouchers, IRepositoryBase<BasketVoucher> basketVouchers, IRepositoryBase<VoucherType> voucherTypes) { this.customers = customers; this.products = products; this.baskets = baskets; this.vouchers = vouchers; this.basketVouchers = basketVouchers; this.voucherTypes = voucherTypes; basketService = new BasketService(this.baskets, this.vouchers, this.basketVouchers, this.voucherTypes); }
public HomeController(IRepositoryBase<Customer> customers, IRepositoryBase<Product> products, IRepositoryBase<Basket> baskets, IRepositoryBase<Voucher> vouchers, IRepositoryBase<BasketVoucher> basketVouchers, IRepositoryBase<VoucherType> voucherTypes) { this.customers = customers; this.products = products; this.baskets = baskets; this.vouchers = vouchers; this.basketVouchers = basketVouchers; this.voucherTypes = voucherTypes; this.kwRepository = new KeywordRepository(new DataContext()); this.catRepository = new CategoryRepository(new DataContext()); basketService = new BasketService(this.baskets, this.vouchers, this.basketVouchers, this.voucherTypes); }