Skip to content

Commit

Permalink
update assertion
Browse files Browse the repository at this point in the history
  • Loading branch information
shaed-parkar committed Nov 28, 2024
1 parent a9c7252 commit e06e3f3
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 19 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -77,7 +77,8 @@ public async Task Should_book_hearing()
result.Result.Should().BeOfType<CreatedResult>();
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();

Expand Down
18 changes: 0 additions & 18 deletions AdminWebsite/AdminWebsite.UnitTests/TestParticipantRequest.cs

This file was deleted.

0 comments on commit e06e3f3

Please sign in to comment.