コード例 #1
0
ファイル: VehicleService.cs プロジェクト: VijayMVC/Cares
        /// <summary>
        /// Constructor
        /// </summary>
        public VehicleService(IVehicleRepository vehicleRepository, IOperationRepository operationRepository, IFleetPoolRepository fleetPoolRepository,
                              ICompanyRepository companyRepository, IRegionRepository regionRepository, IFuelTypeRepository fuelTypeRepository,
                              IVehicleMakeRepository vehicleMakeRepository, IVehicleStatusRepository vehicleStatusRepository, IDepartmentRepository departmentRepository,
                              ITransmissionTypeRepository transmissionTypeResposirory, IBusinessPartnerRepository businessPartnerRepository,
                              IInsuranceTypeRepository insuranceTypeRepository, IMaintenanceTypeRepository maintenanceTypeRepository, IVehicleCheckListRepository vehicleCheckListRepository,
                              IVehicleModelRepository vehicleModelRepository, IVehicleCategoryRepository vehicleCategoryRepository, IOperationsWorkPlaceRepository operationsWorkPlaceRepository,
                              IVehicleMaintenanceTypeFrequencyRepository maintenanceTypeFrequencyRepository, IVehicleCheckListItemRepository vehicleCheckListItemRepository)
        {
            if (vehicleRepository == null)
            {
                throw new ArgumentNullException("vehicleRepository");
            }

            this.vehicleRepository                  = vehicleRepository;
            this.operationRepository                = operationRepository;
            this.fleetPoolRepository                = fleetPoolRepository;
            this.companyRepository                  = companyRepository;
            this.regionRepository                   = regionRepository;
            this.fuelTypeRepository                 = fuelTypeRepository;
            this.vehicleMakeRepository              = vehicleMakeRepository;
            this.vehicleStatusRepository            = vehicleStatusRepository;
            this.departmentRepository               = departmentRepository;
            this.transmissionTypeResposirory        = transmissionTypeResposirory;
            this.businessPartnerRepository          = businessPartnerRepository;
            this.insuranceTypeRepository            = insuranceTypeRepository;
            this.maintenanceTypeRepository          = maintenanceTypeRepository;
            this.vehicleCheckListRepository         = vehicleCheckListRepository;
            this.vehicleModelRepository             = vehicleModelRepository;
            this.vehicleCategoryRepository          = vehicleCategoryRepository;
            this.operationsWorkPlaceRepository      = operationsWorkPlaceRepository;
            this.maintenanceTypeFrequencyRepository = maintenanceTypeFrequencyRepository;
            this.vehicleCheckListItemRepository     = vehicleCheckListItemRepository;
        }
コード例 #2
0
 /// <summary>
 /// Constructor
 /// </summary>
 public VehicleCategoryService(IVehicleCategoryRepository vehicleCategoryRepository, IHireGroupDetailRepository hireGroupDetailRepository,
                               ISeasonalDiscountRepository seasonalDiscountRepository, IStandardDiscountRepository standardDiscountRepository, IVehicleRepository vehicleRepository)
 {
     this.vehicleCategoryRepository  = vehicleCategoryRepository;
     this.hireGroupDetailRepository  = hireGroupDetailRepository;
     this.seasonalDiscountRepository = seasonalDiscountRepository;
     this.standardDiscountRepository = standardDiscountRepository;
     this.vehicleRepository          = vehicleRepository;
 }
コード例 #3
0
ファイル: HireGroupService.cs プロジェクト: VijayMVC/Cares
 public HireGroupService(IHireGroupRepository hireGroupRepository, ICompanyRepository companyRepository, IVehicleCategoryRepository vehicleCategoryRepository,
                         IVehicleMakeRepository vehicleMakeRepository, IVehicleModelRepository vehicleModelRepository, IHireGroupDetailRepository hireGroupDetailRepository,
                         IHireGroupUpGradeRepository hireGroupUpGradeRepository)
 {
     if (hireGroupDetailRepository == null)
     {
         throw new ArgumentNullException("hireGroupDetailRepository");
     }
     this.hireGroupRepository        = hireGroupRepository;
     this.companyRepository          = companyRepository;
     this.vehicleCategoryRepository  = vehicleCategoryRepository;
     this.vehicleMakeRepository      = vehicleMakeRepository;
     this.vehicleModelRepository     = vehicleModelRepository;
     this.hireGroupDetailRepository  = hireGroupDetailRepository;
     this.hireGroupUpGradeRepository = hireGroupUpGradeRepository;
 }
コード例 #4
0
 /// <summary>
 ///  Constructor
 /// </summary>
 public SeasonalDiscountService(ISeasonalDiscountRepository seasonalDiscountRepository,
                                ISeasonalDiscountMainRepository seasonalDiscountMainRepository, ICompanyRepository companyRepository,
                                IDepartmentRepository departmentRepository, IOperationRepository operationRepository, ITariffTypeRepository tariffTypeRepository,
                                IHireGroupRepository hireGroupRepository, IOperationsWorkPlaceRepository operationsWorkPlaceRepository, IVehicleCategoryRepository vehicleCategoryRepository,
                                IVehicleMakeRepository vehicleMakeRepository, IVehicleModelRepository vehicleModelRepository, IBpRatingTypeRepository ratingTypeRepository)
 {
     this.seasonalDiscountRepository     = seasonalDiscountRepository;
     this.seasonalDiscountMainRepository = seasonalDiscountMainRepository;
     this.companyRepository             = companyRepository;
     this.departmentRepository          = departmentRepository;
     this.operationRepository           = operationRepository;
     this.operationRepository           = operationRepository;
     this.tariffTypeRepository          = tariffTypeRepository;
     this.operationsWorkPlaceRepository = operationsWorkPlaceRepository;
     this.vehicleCategoryRepository     = vehicleCategoryRepository;
     this.vehicleMakeRepository         = vehicleMakeRepository;
     this.vehicleModelRepository        = vehicleModelRepository;
     this.hireGroupRepository           = hireGroupRepository;
     this.ratingTypeRepository          = ratingTypeRepository;
 }
コード例 #5
0
ファイル: TariffRateService.cs プロジェクト: VijayMVC/Cares
 public TariffRateService(IDepartmentRepository departmentRepository, ICompanyRepository companyRepository,
                          IOperationRepository operationRepository,
                          IVehicleModelRepository vehicleModelRepository, IVehicleMakeRepository vehicleMakeRepository,
                          IVehicleCategoryRepository vehicleCategoryRepository,
                          IHireGroupRepository hireGroupRepository, ITariffTypeRepository tariffTypeRepository,
                          IStandardRateMainRepository standardRateMainRepository,
                          IHireGroupDetailRepository hireGroupDetailRepository, IStandardRateRepository standardRateRepository)
 {
     this.operationRepository        = operationRepository;
     this.departmentRepository       = departmentRepository;
     this.companyRepository          = companyRepository;
     this.vehicleModelRepository     = vehicleModelRepository;
     this.vehicleMakeRepository      = vehicleMakeRepository;
     this.vehicleCategoryRepository  = vehicleCategoryRepository;
     this.hireGroupRepository        = hireGroupRepository;
     this.tariffTypeRepository       = tariffTypeRepository;
     this.standardRateMainRepository = standardRateMainRepository;
     this.hireGroupDetailRepository  = hireGroupDetailRepository;
     this.standardRateRepository     = standardRateRepository;
 }
 public VehicleController(IVehicleRepository vehicleRepository, IVehicleCategoryRepository vehicleCategoryRepository)
 {
     _vehicleRepo         = vehicleRepository;
     _vehicleCategoryRepo = vehicleCategoryRepository;
 }
コード例 #7
0
 public MockVehicleRepository(IVehicleCategoryRepository repo)
 {
     _repo = repo;
 }