diff --git a/AdminWebsite/AdminWebsite.UnitTests/Controllers/HearingsController/BookNewHearingTests.cs b/AdminWebsite/AdminWebsite.UnitTests/Controllers/HearingsController/BookNewHearingTests.cs index 6043d542d..a63323ecf 100644 --- a/AdminWebsite/AdminWebsite.UnitTests/Controllers/HearingsController/BookNewHearingTests.cs +++ b/AdminWebsite/AdminWebsite.UnitTests/Controllers/HearingsController/BookNewHearingTests.cs @@ -77,7 +77,8 @@ public async Task Should_book_hearing() result.Result.Should().BeOfType(); var createdObjectResult = (CreatedResult) result.Result; createdObjectResult.StatusCode.Should().Be(201); - createdObjectResult.Value.Should().BeEquivalentTo(hearingDetailsResponse, options => options.ExcludingMissingMembers()); + createdObjectResult.Value.Should().BeEquivalentTo(hearingDetailsResponse, + options => options.ExcludingMissingMembers().Excluding(x => x.HearingVenueName)); bookingDetails.Participants.Exists(x => string.IsNullOrWhiteSpace(x.Username)).Should().BeFalse(); diff --git a/AdminWebsite/AdminWebsite.UnitTests/TestParticipantRequest.cs b/AdminWebsite/AdminWebsite.UnitTests/TestParticipantRequest.cs deleted file mode 100644 index 2024a1f2c..000000000 --- a/AdminWebsite/AdminWebsite.UnitTests/TestParticipantRequest.cs +++ /dev/null @@ -1,18 +0,0 @@ -namespace AdminWebsite.UnitTests -{ - internal class TestParticipantRequest - { - public TestParticipantRequest() - { - } - - public string DisplayName { get; set; } - public string Email { get; set; } - public string FirstName { get; set; } - public string LastName { get; set; } - public string Phone { get; set; } - public string Role { get; set; } - public string Title { get; set; } - public string Username { get; set; } - } -} \ No newline at end of file