Inheritance: BoolModel
Example #1
0
        public IssueDataModel()
        {
            RepoName = "michelsalib/Gi7";
            IssueName = "Issue #51";
            Issue = new Issue
            {
                Body = "This is a very important issue, nothing works! This is a very important issue, nothing works! This is a very important issue, nothing works! This is a very important issue, nothing works! This is a very important issue, nothing works! This is a very important issue, nothing works!",
                Title = "Nothing works",
                User = new User
                {
                    Login = "******",
                    AvatarUrl = "https://secure.gravatar.com/avatar/5c4663b12b9e6d8dc6dcdfbfb3dc1317",
                },
            };

            CommentsRequest = new StubPaginatedRequest<Comment>
            {
                Result = new List<Comment>
                {
                    new Comment
                    {
                        Body = "My comment is nice ! My comment is nice ! My comment is nice ! My comment is nice ! My comment is nice ! My comment is nice ! My comment is nice ! My comment is nice !",
                        User = new User
                        {
                            Login = "******",
                            AvatarUrl = "https://secure.gravatar.com/avatar/5c4663b12b9e6d8dc6dcdfbfb3dc1317",
                        },
                        UpdatedAt = DateTime.Now,
                    },
                    new Comment
                    {
                        Body = "My comment is nice !",
                        User = new User
                        {
                            Login = "******",
                            AvatarUrl = "https://secure.gravatar.com/avatar/5c4663b12b9e6d8dc6dcdfbfb3dc1317",
                        },
                        UpdatedAt = DateTime.Now,
                    },
                    new Comment
                    {
                        Body = "My comment is nice !",
                        User = new User
                        {
                            Login = "******",
                            AvatarUrl = "https://secure.gravatar.com/avatar/5c4663b12b9e6d8dc6dcdfbfb3dc1317",
                        },
                        UpdatedAt = DateTime.Now,
                    },
                    new Comment
                    {
                        Body = "My comment is nice !",
                        User = new User
                        {
                            Login = "******",
                            AvatarUrl = "https://secure.gravatar.com/avatar/5c4663b12b9e6d8dc6dcdfbfb3dc1317",
                        },
                        UpdatedAt = DateTime.Now,
                    },
                    new Comment
                    {
                        Body = "My comment is nice !",
                        User = new User
                        {
                            Login = "******",
                            AvatarUrl = "https://secure.gravatar.com/avatar/5c4663b12b9e6d8dc6dcdfbfb3dc1317",
                        },
                        UpdatedAt = DateTime.Now,
                    },
                    new Comment
                    {
                        Body = "My comment is nice !",
                        User = new User
                        {
                            Login = "******",
                            AvatarUrl = "https://secure.gravatar.com/avatar/5c4663b12b9e6d8dc6dcdfbfb3dc1317",
                        },
                        UpdatedAt = DateTime.Now,
                    },
                    new Comment
                    {
                        Body = "My comment is nice !",
                        User = new User
                        {
                            Login = "******",
                            AvatarUrl = "https://secure.gravatar.com/avatar/5c4663b12b9e6d8dc6dcdfbfb3dc1317",
                        },
                        UpdatedAt = DateTime.Now,
                    },
                    new Comment
                    {
                        Body = "My comment is nice !",
                        User = new User
                        {
                            Login = "******",
                            AvatarUrl = "https://secure.gravatar.com/avatar/5c4663b12b9e6d8dc6dcdfbfb3dc1317",
                        },
                        UpdatedAt = DateTime.Now,
                    },
                    new Comment
                    {
                        Body = "My comment is nice !",
                        User = new User
                        {
                            Login = "******",
                            AvatarUrl = "https://secure.gravatar.com/avatar/5c4663b12b9e6d8dc6dcdfbfb3dc1317",
                        },
                        UpdatedAt = DateTime.Now,
                    },
                    new Comment
                    {
                        Body = "My comment is nice !",
                        User = new User
                        {
                            Login = "******",
                            AvatarUrl = "https://secure.gravatar.com/avatar/5c4663b12b9e6d8dc6dcdfbfb3dc1317",
                        },
                        UpdatedAt = DateTime.Now,
                    }
                }
            };
        }
Example #2
0
 private void OnIssueSelected(Issue issue)
 {
     if (issue)
     {
         var destination = issue.PullRequest.HtmlUrl == null ? ViewModelLocator.ISSUE_URL : ViewModelLocator.PULL_REQUEST_URL;
         navigationService.NavigateTo(string.Format(destination, Repository.Owner.Login, Repository.Name, issue.Number));
     }
 }