public async Task IsTrueWhenStartReviewCalled() { var currentUser = CreateActor(); var service = Substitute.For <IPullRequestSessionService>(); var review = CreateReview(author: currentUser, state: PullRequestReviewState.Pending); service.CreatePendingReview(null, null).ReturnsForAnyArgs(CreatePullRequest(review)); var target = new PullRequestSession( service, currentUser, CreatePullRequest(), CreateLocalRepository(), "owner", true); Assert.That(target.HasPendingReview, Is.False); await target.StartReview(); Assert.That(target.HasPendingReview, Is.True); }