/// <summary> /// Constructor /// </summary> public Bill(IServiceRtService serviceRtService, IInsuranceRateService insuranceRateService, IRentalCharge rentalCharge, IRaDriverHelper raDriverHelper) { if (serviceRtService == null) { throw new ArgumentNullException("serviceRtService"); } if (insuranceRateService == null) { throw new ArgumentNullException("insuranceRateService"); } if (rentalCharge == null) { throw new ArgumentNullException("rentalCharge"); } if (raDriverHelper == null) { throw new ArgumentNullException("raDriverHelper"); } this.serviceRtService = serviceRtService; this.insuranceRateService = insuranceRateService; this.rentalCharge = rentalCharge; this.raDriverHelper = raDriverHelper; BillingSummary = new BillingSummary(); }
/// <summary> /// Constructor /// </summary> public InsuranceRateBaseController(IInsuranceRateService insuranceRateService) { if (insuranceRateService == null) { throw new ArgumentNullException("insuranceRateService"); } this.insuranceRateService = insuranceRateService; }
/// <summary> /// Constructor /// </summary> public InsuranceRtDetailController(IInsuranceRateService insuranceRateService) { if (insuranceRateService == null && !ModelState.IsValid) { throw new ArgumentNullException("insuranceRateService"); } this.insuranceRateService = insuranceRateService; }