public VehicleService(IRepository <Vehicle> vehicleRepo, IDriverService driversvc, IRepository <VehicleAllocationDetailModel> vehicleAlloRepo, IFranchizeService franchizeService, IRepository <VehiclePart> vehiclepartRepo, IRepository <VehicleModel> vehicleModelRepo, IRepository <Terminal> terminalRepo, IRepository <Employee> employeeRepo, IUnitOfWork unitOfWork, IServiceHelper serviceHelper, IRepository <State> stateRepo, ISMSService smsSvc, IRepository <Manifest, Guid> manifestRepo, IRepository <VehicleTripRegistration, Guid> vhclTrip, IUserService userSvc, IEmployeeService employeeSvc, IRepository <VehicleAllocationDetailModel> vehAllocDet) { _vehicleRepo = vehicleRepo; _driversvc = driversvc; _vehiclepartRepo = vehiclepartRepo; _vehicleModelRepo = vehicleModelRepo; _terminalRepo = terminalRepo; _employeeRepo = employeeRepo; _unitOfWork = unitOfWork; _serviceHelper = serviceHelper; _stateRepo = stateRepo; _franchizeService = franchizeService; _smsSvc = smsSvc; _manifestRepo = manifestRepo; _vhclTrip = vhclTrip; _employeeSvc = employeeSvc; _vehicleAlloRepo = vehicleAlloRepo; _userSvc = userSvc; _vehAllocDet = vehAllocDet; }
public DataInitializer(IUserService userService, IDriverService driverService, IDriverRouteService driverRouteService) { _userService = userService; _driverService = driverService; _driverRouteService = driverRouteService; }
public DriverFactory( IDriverService driverService, IBaseAdminModelFactory baseAdminModelFactory) { this.driverService = driverService; this.baseAdminModelFactory = baseAdminModelFactory; }
public ElementTransformations( [NotNull] IDriverService driverService, [NotNull] IElementSelectionService selectionService) { _driverService = driverService; _selectionService = selectionService; }
public ElementSelectionService( [NotNull] IDriverService driverService, [NotNull] IAutomationIdProvider provider) { _driverService = driverService; _provider = provider; }
public ReportsController(TripService tripservice, DriverService driverService, VehicleService vehicleService, UserService userService, CorporateService corporateService) { if (tripservice == null) { throw new NullReferenceException("tripservice"); } if (driverService == null) { throw new NullReferenceException("driverService"); } if (vehicleService == null) { throw new NullReferenceException("vehicleService"); } if (userService == null) { throw new NullReferenceException("userService"); } if (corporateService == null) { throw new NullReferenceException("corporateService"); } _corporateService = corporateService; _driverService = driverService; _vehicleService = vehicleService; _tripService = tripservice; _userService = userService; }
public DriverAccountViewModel(IDriverService driverService, IDriverViewModelMapper driverViewModelMapper) { _driverService = driverService ?? throw new ArgumentNullException(); _driverViewModelMapper = driverViewModelMapper ?? throw new ArgumentNullException(); ChangeToEditModeCommand = new RelayCommand(ChangeToEditMode); SaveChangesCommand = new RelayCommand(SaveChanges, CanSaveChanges); }
public OrdersController(IDriverService driverService, IOrderService orderService, ILogger <CarsController> logger, IMapper mapper) { _driverService = driverService; _orderService = orderService; _logger = logger; _mapper = mapper; }
public DriverController(ApplicationDbContext dbContext, IMapper mapper, IDriverService driverService, UserManager <ApplicationUser> userManager) { this.dbContext = dbContext; this.mapper = mapper; this.userManager = userManager; this.driverService = driverService; }
public DataInitialize(IUserService service, ILogger<DataInitialize> logger,IDriverService driverservice) { _driverservice = driverservice; _service = service; _logger = logger; }
public DataInitializer(IUserService userService, IDriverService driverService, ILogger <DataInitializer> logger) { this.userService = userService; this.driverService = driverService; this.logger = logger; }
public override void InitServices() { _customerService = new CustomerService() as ICustomerService; _driverService = new DriverService() as IDriverService; _daybookService = new DaybookService() as IDaybookService; addDaybookControl = new ctrlAddDaybook(); }
public DriversEditViewModel() { driverService = (App.Current as App).Container.GetService <IDriverService>(); // Cast object to DriverModel and assign driverModelToEdit = driverService.GetDriverToEdit() as DriverModel; // Set driver name for label DriverName = driverModelToEdit.DriverName; PublishEditDriverCommand = new RelayCommand( async() => { var messageDialog = new MessageDialog("Are you sure you want to commit these changes?", "Accept Driver Changes"); messageDialog.Commands.Add(new UICommand("Yes", null)); messageDialog.Commands.Add(new UICommand("No", null)); messageDialog.DefaultCommandIndex = 0; messageDialog.CancelCommandIndex = 1; var cmd = await messageDialog.ShowAsync(); if (cmd.Label == "Yes") { driverService.EditDriver(DriverName, DriverFirstName, DriverLastName, DriverNumber); } DriverFirstName = ""; DriverLastName = ""; NavigationService.Navigate(typeof(DriversPage)); }); }
public DispatchController(DispatchNoteService dispatchNoteService, ClientService clientService, DriverService driverService, HelperService helperService, VehicleService vehicleService) { if (dispatchNoteService == null) { throw new NullReferenceException("dispatchNoteService"); } if (clientService == null) { throw new NullReferenceException("clientService"); } if (driverService == null) { throw new NullReferenceException("driverService"); } if (helperService == null) { throw new NullReferenceException("helperService"); } if (vehicleService == null) { throw new NullReferenceException("vehicleService"); } _dispatchNoteService = dispatchNoteService; _clientService = clientService; _driverService = driverService; _helperService = helperService; _vehicleService = vehicleService; }
public ScheduleAppService(IScheduleService scheduleService, IDriverService driverService, IInvoiceService invoiceService, IMediatorHandler bus) { _scheduleService = scheduleService; _driverService = driverService; _invoiceService = invoiceService; _bus = bus; }
public RidesController(IRideService rideService, IDriverService driverService, ICitiesService citiesService, ICommonService commonService) { _rideService = rideService; _driverService = driverService; _citiesService = citiesService; _commonService = commonService; }
public UpdateCompanyDetailsCommandHandler(IDriverUnitOfWork unitOfWork, IDriverService driverService, IMapper mapper) { _unitOfWork = unitOfWork; _driverService = driverService; _mapper = mapper; }
public ScenarioHelper(ICarService carService, IDriverService driverService, IScooterService scooterService, IRentalService rentalService) { this._driverService = driverService; this._carService = carService; this._rentalService = rentalService; this._scooterService = scooterService; }
public CarController(ICarService service, IDriverService driverService, IHubContext <OrderHub, IHubClient> hub) { this.service = service; this.driverService = driverService; this.hub = hub; }
public VehicleTripRegistrationService(IUserService userManagerSvc, IRepository <VehicleTripRegistration, Guid> repo, ITripService tripSvc, IVehicleService vehicleSvc, IServiceHelper serviceHelper, IEmployeeService employeeSvc, IRepository <Route> routerepo, IUnitOfWork unitOfWork, IDriverService driverSvc, ISeatManagementService seatManagementService, IRepository <JourneyManagement, Guid> journeyManagementRepo, IRepository <Vehicle> vehRepo, IRepository <Manifest, Guid> manRepo) { _userManagerSvc = userManagerSvc; _repo = repo; _tripSvc = tripSvc; _vehicleSvc = vehicleSvc; _serviceHelper = serviceHelper; _employeeSvc = employeeSvc; _driverSvc = driverSvc; _unitOfWork = unitOfWork; _seatManagementService = seatManagementService; _journeyManagementRepo = journeyManagementRepo; _routerepo = routerepo; _vehRepo = vehRepo; _manRepo = manRepo; }
public RideNowController(IDriverService driverService, ICarTypeService carTypeService, IUserService userService, IRideDetailsService rideDetailsService) { this.driverService = driverService; this.carTypeService = carTypeService; this.userService = userService; this.rideDetailsService = rideDetailsService; }
public DriversNewViewModel() { driverService = (App.Current as App).Container.GetService <IDriverService>(); PublishAddDriverCommand = new RelayCommand( async() => { var messageDialog = new MessageDialog("Are you sure you want to add a new driver?", "Add New Driver"); messageDialog.Commands.Add(new UICommand("Yes", null)); messageDialog.Commands.Add(new UICommand("No", null)); messageDialog.DefaultCommandIndex = 0; messageDialog.CancelCommandIndex = 1; var cmd = await messageDialog.ShowAsync(); if (cmd.Label == "Yes") { driverService.AddDriver(DriverFirstName, DriverLastName, DriverNumber); } DriverFirstName = ""; DriverLastName = ""; NavigationService.Navigate(typeof(DriversPage)); }); }
public DriversController(ICarService carService, IDriverService driverService, ILogger <CarsController> logger, IMapper mapper) { _carService = carService; _driverService = driverService; _logger = logger; _mapper = mapper; }
public DriverValidator(IDriverService driverService) : base(driverService) { RuleFor(x => x.FirstName) .NotEmpty().WithMessage("Enter first name") .MaximumLength(CustomMaxLength).WithMessage($"First name must not exceed {CustomMaxLength} characters") .Matches(RegExpForChars).WithMessage("First name must contain only letters"); RuleFor(x => x.LastName) .NotEmpty().WithMessage("Enter last name") .MaximumLength(CustomMaxLength).WithMessage($"Last name must not exceed {CustomMaxLength} characters") .Matches(RegExpForChars).WithMessage("Last name must contain only letters"); RuleFor(x => x.Birthdate) .Must(IsValidDate).WithMessage("Entered date format is invalid") .Unless(x => string.IsNullOrEmpty(x.Birthdate)); RuleFor(x => x.CellPhone) .Matches(RegExpForDigits).WithMessage("Phone must contain only digits") .MaximumLength(CustomMaxLength).WithMessage($"Phone must not exceed {CustomMaxLength} characters") .Unless(x => string.IsNullOrEmpty(x.CellPhone)); RuleFor(x => x.Address) .MaximumLength(MaxLength).WithMessage($"Address must not exceed {MaxLength} characters") .Unless(x => string.IsNullOrEmpty(x.Address)); RuleFor(x => x.StartedDrivingYear) .InclusiveBetween(MinYearRange, MaxYearRange).WithMessage($"Year must be in range between {MinYearRange} and {MaxYearRange}") .Unless(x => !x.StartedDrivingYear.HasValue); RuleFor(x => x.HasCriminalRecord) .NotNull().WithMessage("This field must be true or false"); }
public DriverController(IFlightService flightService, IDriverService driverService, IAutoService autoService) { _flightService = flightService; _driverService = driverService; _autoService = autoService; }
public AthleteRepository(IHockeyPlayerService hockeyPlayerService, IDriverService driverService) { _hockeyPlayerService = hockeyPlayerService; _driverService = driverService; _drivers = new List <Driver>(); _hockeyPlayers = new List <HockeyPlayer>(); _goaltenders = new List <Goaltender>(); }
public frmTrailer() { InitializeComponent(); service = new DriverService() as IDriverService; currentDialog = new frmAddTrailer(); currentDialog.OnSaveForm += new Dialogbase.OnSaveFormEvent(this.GetData); }
public RefuelsController(IRefuelService refuelService, IGasStationService gasStationService, IDriverService driverService, IVehicleService vehicleService) { _refuelService = refuelService; _gasStationService = gasStationService; _driverService = driverService; _vehicleService = vehicleService; }
public ManageController(ICompanyService companyService, ICarService carService, IDriverService driverService, IDispatcherService dispatcherService, IRequestService requestService) { this._companyService = companyService; this._carService = carService; this._driverService = driverService; this._dispatcherService = dispatcherService; this._requestService = requestService; }
public AthleteRepository(IHockeyPlayerService hockeyPlayerService, IDriverService driverService) { _hockeyPlayerService = hockeyPlayerService; _driverService = driverService; _drivers = new List<Driver>(); _hockeyPlayers = new List<HockeyPlayer>(); _goaltenders = new List<Goaltender>(); }
public DataInitializer(IUserService userService, ILogger <DataInitializer> logger, IDriverService driverService, IDriverRouteService driverRouteService) { _userService = userService; _logger = logger; _driverService = driverService; _driverRouteService = driverRouteService; }
public frmAddDriver() : base("Add/Edit Driver") { InitializeComponent(); _driverService = new DriverService() as IDriverService; currentControl = new ctrlAddEditDriver(); InitControl(currentControl); }
public ReportService(IUnitOfWork unitOfWork, IPathService pathService, IDriverService driverService, IFreightService freightService) { _pathService = pathService; _driverService = driverService; _freightService = freightService; _reports = unitOfWork.Set<Report>(); _subReports = unitOfWork.Set<SubReport>(); }
public DriverServiceTest() { var aDriverList = new List<Driver> { new Driver { Address = "1 anystreet st", City = "anytown", Country = "United States", CustomerId = 1, FirstName = "Craig", LastName = "Smith", Id = 1, LicenseState = "MA", LicenseNumber = "12345", State = "MA", PostalCode = "12345" }, new Driver { Address = "1 anystreet st", City = "anytown", Country = "United States", CustomerId = 1, FirstName = "Stephen", LastName = "Smith", Id = 2, LicenseState = "MA", LicenseNumber = "23456", State = "MA", PostalCode = "12345" } }; var aDriverRepository = new Mock<IDriverRepository>(); aDriverRepository.Setup(aItem => aItem.GetDriverByLastName(It.IsAny<string>())).Returns( (string theName) => aDriverList); aDriverRepository.Setup(aItem => aItem.GetDriver(It.IsAny<int>())).Returns( (int theId) => aDriverList.FirstOrDefault(aItem => aItem.Id == theId)); aDriverRepository.Setup(aItem => aItem.AddDriver(It.IsAny<Driver>())).Returns( (Driver theNewDriver) => { theNewDriver.Id = aDriverList.Count + 1; aDriverList.Add(theNewDriver); return aDriverList.Count; }); _svc = new DriverService(aDriverRepository.Object); }
public FormulaOnePickrService(IDriverService driverService) { _driverService = driverService; }
public DriverController(IDriverService driverService, ICarTypeService carTypeService) { this.driverService = driverService; this.carTypeService = carTypeService; }
public DriverDetailViewModel(IDriverService driverService) { _driverService = driverService; }
public DriversController( IDriverService driverService ) { DriverService = driverService; }
public DriverController(IDriverService driverService) { _driverService = driverService; }
public DriverListViewModel(IDriverService driverService, INavigationService navigationService) { _driverService = driverService; _navigationService = navigationService; }
public DriverListViewModel(IDriverService driverService) { _driverService = driverService; LoadDriversAsync(); }
public CabDurationController(IDriverService driverService, ICarTypeService carTypeService) { this.driverService = driverService; this.carTypeService = carTypeService; }
public DriverController(IDriverService theDriverService) { _driverService = theDriverService; }