private async Task GivenOneConference(ExploreContext context) { var conference = new Conference(); conference.Identity = "awesomecon"; await context.Conference.AddAsync(conference); await context.SaveChangesAsync(); }
private async Task <Conference> GivenOneConference(ExploreContext context) { var conference = new Conference(); conference.Identity = "awesomecon"; var entry = await context.Conference.AddAsync(conference); await context.SaveChangesAsync(); return(entry.Entity); }
private async Task GivenOneSpeaker(ExploreContext context, Conference conference) { conference.AddSpeaker(); await context.SaveChangesAsync(); }