コード例 #1
0
 public CustomerUnitOfWork(CustomerDbContext customerDbContext,
                           ICustomerRepository customerRepository,
                           IRideRepository rideRepository) : base(customerDbContext)
 {
     CustomerRepository = customerRepository;
     RideRepository     = rideRepository;
 }
コード例 #2
0
 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;
 }
コード例 #3
0
 public AddRecurringRideCommandHandler(IRideRepository rideRepository,
                                       IUnitOfWork unitOfWork,
                                       IRecurringRidesRepository recurringRidesRepository)
 {
     _rideRepository           = rideRepository;
     _unitOfWork               = unitOfWork;
     _recurringRidesRepository = recurringRidesRepository;
 }
コード例 #4
0
ファイル: MemberService.cs プロジェクト: markchan1209/GoBike
 /// <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;
 }
コード例 #5
0
 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;
 }
コード例 #7
0
 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;
 }
コード例 #9
0
ファイル: RideLogic.cs プロジェクト: gerdasml/share-car-app
 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;
 }
コード例 #10
0
ファイル: RideLogic.cs プロジェクト: superhp/share-car-app
 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;
 }
コード例 #11
0
 public RunRepository(
     ITagRepository tagRepository,
     IRideRepository rideRepository,
     ICache cache
     )
 {
     this.rideRepository = rideRepository;
     this.tagRepository  = tagRepository;
     this.cache          = cache;
 }
コード例 #12
0
 public RideController(
     IRideRepository rideRepository,
     ITagRepository tagRepository,
     IDayRepository dayRepository
     )
 {
     this.rideRepository = rideRepository;
     this.tagRepository  = tagRepository;
     this.dayRepository  = dayRepository;
 }
コード例 #13
0
 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());
 }
コード例 #15
0
 public DayController(
     IDayRepository dayRepository,
     IPingRepository pingRepository,
     IRideRepository rideRepository,
     ILocationRepository locationRepository
     )
 {
     this.dayRepository      = dayRepository;
     this.pingRepository     = pingRepository;
     this.rideRepository     = rideRepository;
     this.locationRepository = locationRepository;
 }
コード例 #16
0
 /// <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;
 }
コード例 #17
0
 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;
 }
コード例 #18
0
 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;
 }
コード例 #19
0
 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;
 }
コード例 #20
0
 public RideLogic(IRideRepository rideRepository)
 {
     _rideRepository = rideRepository;
 }
コード例 #21
0
 public RemoveUserFromRideCommandHandler(IRideRepository rideRepository, IUnitOfWork unitOfWork)
 => (_rideRepository, _unitOfWork)
コード例 #22
0
ファイル: RideService.cs プロジェクト: tbah/NYCTaxiCabApp
 public RideService(IRideRepository rideRepository)
 {
     _rideRepository = rideRepository;
 }
コード例 #23
0
 public GetUserParticipatedRidesQueryHandler(IRideRepository repository)
 => _repository = repository;
コード例 #24
0
 //   C O N T R O L L E R S
 public RideController(IRideRepository repository)
 {
     _repository = repository;
 }
コード例 #25
0
 public RideService()
 {
     _rideData     = DependencyResolver.Get <RideRepository>();
     _viaPointData = DependencyResolver.Get <ViaPointRepository>();
 }
コード例 #26
0
ファイル: RideDomain.cs プロジェクト: sahanaPra/carPooling
 public RideDomain(IRideRepository rideRepository)
 {
     _rideRepository = rideRepository;
 }
コード例 #27
0
 public InvoiceGenorator(IRideRepository rideRepository)
 {
     this.rideRepository = rideRepository;
 }
コード例 #28
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;
        }
コード例 #29
0
 public RideController(IRideRepository rideRepository)
 {
     this.rideRepository = rideRepository;
 }
コード例 #30
0
 public UpdateRideCommandHandler(IRideRepository rideRepository, IUnitOfWork unitOfWork)
 => (_rideRepository, _unitOfWork)