Пример #1
0
        public PullRequestDataModel()
        {
            PullRequest = new PullRequest
            {
                User = new User
                {
                    Login     = "******",
                    AvatarUrl = "https://secure.gravatar.com/avatar/5c4663b12b9e6d8dc6dcdfbfb3dc1317",
                },
                Body      = "Look at my nice PR!",
                Additions = 468,
                Deletions = 352,
                Commits   = 8,
                State     = "Open"
            };

            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,
                    }
                }
            };

            CanComment      = false;
            MinimizeAppBar  = true;
            RepoName        = "michelsalib/gi7";
            PullRequestName = "Pull Request #01";
        }
Пример #2
0
        public CommitDataModel()
        {
            RepoName = "michelsalib/Gi7";

            Commit = new Push
            {
                Author = new User
                {
                    Login     = "******",
                    AvatarUrl = "https://secure.gravatar.com/avatar/5c4663b12b9e6d8dc6dcdfbfb3dc1317",
                },
                Commit = new Commit
                {
                    Message = "-- general performance improvements\n-- removed most of the sub view models\n-- support late loading of the panorama/pivot items",
                    Author  = new Committer
                    {
                        Date = DateTime.Now,
                    }
                },
                Stats = new PushStats
                {
                    Additions = 468,
                    Deletions = 352,
                    Total     = 820
                },
            };

            Files = new ObservableCollection <CommitFile>
            {
                new CommitFile
                {
                    File = new File
                    {
                        Filename = "Fie.cs",
                    },
                    Lines = new ObservableCollection <CommitLine>
                    {
                        new CommitLine
                        {
                            Color = new SolidColorBrush(Colors.Blue),
                            Line  = "@@ line description",
                        },
                        new CommitLine
                        {
                            Color = new SolidColorBrush(Colors.Green),
                            Line  = "+ new line",
                        },
                        new CommitLine
                        {
                            Color = new SolidColorBrush(Colors.Red),
                            Line  = "- old line",
                        },
                        new CommitLine
                        {
                            Color = new SolidColorBrush(Colors.White),
                            Line  = "single line",
                        }
                    },
                }
            };

            CommentsRequest = new StubPaginatedRequest <Comment>
            {
                Result = new List <Comment>
                {
                    new Comment
                    {
                        Body = "My comment is nice !",
                        User = new User
                        {
                            Login     = "******",
                            AvatarUrl = "https://secure.gravatar.com/avatar/5c4663b12b9e6d8dc6dcdfbfb3dc1317",
                        },
                        UpdatedAt = DateTime.Now,
                    }
                }
            };
        }
Пример #3
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,
                    }
                }
            };
        }