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); }
public NewEntryPage(NewEntryPageViewModel vm) { BindingContext = vm; InitializeComponent(); }
public ContentPage BuildNewPage(NewEntryPageViewModel vm) { return(new NewEntryPage(vm)); }
public NewEntryPageViewModelTests() { tripLogNavigation = new Mock <ITripLogNavigation>(); testee = new NewEntryPageViewModel(tripLogNavigation.Object); }