Пример #1
0
        private static List <VacationRequest> GetAllVacationsFromService(IVTSService vtsService)
        {
            var allVacations = vtsService.GetAllVacations().Result.Vacations;

            Assert.That(allVacations.Count, Is.GreaterThan(0));

            return(allVacations);
        }
Пример #2
0
        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));
        }
Пример #3
0
 public VacListViewModel(IVTSService service, IMvxNavigationService navigationService)
 {
     _service           = service;
     _navigationService = navigationService;
 }