public IActionResult Index() { var now = DateTime.Now; var upcomingMeetups = meetupRepository.GetUpcomingMeetups(now); var pastMeetups = meetupRepository.GetPastMeetups(now); return(View(new MeetupOverview { UpcomingMeetups = upcomingMeetups, PastMeetups = pastMeetups })); }
public void Its_initial_state_is_valid() { var upcomingMeetups = meetupRepository.GetUpcomingMeetups(DateTime.Now); upcomingMeetups.ShouldBeEquivalentTo(new Shared.Entity.Meetup[0]); }