/// <inheritdoc/>
        async Task Load(IAccount author, IPullRequestModel pullRequest)
        {
            IsBusy = true;

            try
            {
                session = await sessionManager.GetSession(pullRequest);

                User             = author;
                PullRequestTitle = pullRequest.Title;

                var reviews = new List <IPullRequestReviewViewModel>();
                var isFirst = true;

                foreach (var review in pullRequest.Reviews.OrderByDescending(x => x.SubmittedAt))
                {
                    if (review.User.Login == author.Login &&
                        review.State != PullRequestReviewState.Pending)
                    {
                        var vm = new PullRequestReviewViewModel(editorService, session, pullRequest, review);
                        vm.IsExpanded = isFirst;
                        reviews.Add(vm);
                        isFirst = false;
                    }
                }

                Reviews = reviews;
            }
            finally
            {
                IsBusy = false;
            }
        }
        /// <inheritdoc/>
        async Task Load(PullRequestDetailModel pullRequest)
        {
            IsBusy = true;

            try
            {
                await Task.Delay(0);

                PullRequestTitle = pullRequest.Title;

                var reviews = new List <IPullRequestReviewViewModel>();
                var isFirst = true;

                foreach (var review in pullRequest.Reviews.OrderByDescending(x => x.SubmittedAt))
                {
                    if (review.Author.Login == login)
                    {
                        if (User == null)
                        {
                            User = new ActorViewModel(review.Author);
                        }

                        if (review.State != PullRequestReviewState.Pending)
                        {
                            var vm = new PullRequestReviewViewModel(editorService, session, review);
                            vm.IsExpanded = isFirst;
                            reviews.Add(vm);
                            isFirst = false;
                        }
                    }
                }

                Reviews = reviews;

                if (User == null)
                {
                    User = new ActorViewModel(new ActorModel {
                        Login = login
                    });
                }
            }
            finally
            {
                IsBusy = false;
            }
        }