private static List <VacationRequest> GetAllVacationsFromService(IVTSService vtsService) { var allVacations = vtsService.GetAllVacations().Result.Vacations; Assert.That(allVacations.Count, Is.GreaterThan(0)); return(allVacations); }
private static void UploadVacationToService(IVTSService vtsService, VacationRequest vacation) { var existingVacation = vtsService.GetVacation(vacation.Id).Result; Assert.That(existingVacation, Is.Null); var reloadedVacation = vtsService.UpdateVacation(vacation).Result.Vacation; Assert.That(reloadedVacation.Id, Is.EqualTo(vacation.Id)); }
public VacListViewModel(IVTSService service, IMvxNavigationService navigationService) { _service = service; _navigationService = navigationService; }