Esempio n. 1
0
        /// <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;
        }
 public VehiclesController(IVehicleRepository vehicleRepo,
                           IManufacturerRepository makeRepo, IVehicleModelRepository modelRepo, IMapper mapper)
 {
     _modelRepo   = modelRepo;
     _makeRepo    = makeRepo;
     _mapper      = mapper;
     _vehicleRepo = vehicleRepo;
 }
 /// <summary>
 /// Call repository
 /// </summary>
 /// <param name="repository"> The <see cref="IVehicleModelRepository"/>.</param>
 /// <exception cref="ArgumentNullException">repository isNull</exception>
 public VehicleModelController(IVehicleModelRepository repository)
 {
     if (repository == null)
     {
         throw new ArgumentNullException("repository");
     }
     _repository = repository;
 }
 public StartupDataLoader(IProvinceRepository provinceRepository, ICityRepository cityRepository, IUserRepository userRepository, IVehicleBrandRepository vehicleBrandRepository, IVehicleModelRepository vehicleModelRepository)
 {
     _provinceRepository = provinceRepository;
     _cityRepository = cityRepository;
     _userRepository = userRepository;
     _vehicleBrandRepository = vehicleBrandRepository;
     _vehicleModelRepository = vehicleModelRepository;
 }
Esempio n. 5
0
 public StartupDataLoader(IProvinceRepository provinceRepository, ICityRepository cityRepository, IUserRepository userRepository, IVehicleBrandRepository vehicleBrandRepository, IVehicleModelRepository vehicleModelRepository)
 {
     _provinceRepository     = provinceRepository;
     _cityRepository         = cityRepository;
     _userRepository         = userRepository;
     _vehicleBrandRepository = vehicleBrandRepository;
     _vehicleModelRepository = vehicleModelRepository;
 }
Esempio n. 6
0
 /// <summary>
 ///  Vehicle Model Constructor
 /// </summary>
 public VehicleModelService(IVehicleModelRepository vehicleModelRepository, IHireGroupDetailRepository hireGroupDetailRepository, ISeasonalDiscountRepository seasonalDiscountRepository,
                            IStandardDiscountRepository standardDiscountRepository, IVehicleRepository vehicleRepository)
 {
     this.vehicleModelRepository     = vehicleModelRepository;
     this.hireGroupDetailRepository  = hireGroupDetailRepository;
     this.seasonalDiscountRepository = seasonalDiscountRepository;
     this.standardDiscountRepository = standardDiscountRepository;
     this.vehicleRepository          = vehicleRepository;
 }
Esempio n. 7
0
 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;
 }
Esempio n. 8
0
        public VehicleModelDetailVM(IEventAggregator eventAggregator, IMessageService messageService,
                                    IUserPrivilege userPrivilege,
                                    IVehicleModelRepository vehicleModelRepository,
                                    IManufacturerLookupService manufacturerLookupService)
            : base(eventAggregator, messageService, userPrivilege)
        {
            this.vehicleModelRepository    = vehicleModelRepository;
            this.manufacturerLookupService = manufacturerLookupService;

            EventAggregator.GetEvent <AfterCollectionSavedEvent>().Subscribe(AfterCollectionSaved);
            EventAggregator.GetEvent <AfterDetailViewSavedEvent>().Subscribe(AfterDetailViewSaved);

            CreateNewVehicleCommand           = new DelegateCommand(OnCreateNewVehicleExecute, OnCreateNewVehicleCanExecute);
            OpenBrowseViewWithChildrenCommand =
                new DelegateCommand(OpenBrowseViewWithChildrenExecute, OpenBrowseViewWithChildrenCanExecute);

            Manufacturers = new ObservableCollection <LookupItem>();
        }
Esempio n. 9
0
 public VehicleDataService(ILogger <VehicleDataService> logger,
                           IExceptionService exceptionService,
                           IVehicleDataRepository vehicleDataRepository,
                           IService <UserDataDto> userService,
                           IVehicleUserDataRepository vehicleUserDataRepository,
                           IVehicleTypeRepository vehicleTypeRepository,
                           IVehicleBrandRepository vehicleBrandRepository,
                           IVehicleModelRepository vehicleModelRepository,
                           IServiceBus serviceBus)
 {
     _logger                    = logger;
     _exceptionService          = exceptionService;
     _vehicleDataRepository     = vehicleDataRepository;
     _userService               = userService;
     _vehicleUserDataRepository = vehicleUserDataRepository;
     _vehicleTypeRepository     = vehicleTypeRepository;
     _vehicleBrandRepository    = vehicleBrandRepository;
     _vehicleModelRepository    = vehicleModelRepository;
     _serviceBus                = serviceBus;
 }
Esempio n. 10
0
 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;
 }
Esempio n. 11
0
        public AddPresenter(ICustomerRepository customerRepo,
                            IVehicleBrandRepository brandRepo,
                            IVehicleModelRepository modelRepo,
                            IProvinceRepository provinceRepo,
                            ICityRepository cityRepo,
                            IVehicleRegistrationRepository registrationRepo,
                            IMembershipRegistrationRepository membershipRegistrationRepo)
        {
            CardManager.Initialize();

            CheckCardReader();

            _customerRepo               = customerRepo;
            _brandRepo                  = brandRepo;
            _modelRepo                  = modelRepo;
            _provinceRepo               = provinceRepo;
            _cityRepo                   = cityRepo;
            _registrationRepo           = registrationRepo;
            _membershipRegistrationRepo = membershipRegistrationRepo;
        }
Esempio n. 12
0
        public AddPresenter(ICustomerRepository customerRepo, 
                            IVehicleBrandRepository brandRepo,
                            IVehicleModelRepository modelRepo, 
                            IProvinceRepository provinceRepo,
                            ICityRepository cityRepo, 
                            IVehicleRegistrationRepository registrationRepo, 
                            IMembershipRegistrationRepository membershipRegistrationRepo)
        {
            CardManager.Initialize();

            CheckCardReader();

            _customerRepo = customerRepo;
            _brandRepo = brandRepo;
            _modelRepo = modelRepo;
            _provinceRepo = provinceRepo;
            _cityRepo = cityRepo;
            _registrationRepo = registrationRepo;
            _membershipRegistrationRepo = membershipRegistrationRepo;
        }
Esempio n. 13
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;
 }
Esempio n. 14
0
 public VehicleModelService(IVehicleModelRepository repository)
 {
     this.repository = repository;
 }
Esempio n. 15
0
 public ViewPresenter(IVehicleModelRepository modelRepo)
 {
     _modelRepo = modelRepo;
 }
Esempio n. 16
0
 public VehicleModelService(IVehicleModelRepository vehicleModelRepository)
 {
     this.vehicleModelRepository = vehicleModelRepository;
 }
Esempio n. 17
0
 public ViewPresenter(IVehicleBrandRepository brandRepo, IVehicleModelRepository modelRepo)
 {
     _brandRepo = brandRepo;
     _modelRepo = modelRepo;
 }
Esempio n. 18
0
 public VehicleModelService(IVehicleModelRepository vehicleMakeRepository)
 {
     _vehicleModelRepository = vehicleMakeRepository;
 }
 public VehicleModelController(IVehicleModelRepository modelRepo)
 {
     _modelRepo = modelRepo;
 }
Esempio n. 20
0
 public ModelController(IVehicleModelRepository service)
 {
     this.service = service;
 }
Esempio n. 21
0
 public VehicleModelService()
 {
     _modelRepository = new VehicleModelRepository(new VehicleContext());
 }
Esempio n. 22
0
 public VehicleModelService(IValidationDictionary validationDictionary, IVehicleModelRepository vehicleModelRepository)
 {
     _validationDictionary   = validationDictionary;
     _vehicleModelRepository = vehicleModelRepository;
 }
Esempio n. 23
0
 public VehicleModelService(IUnitOfWork unitOfWork, IVehicleModelRepository vehicleModelRepository)
 {
     _unitOfWork             = unitOfWork;
     _vehicleModelRepository = vehicleModelRepository;
 }
 public VehicleModelService()
 {
     this.vehicleModelRepository = new VehicleModelRepository();
 }
Esempio n. 25
0
 public AddPresenter(IVehicleModelRepository modelRepo, IVehicleBrandRepository brandRepo)
 {
     _modelRepo = modelRepo;
     _brandRepo = brandRepo;
 }
 public VehicleDetailsController(IVehicleDetailsRepository vehicleDetailsRepo, IVehicleModelRepository vehicleModelRepo, IUnitOfWork uow)
 {
     _vehicleDetailsRepo = vehicleDetailsRepo;
     _vehicleModelRepo   = vehicleModelRepo;
     _uow = uow;
 }
Esempio n. 27
0
        public UnitOfWork(
            IRequestInfo requestInfo,

            IColorRepository colorRepository,
            IRideStatusRepository rideStatusRepository,

            ICountryRepository countryRepository,
            IStateRepository stateRepository,
            ICityRepository cityRepository,

            IVehicleMakerRepository vehicleMakerRepository,
            IVehicleModelRepository vehicleModelRepository,
            IVehicleBodyTypeRepository vehicleBodyTypeRepository,
            IVehicleFeatureRepository vehicleFeatureRepository,
            IVehicleTransmissionRepository vehicleTransmissionRepository,
            IVehicleAssemblyRepository vehicleAssemblyRepository,
            IVehicleVehicleFeatureRepository vehicleVehicleFeatureRepository,
            IVehicleRepository vehicleRepository,

            ITravelUnitRepository travelUnitRepository,
            IDistanceUnitRepository distanceUnitRepository,
            IDriverStatusRepository driverStatusRepository,

            ICreditCardRepository creditCardRepository,
            ICurrencyRepository currencyRepository,
            ICurrencyLogRepository currencyLogRepository,

            IAccountRepository accountRepository,
            IAccountLogRepository accountLogRepository,

            IFavouriteLocationRepository favouriteLocationRepository,
            ILocationLagLonRepository locationLagLonRepository,

            IFareRepository fareRepository,
            IPackageRepository packageRepository,
            IPackageTravelUnitRepository packageTravelUnitRepository,
            IPackageVehicleAssemblyRepository packageVehicleAssemblyRepository,
            IPackageVehicleBodyTypeRepository packageVehicleBodyTypeRepository,
            IPackageVehicleFeatureRepository packageVehicleFeatureRepository,
            IPackageVehicleModelRepository packageVehicleModelRepository,
            IPackageVehicleTransmissionRepository packageVehicleTransmissionRepository,

            ISupervisorRepository supervisorRepository,
            IDriverRepository driverRepository,

            IDriverLocationRepository driverLocationRepository,
            IDriverLocationLogRepository driverLocationLogRepository,

            IDistanceRepository distanceRepository,
            ITimeTrackerRepository timeTrackerRepository,
            ICustomerRepository customerRepository,
            IRideRepository rideRepository
            )
        {
            this._requestInfo = requestInfo;

            this._colorRepository      = colorRepository;
            this._rideStatusRepository = rideStatusRepository;

            this._countryRepository = countryRepository;
            this._stateRepository   = stateRepository;
            this._cityRepository    = cityRepository;

            this._vehicleMakerRepository          = vehicleMakerRepository;
            this._vehicleModelRepository          = vehicleModelRepository;
            this._vehicleBodyTypeRepository       = vehicleBodyTypeRepository;
            this._vehicleFeatureRepository        = vehicleFeatureRepository;
            this._vehicleTransmissionRepository   = vehicleTransmissionRepository;
            this._vehicleAssemblyRepository       = vehicleAssemblyRepository;
            this._vehicleVehicleFeatureRepository = vehicleVehicleFeatureRepository;
            this._vehicleRepository = vehicleRepository;

            this._travelUnitRepository   = travelUnitRepository;
            this._distanceUnitRepository = distanceUnitRepository;
            this._driverStatusRepository = driverStatusRepository;

            this._creditCardRepository  = creditCardRepository;
            this._currencyRepository    = currencyRepository;
            this._currencyLogRepository = currencyLogRepository;

            this._accountRepository    = accountRepository;
            this._accountLogRepository = accountLogRepository;

            this._favouriteLocationRepository = favouriteLocationRepository;
            this._locationLagLonRepository    = locationLagLonRepository;

            this._fareRepository                       = fareRepository;
            this._packageRepository                    = packageRepository;
            this._packageTravelUnitRepository          = packageTravelUnitRepository;
            this._packageVehicleAssemblyRepository     = packageVehicleAssemblyRepository;
            this._packageVehicleBodyTypeRepository     = packageVehicleBodyTypeRepository;
            this._packageVehicleFeatureRepository      = packageVehicleFeatureRepository;
            this._packageVehicleModelRepository        = packageVehicleModelRepository;
            this._packageVehicleTransmissionRepository = packageVehicleTransmissionRepository;

            this._supervisorRepository = supervisorRepository;
            this._driverRepository     = driverRepository;

            this._driverLocationRepository    = driverLocationRepository;
            this._driverLocationLogRepository = driverLocationLogRepository;

            this._distanceRepository    = distanceRepository;
            this._timeTrackerRepository = timeTrackerRepository;
            this._customerRepository    = customerRepository;
            this._rideRepository        = rideRepository;
        }
Esempio n. 28
0
 public VehicleModelService(IUnitOfWork unitOfWork, IVehicleModelRepository repository)
 {
     uow         = unitOfWork;
     _repository = repository;
 }
Esempio n. 29
0
 public VehicleModelDetailVM(IEventAggregator eventAggregator, IMessageService messageService,
                             IVehicleModelRepository vehicleModelRepository)
     : base(eventAggregator, messageService)
 {
     this.vehicleModelRepository = vehicleModelRepository;
 }
 public VehicleModelService(IVehicleModelRepository repository)
 {
     this.Repository = repository;
 }
Esempio n. 31
0
 public VehicleModelService(IVehicleModelRepository vehicleModelRepository, IUnitOfWork unitOfWork)
 {
     _vehicleModelRepository = vehicleModelRepository;
     _unitOfWork             = unitOfWork;
 }
Esempio n. 32
0
 public ViewPresenter(IVehicleModelRepository modelRepo)
 {
     _modelRepo = modelRepo;
 }
 public VehiclesController(VehicleContext context)
 {
     _vehicleMakeRepository  = new VehicleMakeRepository(context);
     _vehicleModelRepository = new VehicleModelRepository(context);
 }
Esempio n. 34
0
 public VehicleModelsController(IVehicleModelRepository context, IMapper mapper)
 {
     this.DbContext = context;
     this.Mapper    = mapper;
 }
Esempio n. 35
0
 public VehicleModelService(IVehicleModelRepository modelRepository)
 {
     _modelRepository = modelRepository;
 }
Esempio n. 36
0
 public UnitOfWork(DataContext context, IVehicleMakeRepository makeRepository, IVehicleModelRepository modelRepository)
 {
     this.context = context;
     Makers       = makeRepository;
     Models       = modelRepository;
 }