コード例 #1
0
 public RideController(IRideService rideService)
 {
     _rideService = rideService;
 }
コード例 #2
0
 /// <summary>
 /// Initializes a new instance of the <see cref="LapTimerTabViewModel" /> class.
 /// </summary>
 /// <param name="logFactory">The log provider.</param>
 /// <param name="navigationService">The navigation service.</param>
 public StartingPositionViewModel(ILoggerFactory logFactory, IMvxNavigationService navigationService, IMvxMessenger messenger, IRideService rideService)
     : base(logFactory, navigationService)
 {
     _messenger        = messenger;
     StartTimerCommand = new MvxCommand(() => _messenger.Publish(new MvxTabIndexMessenger(this, 2)));
 }
コード例 #3
0
 public RidesController(IRideService rideService, ILogger <LoginController> logger)
 {
     this.rideService = rideService;
     this.logger      = logger;
 }
コード例 #4
0
 public WhoBookTheRideModel(UserManager <AppUser> maneger, IBookingService bookingService, IRideService rideService)
 {
     _maneger        = maneger;
     _bookingService = bookingService;
     _rideService    = rideService;
 }
コード例 #5
0
 public RotaService(IRideService rideService, ICityParser cityParser)
 {
     this.rideService = rideService;
     this.cityParser  = cityParser;
 }
コード例 #6
0
 public DeleteRouteCommandHandler(ICustomerUnitOfWork unitOfWork, IRideService rideService)
 {
     _unitOfWork  = unitOfWork;
     _rideService = rideService;
 }
コード例 #7
0
 public OrderCreatedConsumer(ICustomerUnitOfWork unitOfWork, IRideService rideService)
 {
     _unitOfWork  = unitOfWork;
     _rideService = rideService;
 }
コード例 #8
0
 public RideController(IRideService rideService)
 {
     this.rideService = rideService;
 }
コード例 #9
0
ファイル: DriveInViewModel.cs プロジェクト: tuke307/LapTimer
 /// <summary>
 /// Initializes a new instance of the <see cref="DriveInViewModel" /> class.
 /// </summary>
 /// <param name="logFactory">The log provider.</param>
 /// <param name="navigationService">The navigation service.</param>
 public DriveInViewModel(ILoggerFactory logFactory, IMvxNavigationService navigationService, IMvxMessenger messenger, IRideService rideService)
     : base(logFactory, navigationService)
 {
     _rideService = rideService;
     _messenger   = messenger;
     ResetCommand = new MvxCommand(ResetDriveIn);
     StartCommand = new MvxCommand(() => _messenger.Publish(new MvxTabIndexMessenger(this, 1)));
 }
コード例 #10
0
 public EditRideModel(IRideService service)
 {
     rideService = service;
 }
コード例 #11
0
ファイル: RideServiceFixture.cs プロジェクト: hnaess/Stravan
 public override void Setup()
 {
     base.Setup();
     #if UNIT
     RideService = new RideService(WebClient);
     #elif INT
     RideService = ServiceLocator.Get<IRideService>();
     #endif
 }
コード例 #12
0
 public DeleteRideModel(IRideService service)
 {
     rideService = service;
 }
コード例 #13
0
 public RideController(IRideService rideServices)
 {
     _RideServices = rideServices;
 }
コード例 #14
0
 public RidesController(SCCDataContext context, IRideService service)
 {
     _context = context;
     _service = service;
 }
コード例 #15
0
 public CreateRideModel(IRideService service, ICarService carService, UserManager <AppUser> manager)
 {
     this.rideService = service;
     userManager      = manager;
     this.carService  = carService;
 }
コード例 #16
0
 public RideController(IRideService rideServices)
 {
     this._rideServices = rideServices;
 }
コード例 #17
0
 public void GetActiveRidesPrice(int?year, decimal expectedPrice)
 {
     _service = new RideService(_calculator.Object, GetActiveRides(), null);
     _service.GetActiveRidesPrice(year).Should().Be(expectedPrice);
 }
コード例 #18
0
 public SignupService(SCCDataContext context, IRiderService riderService, IRideService rideService)
 {
     _context      = context;
     _riderService = riderService;
     _rideService  = rideService;
 }
コード例 #19
0
 public RouteAddedConsumer(IDriverUnitOfWork unitOfWork, IRideService rideService)
 {
     _unitOfWork  = unitOfWork;
     _rideService = rideService;
 }
コード例 #20
0
 public DeleteMyRideModel(IRideService service)
 {
     _service = service;
     MyRide   = new Ride();
 }
コード例 #21
0
 public RideController(IRideService IRideService, UserManager <ViewModels.RideViewModels.User> userManager)
 {
     _IRideService = IRideService;
     _userManager  = userManager;
 }
コード例 #22
0
 public RideList(IRideService svc)
 {
     _svc = svc;
 }
コード例 #23
0
 public RideController(IAccountService accountService, IRideService rideService)
     : base(accountService)
 {
     _rideService = rideService;
 }
コード例 #24
0
 public ReviewsModel(IReviewService reviewService, IRideService rideService, UserManager <AppUser> userManager)
 {
     _reviewService = reviewService;
     _userManager   = userManager;
     _rideService   = rideService;
 }