Esempio n. 1
0
        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);
                }
            }
        }
Esempio n. 2
0
        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();
        }