public async Task ThenTheSummaryOfConferenceDetailsShouldBeRetrieved() { var conferences = await Response.GetResponses <List <ConferenceForJudgeResponse> >(_context.Response.Content); conferences.Should().NotBeNullOrEmpty(); foreach (var conference in conferences) { conference.ScheduledDateTime.DayOfYear.Should().Be(DateTime.Now.DayOfYear); AssertConferenceForJudgeResponse.ForConference(conference); conference.Participants.Should().NotBeNullOrEmpty(); foreach (var participant in conference.Participants) { AssertParticipantForJudgeResponse.ForParticipant(participant); } } }
public void ThenAListOfTheConferenceDetailsForJudgeShouldBeRetrieved() { var conferences = RequestHelper.Deserialise <List <ConferenceForJudgeResponse> >(_context.Response.Content); conferences.Should().NotBeNull(); foreach (var conference in conferences) { AssertConferenceForJudgeResponse.ForConference(conference); foreach (var participant in conference.Participants) { AssertParticipantForJudgeResponse.ForParticipant(participant); } conference.ScheduledDateTime.DayOfYear.Should().Be(DateTime.Now.DayOfYear); } _context.Test.ConferenceJudgeResponses = conferences.Where(x => x.CaseName.StartsWith("Automated Test Hearing")).ToList(); }