private async Task ThenRequestIsCreated() { var result = await _commandAction(); result.IsSuccessful.Should().BeTrue(); _createdRequest.Should().NotBeNull(); _createdRequest.MovieRequestId.Should().Be(default);
private async Task ThenRequestUpdatedCorrectly() { var result = await _commandAction(); result.IsSuccessful.Should().BeTrue(); _request.Should().NotBeNull(); _request.RequestStatus.Should().Be(RequestStatuses.Rejected); _request.Comment.Should().Be(_command.Comment); }
private void ThenARequestWasUpdatedCorrectly() { _requestToUpdate.Should().NotBeNull(); _requestToUpdate.RequestStatus.Should().Be(RequestStatuses.Approved); }