public void When_organiser_creates_event_Then_event_is_listed() { var createViewModel = new EventViewModel {Name = "Fpp", Location = "Loc"}; var controller = new EventController(); controller.Add(createViewModel); var events = controller.UpcomingEvents(); Assert.Equal(1, events.Count(x => x.Name == "Fpp" && x.Location == "Loc")); }
public void Add(EventViewModel viewModel) { throw new NotImplementedException(); }