public async void GetFestivalsShouldReturnFestivalList() { List <Festival> expected = await _dbMock.Object.Festivals.ToListAsync(); List <Festival> actual = _festivalService.GetFestivals().ToList(); Assert.Equal(expected, actual); }
private void LoadFestivals() { var festivals = _festivalService.GetFestivals(); foreach (var festival in festivals) { _cachePoints.Add(new PointItem { Name = festival.FestivalName, Location = new Location(festival.Address.Latitude, festival.Address.Longitude), DestinationParameter = festival.Id, DestinationView = "FestivalInfo", Parent = this, DotColor = new SolidColorBrush(Colors.Red) }); } }
public FestivalListViewModel(IFrameNavigationService navigationService, IFestivalService festivalService) { _navigationService = navigationService; OpenFestivalCommand = new RelayCommand <int>(OpenFestival); Festivals = (CollectionView)CollectionViewSource.GetDefaultView(festivalService.GetFestivals()); Festivals.Filter = Filter; festivalService.Sync(); }