public CitySearchDomainService(IMapperService mapperService,
                                ICityDataService cityDataService, IWeatherRestService weatherService,
                                ICountryRestService countryRestService)
 {
     _mapperService      = mapperService;
     _cityDataService    = cityDataService;
     _weatherService     = weatherService;
     _countryRestService = countryRestService;
 }
 public SavedRemittanceDataService(ISavedRemittanceRepository savedRemittanceRepository, IRemittanceDataService remittanceDataService, ICityDataService cityDataService, IBeneficiaryDataService beneficiaryDataService, ICountryDataService countryDataService, IServiceDataService serviceDataService)
 {
     _savedRemittanceRepository = savedRemittanceRepository;
     _remittanceDataService     = remittanceDataService;
     _cityDataService           = cityDataService;
     _beneficiaryDataService    = beneficiaryDataService;
     _countryDataService        = countryDataService;
     _serviceDataService        = serviceDataService;
 }
Beispiel #3
0
 public TissueBankController()
 {
     tbDataService          = new TissueBankDataService();
     transactionDataService = new TransactionDataService();
     errorDataService       = new ErrorDataService();
     statusDataService      = new StatusDataService();
     stateDataService       = new StateDataService();
     cityDataService        = new CityDataService();
 }
Beispiel #4
0
        public SearchJourneyViewModel(IMvxMessenger messenger,
                                      ICityDataService cityDataService,
                                      IConnectionService connectionService,
                                      IDialogService dialogService) : base(messenger)
        {
            _cityDataService   = cityDataService;
            _connectionService = connectionService;
            _dialogService     = dialogService;

            SelectedDate = DateTime.Today;
        }
Beispiel #5
0
        //public IMvxCommand SearchCommand
        //{
        //    get
        //    {
        //        return new MvxCommand(() =>
        //            ShowViewModel<SearchResultViewModel>(new SearchParameters
        //            {
        //                DepartureTime = SelectedHour, FromCityId = SelectedFromCity.CityId, ToCityId = SelectedToCity.CityId, JourneyDate = SelectedDate
        //            }));
        //    }
        //}

        public SearchTripViewModel(ICityDataService cityDataService,
                                   IConnectionService connectionService,
                                   IMvxNavigationService mvxNavigationService)
            : base(mvxNavigationService)
        {
            _cityDataService   = cityDataService;
            _connectionService = connectionService;
            _dialogService     = null;

            SelectedDate = DateTime.Today;
        }
Beispiel #6
0
        //public MvxCommand SendCommand
        //{
        //    get
        //    {
        //        return new MvxCommand(async () =>
        //        {
        //            Mvx.Resolve<SendRepository>().CreateSend(_send).Wait();
        //            Close(this);
        //            (_userDataService.GetActiveUser().UserId, SelectedRemittance.RemittanceId, SelectedRemittance.BeneficiaryId, SelectedRemittance.CountryId, SelectedRemittance.CityId, SelectedRemittance.ServiceId);

        //            //Hardcoded text, better with resx translations
        //            //await
        //            //    _dialogService.ShowAlertAsync("This journey is now in your Saved Journeys!", "My Trains says...", "OK");

        //            await
        //                _dialogService.ShowAlertAsync
        //                (TextSource.GetText("AddedToSavedRemittancesMessage"),
        //                 TextSource.GetText("AddedToSavedRemittancesTitle"),
        //                 TextSource.GetText("AddedToSavedRemittancesButton"));
        //        });
        //    }
        //}


        public SendViewModel(IMvxMessenger messenger,
                             ICountryDataService countryDatasService,
                             IServiceDataService serviceDatasService,

                             ICityDataService cityDataService,
                             IConnectionService connectionService,
                             IDialogService dialogService) : base(messenger)
        {
            _countryDataService = countryDatasService;
            _serviceDataService = serviceDatasService;

            _cityDataService   = cityDataService;
            _connectionService = connectionService;
            _dialogService     = dialogService;
        }
        public SendRemittanceViewModel(IMvxMessenger messenger,
                                       IBeneficiaryDataService beneficiaryDataService,
                                       ICountryDataService countryDatasService,
                                       IServiceDataService serviceDatasService,

                                       ICityDataService cityDataService,
                                       IConnectionService connectionService,
                                       IDialogService dialogService) : base(messenger)
        {
            _beneficiaryDataService = beneficiaryDataService;
            _countryDataService     = countryDatasService;
            _serviceDataService     = serviceDatasService;

            _cityDataService   = cityDataService;
            _connectionService = connectionService;
            _dialogService     = dialogService;

            SelectedDate = DateTime.Today;
        }
Beispiel #8
0
 public void Initialize()
 {
     cityDataService = ServiceMocks.GetMockCityDataService(3);
 }
Beispiel #9
0
 public SavedJourneyDataService(ISavedJourneyRepository savedJourneyRepository, IJourneyDataService journeyDataService, ICityDataService cityDataService)
 {
     _savedJourneyRepository = savedJourneyRepository;
     _journeyDataService     = journeyDataService;
     _cityDataService        = cityDataService;
 }
 public FakeSearchRemittanceViewModel(IMvxMessenger messenger, ICityDataService cityDataService, IConnectionService connectionService, IDialogService dialogService) : base(messenger, cityDataService, connectionService, dialogService)
 {
 }
 public CityBusinessService(ICityDataService _cityDataService)
 {
     cityDataService = _cityDataService;
 }
 public void Startup()
 {
     _sutDataService = new CityDataService(_mockRepo.Object, _mockUow.Object, _mockMapperService.Object);
 }
 public CityDomainService(IMapperService mapperService, ICityDataService cityDataService)
 {
     _mapperService   = mapperService;
     _cityDataService = cityDataService;
 }
Beispiel #14
0
 public SavedRemittanceDataService(ISavedRemittanceRepository savedRemittanceRepository, IRemittanceDataService remittanceDataService, ICityDataService cityDataService)
 {
     _savedRemittanceRepository = savedRemittanceRepository;
     _remittanceDataService     = remittanceDataService;
     _cityDataService           = cityDataService;
 }
 public CityController()
 {
     cityDataService = new CityDataService();
 }
Beispiel #16
0
 public SavedTripDataService(ISavedTripRepository savedTripRepository, ITripDataService tripDataService, ICityDataService cityDataService)
 {
     _savedTripRepository = savedTripRepository;
     _tripDataService     = tripDataService;
     _cityDataService     = cityDataService;
 }