示例#1
0
文件: Bill.cs 项目: VijayMVC/Cares
        /// <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 ServiceRtBaseController(IServiceRtService serviceRtService)
 {
     if (serviceRtService == null)
     {
         throw new ArgumentNullException("serviceRtService");
     }
     this.serviceRtService = serviceRtService;
 }
示例#3
0
        /// <summary>
        /// Constructor
        /// </summary>
        public ServiceRtDetailController(IServiceRtService serviceRtService)
        {
            if (serviceRtService == null && !ModelState.IsValid)
            {
                throw new ArgumentNullException("serviceRtService");
            }

            this.serviceRtService = serviceRtService;
        }