public static void ForParticipant(ParticipantSummaryResponse participant) { participant.Should().NotBeNull("Participant is null"); participant.Id.Should().NotBeEmpty($"Id is '{participant.Id}'"); participant.Username.Should().NotBeNullOrWhiteSpace($"Username is '{participant.Username}'"); participant.HearingRole.Should().NotBeNullOrWhiteSpace($"HearingRole is '{participant.HearingRole}'"); participant.UserRole.ToString().Should().NotBeNullOrWhiteSpace($"UserRole is '{participant.UserRole}'"); participant.DisplayName.Should().NotBeNullOrWhiteSpace($"DisplayName is '{participant.DisplayName}'"); participant.FirstName.Should().NotBeNullOrWhiteSpace($"FirstName is '{participant.FirstName}'"); participant.LastName.Should().NotBeNullOrWhiteSpace($"LastName is '{participant.LastName}'"); participant.ContactEmail.Should().NotBeNullOrWhiteSpace($"ContactEmail is '{participant.ContactEmail}'"); }
public List <ConferenceForAdminResponse> Build() { var participants = new List <ParticipantSummaryResponse>(); var judge = new ParticipantSummaryResponse() { DisplayName = UserData.DISPLAY_NAME, FirstName = UserData.FIRST_NAME, Id = Guid.NewGuid(), LastName = UserData.LAST_NAME, Representee = string.Empty, UserRole = UserRole.Judge, Username = UserData.USERNAME }; var individual = new ParticipantSummaryResponse() { DisplayName = UserData.DISPLAY_NAME, FirstName = UserData.FIRST_NAME, Id = Guid.NewGuid(), LastName = UserData.LAST_NAME, Representee = string.Empty, UserRole = UserRole.Individual, Username = UserData.USERNAME }; participants.Add(judge); participants.Add(individual); return(new List <ConferenceForAdminResponse>() { new ConferenceForAdminResponse() { CaseName = HearingsData.CASE_NAME, CaseNumber = HearingsData.CASE_NUMBER, CaseType = HearingsData.CASE_TYPE, ClosedDateTime = null, HearingVenueName = HearingsData.VENUE, Id = Guid.NewGuid(), Participants = participants, ScheduledDateTime = DateTime.UtcNow, ScheduledDuration = HearingsData.SCHEDULED_DURATION, StartedDateTime = null } }); }