Пример #1
0
 public UnitOfWork(LifeInsuranceDbContext lifeInsuranceDbContext)
 {
     this._context      = lifeInsuranceDbContext;
     this.Contracts     = new ContractRepository(_context);
     this.CoveragePlans = new CoveragePlansRepository(_context);
     this.RateChart     = new RateChartRepository(_context);
 }
Пример #2
0
 public LifeInsuranceContractController(ILifeInsuranceRepository lifeInsuranceRepository, ICoveragePlanRepository coveragePlanRepository, IRateChartRepository rateChartRepository)
 {
     _lifeInsuranceRepository = lifeInsuranceRepository;
     _coveragePlanRepository  = coveragePlanRepository;
     _rateChartRepository     = rateChartRepository;
 }
 public CoveragePlanAndRates(ICoveragePlanRepository coveragePlanRepository, IRateChartRepository rateChartRepository)
 {
     this.coveragePlanRepository = coveragePlanRepository;
     this.rateChartRepository    = rateChartRepository;
 }