/// <summary> /// Inject the contructor with insurance dependencies /// </summary> public InsuranceRepository(IEmailRepository emailRepo, IUserRepository userRepo, IDeductibleRepository deductibleRepo) { this.userRepo = userRepo; this.emailRepo = emailRepo; this.deductibleRepo = deductibleRepo; }
/// <summary> /// Property controller contructor to use contructor injection based on interface type /// </summary> public DeductibleController(IDeductibleRepository deductibleRepo, IInsuranceRepository insRepo) { this.deductibleRepo = deductibleRepo; this.insRepo = insRepo; }