public void It_persists_and_retrieves_meetups() { var originalMeetup = MeetupFactory.SomeMeetup(); meetupRepository.Add(originalMeetup); originalMeetup.Id.Should().BeGreaterThan(0); var restoredMeetup = meetupRepository.GetById(originalMeetup.Id); restoredMeetup.ShouldBeEquivalentTo(originalMeetup); }
public IActionResult Details(long id) { var meetup = meetupRepository.GetById(id); return(View(meetup)); }