public CustomerUnitOfWork(CustomerDbContext customerDbContext, ICustomerRepository customerRepository, IRideRepository rideRepository) : base(customerDbContext) { CustomerRepository = customerRepository; RideRepository = rideRepository; }
public Scheduler(IRideRepository rideRepository, ITaxiRepository taxiRepository, ILogger logger, int acceptableDistance = 15) { _rideRepository = rideRepository ?? throw new ArgumentNullException(nameof(rideRepository)); _taxiRepository = taxiRepository ?? throw new ArgumentNullException(nameof(taxiRepository)); _logger = logger ?? throw new ArgumentNullException(nameof(_logger)); AcceptableDistance = acceptableDistance; }
public AddRecurringRideCommandHandler(IRideRepository rideRepository, IUnitOfWork unitOfWork, IRecurringRidesRepository recurringRidesRepository) { _rideRepository = rideRepository; _unitOfWork = unitOfWork; _recurringRidesRepository = recurringRidesRepository; }
/// <summary> /// 建構式 /// </summary> /// <param name="logger">logger</param> /// <param name="mapper">mapper</param> /// <param name="memberRepository">memberRepository</param> /// <param name="rideRepository">rideRepository</param> public MemberService(ILogger <MemberService> logger, IMapper mapper, IMemberRepository memberRepository, IRideRepository rideRepository, IInteractiveRepository interactiveRepository) { this.logger = logger; this.mapper = mapper; this.memberRepository = memberRepository; this.rideRepository = rideRepository; this.interactiveRepository = interactiveRepository; }
public DayRepository( LocationContext locatieContext, IPingRepository pingRepository, IRideRepository rideRepository ) : base(locatieContext) { this.pingRepository = pingRepository; this.rideRepository = rideRepository; }
public GetRideMetricsByPeriodSelectionQueryHandler( IRideRepository rideRepository, ILogger logger, IMemoryCache cache) { _rideRepository = rideRepository; _logger = logger; _cache = cache; }
public CreateRideCommandHandler( IRideRepository rideRepository, ILogger logger, IValidator <CreateRideCommand> validator) { _rideRepository = rideRepository; _logger = logger; _validator = validator; }
public PassengersController(IPassengerRepository passengerRepository, IVehicleRepository vehicleRepository, IVehicleTypeRepository vehicleTypeRepository, IPaymentTypeRepository paymentTypeRepository, IPaymentRepository paymentRepository, IRideRepository rideRepository) { _passengerRepository = passengerRepository; _vehicleRepository = vehicleRepository; _vehicleTypeRepository = vehicleTypeRepository; _paymentTypeRepository = paymentTypeRepository; _paymentRepository = paymentRepository; _rideRepository = rideRepository; }
public RideLogic(IRouteLogic routeLogic, IRideRepository rideRepository, IAddressLogic addressLogic, IMapper mapper, UserManager <User> userManager, IPassengerLogic passengerLogic) { _rideRepository = rideRepository; _addressLogic = addressLogic; _routeLogic = routeLogic; _mapper = mapper; _userManager = userManager; _passengerLogic = passengerLogic; }
public RideLogic(IRouteLogic routeLogic, IRideRepository rideRepository, IDriverNoteLogic driverNoteLogic, IAddressLogic addressLogic, IMapper mapper, IUserLogic userLogic, IPassengerLogic passengerLogic) { _rideRepository = rideRepository; _addressLogic = addressLogic; _routeLogic = routeLogic; _mapper = mapper; _driverNoteLogic = driverNoteLogic; _userLogic = userLogic; _passengerLogic = passengerLogic; }
public RunRepository( ITagRepository tagRepository, IRideRepository rideRepository, ICache cache ) { this.rideRepository = rideRepository; this.tagRepository = tagRepository; this.cache = cache; }
public RideController( IRideRepository rideRepository, ITagRepository tagRepository, IDayRepository dayRepository ) { this.rideRepository = rideRepository; this.tagRepository = tagRepository; this.dayRepository = dayRepository; }
public DriverUnitOfWork(DriverDbContext driverDbContext, IDriverRepository driverRepository, IRideRepository rideRepository, IRideRequestRepository rideRequestRepository) : base(driverDbContext) { DriverRepository = driverRepository; RideRepository = rideRepository; RideRequestRepository = rideRequestRepository; }
public DriversController(IRideRepository rideRepository, IPaymentRepository paymentRepository, IDriverRepository driverRepository, IVehicleRepository vehicleRepository, IVehicleTypeRepository vehicleTypeRepository) { _rideRepository = rideRepository; _paymentRepository = paymentRepository; _driverRepository = driverRepository; _vehicleRepository = vehicleRepository; _vehicleTypeRepository = vehicleTypeRepository; user = System.Web.HttpContext.Current.GetOwinContext() .GetUserManager <ApplicationUserManager>() .FindById(System.Web.HttpContext.Current.User.Identity.GetUserId()); }
public DayController( IDayRepository dayRepository, IPingRepository pingRepository, IRideRepository rideRepository, ILocationRepository locationRepository ) { this.dayRepository = dayRepository; this.pingRepository = pingRepository; this.rideRepository = rideRepository; this.locationRepository = locationRepository; }
/// <summary> /// constructor to create the AccountController and initializes the repo /// </summary> /// <param name="signInManager"></param> /// <param name="userManager"></param> /// <param name="userRepository"></param> /// <param name="config"></param> /// <param name="rideRepository"></param> public AccountController( SignInManager <IdentityUser> signInManager, UserManager <IdentityUser> userManager, IUserRepository userRepository, IConfiguration config, IRideRepository rideRepository) { _signInManager = signInManager; _userManager = userManager; _userRepository = userRepository; _config = config; _rideRepository = rideRepository; }
public ProcessPings( IPingRepository pingRepository, ILocationRepository locationRepository, IRideRepository rideRepository, IDayRepository dayRepository, ICache cache ) { this.pingRepository = pingRepository; this.locationRepository = locationRepository; this.rideRepository = rideRepository; this.dayRepository = dayRepository; utility = new Utility(); this.cache = cache; }
public void Setup() { _mapper = Substitute.For <IMapper>(); _googleMapsApiService = Substitute.For <IGoogleMapsApiService>(); _rideRepository = Substitute.For <IRideRepository>(); _soloRidePriceStrategy = Substitute.For <IPriceStrategy>(); _sharedRidePriceStrategy = Substitute.For <IPriceStrategy>(); _priceStrategyFactory = Substitute.For <IPriceStrategyFactory>(); _unitOfWork = Substitute.For <IUnitOfWork>(); _matchService = Substitute.For <IMatchService>(); _rideService = new RideService(_mapper, _googleMapsApiService, _priceStrategyFactory, _unitOfWork, _matchService); _anAddress = new Address("city", 1000, "street", 1); _anAddress.Lat = 10; _anAddress.Lng = 10; }
public Import( ILocationRepository locationRepository, IPingRepository pingRepository, IDayRepository dayRepository, IRideRepository rideRepository, LocationContext locatieContext, ICache cache ) { this.locationRepository = locationRepository; this.pingRepository = pingRepository; this.dayRepository = dayRepository; this.rideRepository = rideRepository; this.locatieContext = locatieContext; this.cache = cache; }
public RideLogic(IRideRepository rideRepository) { _rideRepository = rideRepository; }
public RemoveUserFromRideCommandHandler(IRideRepository rideRepository, IUnitOfWork unitOfWork) => (_rideRepository, _unitOfWork)
public RideService(IRideRepository rideRepository) { _rideRepository = rideRepository; }
public GetUserParticipatedRidesQueryHandler(IRideRepository repository) => _repository = repository;
// C O N T R O L L E R S public RideController(IRideRepository repository) { _repository = repository; }
public RideService() { _rideData = DependencyResolver.Get <RideRepository>(); _viaPointData = DependencyResolver.Get <ViaPointRepository>(); }
public RideDomain(IRideRepository rideRepository) { _rideRepository = rideRepository; }
public InvoiceGenorator(IRideRepository rideRepository) { this.rideRepository = rideRepository; }
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; }
public RideController(IRideRepository rideRepository) { this.rideRepository = rideRepository; }
public UpdateRideCommandHandler(IRideRepository rideRepository, IUnitOfWork unitOfWork) => (_rideRepository, _unitOfWork)