/// <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 ServiceRtBaseController(IServiceRtService serviceRtService) { if (serviceRtService == null) { throw new ArgumentNullException("serviceRtService"); } this.serviceRtService = serviceRtService; }
/// <summary> /// Constructor /// </summary> public ServiceRtDetailController(IServiceRtService serviceRtService) { if (serviceRtService == null && !ModelState.IsValid) { throw new ArgumentNullException("serviceRtService"); } this.serviceRtService = serviceRtService; }