Skip to content

Commit

Permalink
Add more test assertions
Browse files Browse the repository at this point in the history
  • Loading branch information
oliver-scott committed Apr 18, 2024
1 parent d2a9271 commit 7640eb2
Showing 1 changed file with 8 additions and 0 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -344,6 +344,10 @@ public async Task Should_return_ok_status_for_cancelled_multi_day_hearing_V1()
// Assert
var okRequestResult = (OkObjectResult) result;
okRequestResult.StatusCode.Should().Be(200);

var response = (HearingDetailsResponse) ((OkObjectResult) result).Value;
response.MultiDayHearingLastDayScheduledDateTime.Should().BeNull();
response.HearingsInGroup.Should().BeEquivalentTo(multiDayHearings.Select(x => x.Map()));
}

[Test]
Expand Down Expand Up @@ -388,6 +392,10 @@ public async Task Should_return_ok_status_for_cancelled_multi_day_hearing_V2()
// Assert
var okRequestResult = (OkObjectResult) result;
okRequestResult.StatusCode.Should().Be(200);

var response = (HearingDetailsResponse) ((OkObjectResult) result).Value;
response.MultiDayHearingLastDayScheduledDateTime.Should().BeNull();
response.HearingsInGroup.Should().BeEquivalentTo(multiDayHearings.Select(x => x.Map()));
}

[Test]
Expand Down

0 comments on commit 7640eb2

Please sign in to comment.