public NewEntryPageViewModelTests()
 {
     tripLogNavigationMock = new Mock <ITripLogNavigation>();
     geoLocationMock       = new Mock <IGeoLocationService>();
     dataServiceMock       = new Mock <ITripLogDataService>();
     testee = new NewEntryPageViewModel(tripLogNavigationMock.Object, geoLocationMock.Object, dataServiceMock.Object);
 }
        public TripLogIntegrationTests()
        {
            tripLogFactoryMock = new Mock <ITripLogFactory>();
            var httpClient = new StandardAsyncHttpClient();

            tripLogDataService = new RestTripLogDataService(httpClient, new Uri("http://localhost:10080/Api/TripLog"));
            mainPageViewModel  = new MainPageViewModel(tripLogFactoryMock.Object, tripLogDataService);

            tripLogNavigationMock  = new Mock <ITripLogNavigation>();
            geoLocationServiceMock = new Mock <IGeoLocationService>();
            newEntryPageViewModel  = new NewEntryPageViewModel(tripLogNavigationMock.Object, geoLocationServiceMock.Object, tripLogDataService);
        }
Exemple #3
0
        public NewEntryPage(NewEntryPageViewModel vm)
        {
            BindingContext = vm;

            InitializeComponent();
        }
Exemple #4
0
 public ContentPage BuildNewPage(NewEntryPageViewModel vm)
 {
     return(new NewEntryPage(vm));
 }
Exemple #5
0
 public NewEntryPageViewModelTests()
 {
     tripLogNavigation = new Mock <ITripLogNavigation>();
     testee            = new NewEntryPageViewModel(tripLogNavigation.Object);
 }