Пример #1
0
        public TripCandidate GetTripCandidateTest([PexAssumeUnderTest] TripCreationService target, int index)
        {
            TripCandidate result = target.GetTripCandidate(index);

            return(result);
            // TODO: add assertions to method TripCreationServiceTest.GetTripCandidateTest(TripCreationService, Int32)
        }
Пример #2
0
        public void Load(int tripIndex = 0)
        {
            var trip       = _tripCreationService.GetTripCandidate(tripIndex);
            var candidates = trip.Destinations.Select(
                d => DestinationCandidateModel.CreateDestinationCandidateModel(d)).ToList();

            foreach (var cand in candidates)
            {
                DestinationCandidates.Add(cand);
            }

            TripCandidate = TripCandidateModel.CreateTripCandidateModel(trip);
        }