Пример #1
0
        /// <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();
        }
Пример #2
0
 /// <summary>
 /// Constructor
 /// </summary>
 public InsuranceRateBaseController(IInsuranceRateService insuranceRateService)
 {
     if (insuranceRateService == null)
     {
         throw new ArgumentNullException("insuranceRateService");
     }
     this.insuranceRateService = insuranceRateService;
 }
Пример #3
0
        /// <summary>
        /// Constructor
        /// </summary>
        public InsuranceRtDetailController(IInsuranceRateService insuranceRateService)
        {
            if (insuranceRateService == null && !ModelState.IsValid)
            {
                throw new ArgumentNullException("insuranceRateService");
            }

            this.insuranceRateService = insuranceRateService;
        }