Exemplo n.º 1
0
 public FromLocationPageViewModel(ILocationTracker locationTracker,
                                  INavigationService navigationService,
                                  ITaxiService taxiService)
 {
     _locationTracker   = locationTracker;
     _navigationService = navigationService;
     _taxiService       = taxiService;
     init();
 }
Exemplo n.º 2
0
 public LoginPageViewModel(IPageDialogService dialogService,
                           ITaxiService taxiService,
                           INavigationService navigationService)
 {
     _dialogService     = dialogService;
     _taxiService       = taxiService;
     _navigationService = navigationService;
                 #if DEBUG
     PhoneNumber = "9039818881";
     Password    = "******";
                 #endif
 }
Exemplo n.º 3
0
 public GuestController()
 {
     _guestService         = new GuestService();
     _personService        = new PersonService();
     _movieService         = new MovieService();
     _posItemService       = new POSItemService();
     _taxiService          = new TaxiService();
     _adventureService     = new AdventureService();
     _movieCategoryService = new MovieCategoryService();
     _guestPlaylistService = new GuestPlaylistService();
     _escortService        = new EscortService();
 }
Exemplo n.º 4
0
 public OrdersController()
 {
     taxiService = ServiceLocator.ServiceLocatorPropertes.GetService<ITaxiService>();
 }
Exemplo n.º 5
0
 public HomeController()
 {
     _service = ServiceLocator.ServiceLocatorPropertes.GetService<ITaxiService>();
 }
Exemplo n.º 6
0
 public ConfirmOrderPageViewModel(IPageDialogService dialogService, ITaxiService taxiService, INavigationService navigationService)
 {
     _dialogService     = dialogService;
     _taxiService       = taxiService;
     _navigationService = navigationService;
 }
Exemplo n.º 7
0
 public TaxiesController(IGetATaxiData data, IDropDownListPopulator populator)
     : base(data, populator)
 {
     this.TaxiService    = new TaxiService(data);
     this.AccountService = new AccountService(data);
 }
Exemplo n.º 8
0
 /// <summary>
 /// Creates new Taxi Controller instance
 /// </summary>
 /// <param name="taxi">Taxi Service</param>
 /// <param name="mapper">Taxi Response Mapper</param>
 public TaxiController(ITaxiService taxi, ITaxiResponseMapper mapper, IRequestValidator validator)
 {
     _taxi      = taxi;
     _mapper    = mapper;
     _validator = validator;
 }
 /// <param name='operations'>
 /// The operations group for this extension method.
 /// </param>
 /// <param name='model'>
 /// </param>
 /// <param name='cancellationToken'>
 /// The cancellation token.
 /// </param>
 public static async Task <ResQYttriumWebApiModelsCreateTaxiServiceResultModel> CreateAsync(this ITaxiService operations, ResQYttriumWebApiModelsCreateTaxiServiceModel model, CancellationToken cancellationToken = default(CancellationToken))
 {
     using (var _result = await operations.CreateWithHttpMessagesAsync(model, null, cancellationToken).ConfigureAwait(false))
     {
         return(_result.Body);
     }
 }
Exemplo n.º 10
0
 /// <param name='operations'>
 /// The operations group for this extension method.
 /// </param>
 /// <param name='model'>
 /// </param>
 public static ResQYttriumWebApiModelsCreateTaxiServiceResultModel Create(this ITaxiService operations, ResQYttriumWebApiModelsCreateTaxiServiceModel model)
 {
     return(Task.Factory.StartNew(s => ((ITaxiService)s).CreateAsync(model), operations, CancellationToken.None, TaskCreationOptions.None, TaskScheduler.Default).Unwrap().GetAwaiter().GetResult());
 }
Exemplo n.º 11
0
 public DestinationPageViewModel(IPageDialogService dialogService, ITaxiService taxiService, INavigationService navigationService)
 {
     _dialogService     = dialogService;
     _taxiService       = taxiService;
     _navigationService = navigationService;
 }
Exemplo n.º 12
0
 public OrderPageViewModel(INavigationService navigationService, ITaxiService taxiService, IPageDialogService dislogService)
 {
     _taxiService       = taxiService;
     _navigationService = navigationService;
     _dialogService     = dislogService;
 }
Exemplo n.º 13
0
 public FromLocationAddressPageViewModel(IPageDialogService dialogService, ITaxiService taxiService, INavigationService navigationService)
 {
     _dialogService     = dialogService;
     _taxiService       = taxiService;
     _navigationService = navigationService;
 }