GitHub PullRequestReviewCommentEvent at 2014-10-16 23:21:52
Repository: Mvc
Actor: pranavkm
Payload: {"action":"created","comment":{"url":"https://api.github.com/repos/aspnet/Mvc/pulls/comments/18993530","id":18993530,"diff_hunk":"@@ -0,0 +1,305 @@\n+﻿// Copyright (c) Microsoft Open Technologies, Inc. All rights reserved.\n+// Licensed under the Apache License, Version 2.0. See License.txt in the project root for license information.\n+\n+using System;\n+using System.Collections.Generic;\n+using System.IO;\n+using System.Reflection;\n+using System.Threading.Tasks;\n+using Microsoft.AspNet.Http;\n+using Microsoft.AspNet.Mvc.ModelBinding;\n+using Microsoft.AspNet.Mvc.Razor;\n+using Microsoft.AspNet.Mvc.Rendering;\n+using Microsoft.AspNet.Razor.Runtime.TagHelpers;\n+using Microsoft.AspNet.Routing;\n+using Moq;\n+using Xunit;\n+\n+namespace Microsoft.AspNet.Mvc.TagHelpers\n+{\n+    public class ValidationSummaryTagHelperTest\n+    {\n+        [Fact]\n+        public async Task ProcessAsync_GeneratesExpectedOutput()\n+        {\n+            // Arrange\n+            var metadataProvider = new DataAnnotationsModelMetadataProvider();\n+            var validationSummaryTagHelper = new ValidationSummaryTagHelper\n+            {\n+                ValidationSummaryValue = \"All\"\n+            };\n+\n+            var tagHelperContext = new TagHelperContext(new Dictionary<string, object>());\n+            var output = new TagHelperOutput(\n+                \"div\",\n+                attributes: new Dictionary<string, string>\n+                {\n+                    { \"class\", \"form-control\" }\n+                },\n+                content: \"Custom Content\");\n+\n+            var htmlGenerator = new TestableHtmlGenerator(metadataProvider);\n+            Model model = null;\n+            var viewContext = TestableHtmlGenerator.GetViewContext(model, htmlGenerator, metadataProvider);\n+            var activator = new DefaultTagHelperActivator();\n+            activator.Activate(validationSummaryTagHelper, viewContext);\n+\n+            // Act\n+            await validationSummaryTagHelper.ProcessAsync(tagHelperContext, output);\n+\n+            // Assert\n+            Assert.Equal(2, output.Attributes.Count);\n+            var attribute = Assert.Single(output.Attributes, kvp => kvp.Key.Equals(\"class\"));\n+            Assert.Equal(\"form-control validation-summary-valid\", attribute.Value);\n+            attribute = Assert.Single(output.Attributes, kvp => kvp.Key.Equals(\"data-valmsg-summary\"));\n+            Assert.Equal(\"true\", attribute.Value);\n+            Assert.Equal(\"Custom Content<ul><li style=\\\"display:none\\\"></li>\" + Environment.NewLine + \"</ul>\",\n+                         output.Content);\n+            Assert.Equal(\"div\", output.TagName);\n+        }\n+\n+        [Fact]\n+        public async Task ProcessAsync_CallsIntoGenerateValidationSummaryWithExpectedParameters()\n+        {\n+            // Arrange\n+            var validationSummaryTagHelper = new ValidationSummaryTagHelper\n+            {\n+                ValidationSummaryValue = \"ModelOnly\",\n+            };\n+            var output = new TagHelperOutput(\n+                \"div\",\n+                attributes: new Dictionary<string, string>(),\n+                content: \"Content of validation summary\");\n+            var expectedViewContext = CreateViewContext();\n+            var generator = new Mock<IHtmlGenerator>();\n+            generator\n+                .Setup(mock => mock.GenerateValidationSummary(expectedViewContext, true, null, null, null))\n+                .Returns(new TagBuilder(\"div\"))\n+                .Verifiable();\n+\n+            SetViewContextAndGenerator(validationSummaryTagHelper, expectedViewContext, generator.Object);\n+\n+            // Act & Assert\n+            await validationSummaryTagHelper.ProcessAsync(context: null, output: output);\n+\n+            generator.Verify();\n+            Assert.Equal(\"div\", output.TagName);\n+            Assert.Empty(output.Attributes);\n+            Assert.Equal(\"Content of validation summary\", output.Content);\n+        }\n+\n+        [Fact]\n+        public async Task ProcessAsync_MergesTagBuilderFromGenerateValidationSummary()\n+        {\n+            // Arrange\n+            var validationSummaryTagHelper = new ValidationSummaryTagHelper\n+            {\n+                ValidationSummaryValue = \"ModelOnly\"\n+            };\n+            var output = new TagHelperOutput(\n+                \"div\",\n+                attributes: new Dictionary<string, string>(),\n+                content: \"Content of validation summary\");\n+            var tagBuilder = new TagBuilder(\"span2\")\n+            {\n+                InnerHtml = \"New HTML\"\n+            };\n+\n+            tagBuilder.Attributes.Add(\"data-foo\", \"bar\");\n+            tagBuilder.Attributes.Add(\"data-hello\", \"world\");\n+\n+            var expectedViewContext = CreateViewContext();\n+            var generator = new Mock<IHtmlGenerator>(MockBehavior.Strict);\n+            var setup = generator\n+                .Setup(mock => mock.GenerateValidationSummary(It.IsAny<ViewContext>(),\n+                    It.IsAny<bool>(),\n+                    It.IsAny<string>(),\n+                    It.IsAny<string>(),\n+                    It.IsAny<object>()))\n+                .Returns(tagBuilder);\n+\n+            SetViewContextAndGenerator(validationSummaryTagHelper, expectedViewContext, generator.Object);\n+\n+            // Act\n+            await validationSummaryTagHelper.ProcessAsync(context: null, output: output);\n+\n+            // Assert\n+            Assert.Equal(output.TagName, \"div\");\n+            Assert.Equal(2, output.Attributes.Count);\n+            var attribute = Assert.Single(output.Attributes, kvp => kvp.Key.Equals(\"data-foo\"));\n+            Assert.Equal(\"bar\", attribute.Value);\n+            attribute = Assert.Single(output.Attributes, kvp => kvp.Key.Equals(\"data-hello\"));\n+            Assert.Equal(\"world\", attribute.Value);\n+            Assert.Equal(\"Content of validation summaryNew HTML\", output.Content);\n+        }\n+\n+        [Theory]\n+        [InlineData(\"\")]\n+        [InlineData(null)]\n+        public async Task ProcessAsync_DoesNothingIfNullOrEmptyValidationSummaryValue(string validationSummaryValue)\n+        {\n+            // Arrange\n+            var validationSummaryTagHelper = new ValidationSummaryTagHelper\n+            {\n+                ValidationSummaryValue = validationSummaryValue\n+            };\n+            var output = new TagHelperOutput(\n+                \"div\",\n+                attributes: new Dictionary<string, string>(),\n+                content: \"Content of validation message\");\n+\n+            var expectedViewContext = CreateViewContext();\n+            var generator = new Mock<IHtmlGenerator>(MockBehavior.Strict);\n+\n+            SetViewContextAndGenerator(validationSummaryTagHelper, expectedViewContext, generator.Object);\n+\n+            // Act\n+            await validationSummaryTagHelper.ProcessAsync(context: null, output: output);\n+\n+            // Assert\n+            Assert.Equal(\"div\", output.TagName);\n+            Assert.Empty(output.Attributes);\n+            Assert.Equal(\"Content of validation message\", output.Content);\n+        }\n+\n+        [Theory]\n+        [InlineData(\"All\")]\n+        [InlineData(\"all\")]\n+        [InlineData(\"ModelOnly\")]\n+        [InlineData(\"modelonly\")]\n+        public async Task ProcessAsync_GeneratesValidationSummaryWhenNotNone_IgnoresCase(string validationSummary)\n+        {\n+            // Arrange\n+            var validationSummaryTagHelper = new ValidationSummaryTagHelper\n+            {\n+                ValidationSummaryValue = validationSummary\n+            };\n+            var output = new TagHelperOutput(\n+                \"div\",\n+                attributes: new Dictionary<string, string>(),\n+                content: \"Content of validation message\");\n+            var tagBuilder = new TagBuilder(\"span2\")\n+            {\n+                InnerHtml = \"New HTML\"\n+            };\n+\n+            var expectedViewContext = CreateViewContext();\n+            var generator = new Mock<IHtmlGenerator>(MockBehavior.Loose);\n+            generator\n+                .Setup(mock => mock.GenerateValidationSummary(It.IsAny<ViewContext>(),\n+                    It.IsAny<bool>(),\n+                    It.IsAny<string>(),\n+                    It.IsAny<string>(),\n+                    It.IsAny<object>()))\n+                .Returns(tagBuilder)\n+                .Verifiable();\n+\n+            SetViewContextAndGenerator(validationSummaryTagHelper, expectedViewContext, generator.Object);\n+\n+            // Act\n+            await validationSummaryTagHelper.ProcessAsync(context: null, output: output);\n+\n+            // Assert\n+            Assert.Equal(\"div\", output.TagName);\n+            Assert.Empty(output.Attributes);\n+            Assert.Equal(\"Content of validation messageNew HTML\", output.Content);\n+            generator.Verify();\n+        }\n+\n+        [Theory]\n+        [InlineData(\"None\")]\n+        [InlineData(\"none\")]\n+        public async Task ProcessAsync_DoesNotGenerateValidationSummaryWhenNone_IgnoresCase(string validationSummary)\n+        {\n+            // Arrange\n+            var validationSummaryTagHelper = new ValidationSummaryTagHelper\n+            {\n+                ValidationSummaryValue = validationSummary\n+            };\n+            var output = new TagHelperOutput(\n+                \"div\",\n+                attributes: new Dictionary<string, string>(),\n+                content: \"Content of validation message\");\n+            var tagBuilder = new TagBuilder(\"span2\")\n+            {\n+                InnerHtml = \"New HTML\"\n+            };\n+\n+            var generator = new Mock<IHtmlGenerator>(MockBehavior.Loose);\n+            generator\n+                .Setup(mock => mock.GenerateValidationSummary(It.IsAny<ViewContext>(),\n+                    It.IsAny<bool>(),\n+                    It.IsAny<string>(),\n+                    It.IsAny<string>(),\n+                    It.IsAny<object>()))\n+                .Throws(new Exception(\"Shouldn't be called.\"));\n+\n+            // Act\n+            await validationSummaryTagHelper.ProcessAsync(context: null, output: output);\n+\n+            // Assert\n+            Assert.Equal(\"div\", output.TagName);\n+            Assert.Empty(output.Attributes);\n+            Assert.Equal(\"Content of validation message\", output.Content);\n+        }\n+\n+        [Fact]\n+        public async Task ProcessAsync_ThrowsWhenInvalidValidationSummaryValue()\n+        {\n+            // Arrange\n+            var validationSummaryTagHelper = new ValidationSummaryTagHelper\n+            {\n+                ValidationSummaryValue = \"Hello World\"\n+            };\n+            var output = new TagHelperOutput(\n+                \"div\",\n+                attributes: new Dictionary<string, string>(),\n+                content: \"Content of validation message\");\n+            var expectedViewContext = CreateViewContext();\n+            var expectedMessage = \"Cannot parse validation-summary value 'Hello World'. Acceptable values are \" +\n+                                  \"'All', 'ModelOnly' and 'None'.\";\n+\n+            // Act\n+            var ex = await Assert.ThrowsAsync<InvalidOperationException>(async () =>\n+            {\n+                await validationSummaryTagHelper.ProcessAsync(context: null, output: output);\n+            });\n+\n+            // Assert\n+            Assert.Equal(expectedMessage, ex.Message);\n+        }\n+\n+        private static ViewContext CreateViewContext()\n+        {\n+            var actionContext = new ActionContext(\n+                new Mock<HttpContext>().Object,","path":"test/Microsoft.AspNet.Mvc.TagHelpers.Test/ValidationSummaryTagHelperTest.cs","position":275,"original_position":275,"commit_id":"99f8720057f585f9ec49c02c261892d402254560","original_commit_id":"99f8720057f585f9ec49c02c261892d402254560","user":{"login":"pranavkm","id":174281,"avatar_url":"https://avatars.githubusercontent.com/u/174281?v=2","gravatar_id":"","url":"https://api.github.com/users/pranavkm","html_url":"https://github.com/pranavkm","followers_url":"https://api.github.com/users/pranavkm/followers","following_url":"https://api.github.com/users/pranavkm/following{/other_user}","gists_url":"https://api.github.com/users/pranavkm/gists{/gist_id}","starred_url":"https://api.github.com/users/pranavkm/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/pranavkm/subscriptions","organizations_url":"https://api.github.com/users/pranavkm/orgs","repos_url":"https://api.github.com/users/pranavkm/repos","events_url":"https://api.github.com/users/pranavkm/events{/privacy}","received_events_url":"https://api.github.com/users/pranavkm/received_events","type":"User","site_admin":false},"body":"`new DefaultHttpContext()`","created_at":"2014-10-16T23:21:52Z","updated_at":"2014-10-16T23:21:52Z","html_url":"https://github.com/aspnet/Mvc/pull/1340#discussion_r18993530","pull_request_url":"https://api.github.com/repos/aspnet/Mvc/pulls/1340","_links":{"self":{"href":"https://api.github.com/repos/aspnet/Mvc/pulls/comments/18993530"},"html":{"href":"https://github.com/aspnet/Mvc/pull/1340#discussion_r18993530"},"pull_request":{"href":"https://api.github.com/repos/aspnet/Mvc/pulls/1340"}}},"pull_request":{"url":"https://api.github.com/repos/aspnet/Mvc/pulls/1340","id":22620708,"html_url":"https://github.com/aspnet/Mvc/pull/1340","diff_url":"https://github.com/aspnet/Mvc/pull/1340.diff","patch_url":"https://github.com/aspnet/Mvc/pull/1340.patch","issue_url":"https://api.github.com/repos/aspnet/Mvc/issues/1340","number":1340,"state":"open","locked":false,"title":"Add ValidationSummaryTagHelper.","user":{"login":"NTaylorMullen","id":2008729,"avatar_url":"https://avatars.githubusercontent.com/u/2008729?v=2","gravatar_id":"","url":"https://api.github.com/users/NTaylorMullen","html_url":"https://github.com/NTaylorMullen","followers_url":"https://api.github.com/users/NTaylorMullen/followers","following_url":"https://api.github.com/users/NTaylorMullen/following{/other_user}","gists_url":"https://api.github.com/users/NTaylorMullen/gists{/gist_id}","starred_url":"https://api.github.com/users/NTaylorMullen/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/NTaylorMullen/subscriptions","organizations_url":"https://api.github.com/users/NTaylorMullen/orgs","repos_url":"https://api.github.com/users/NTaylorMullen/repos","events_url":"https://api.github.com/users/NTaylorMullen/events{/privacy}","received_events_url":"https://api.github.com/users/NTaylorMullen/received_events","type":"User","site_admin":false},"body":"#1251","created_at":"2014-10-12T21:46:16Z","updated_at":"2014-10-16T23:21:52Z","closed_at":null,"merged_at":null,"merge_commit_sha":"3babc6d14a76a5ec7d2598edf3a063733e52795b","assignee":null,"milestone":null,"commits_url":"https://api.github.com/repos/aspnet/Mvc/pulls/1340/commits","review_comments_url":"https://api.github.com/repos/aspnet/Mvc/pulls/1340/comments","review_comment_url":"https://api.github.com/repos/aspnet/Mvc/pulls/comments/{number}","comments_url":"https://api.github.com/repos/aspnet/Mvc/issues/1340/comments","statuses_url":"https://api.github.com/repos/aspnet/Mvc/statuses/99f8720057f585f9ec49c02c261892d402254560","head":{"label":"aspnet:TagHelpers_ValidationSummary","ref":"TagHelpers_ValidationSummary","sha":"99f8720057f585f9ec49c02c261892d402254560","user":{"login":"aspnet","id":6476660,"avatar_url":"https://avatars.githubusercontent.com/u/6476660?v=2","gravatar_id":"","url":"https://api.github.com/users/aspnet","html_url":"https://github.com/aspnet","followers_url":"https://api.github.com/users/aspnet/followers","following_url":"https://api.github.com/users/aspnet/following{/other_user}","gists_url":"https://api.github.com/users/aspnet/gists{/gist_id}","starred_url":"https://api.github.com/users/aspnet/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/aspnet/subscriptions","organizations_url":"https://api.github.com/users/aspnet/orgs","repos_url":"https://api.github.com/users/aspnet/repos","events_url":"https://api.github.com/users/aspnet/events{/privacy}","received_events_url":"https://api.github.com/users/aspnet/received_events","type":"Organization","site_admin":false},"repo":{"id":15126429,"name":"Mvc","full_name":"aspnet/Mvc","owner":{"login":"aspnet","id":6476660,"avatar_url":"https://avatars.githubusercontent.com/u/6476660?v=2","gravatar_id":"","url":"https://api.github.com/users/aspnet","html_url":"https://github.com/aspnet","followers_url":"https://api.github.com/users/aspnet/followers","following_url":"https://api.github.com/users/aspnet/following{/other_user}","gists_url":"https://api.github.com/users/aspnet/gists{/gist_id}","starred_url":"https://api.github.com/users/aspnet/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/aspnet/subscriptions","organizations_url":"https://api.github.com/users/aspnet/orgs","repos_url":"https://api.github.com/users/aspnet/repos","events_url":"https://api.github.com/users/aspnet/events{/privacy}","received_events_url":"https://api.github.com/users/aspnet/received_events","type":"Organization","site_admin":false},"private":false,"html_url":"https://github.com/aspnet/Mvc","description":"","fork":false,"url":"https://api.github.com/repos/aspnet/Mvc","forks_url":"https://api.github.com/repos/aspnet/Mvc/forks","keys_url":"https://api.github.com/repos/aspnet/Mvc/keys{/key_id}","collaborators_url":"https://api.github.com/repos/aspnet/Mvc/collaborators{/collaborator}","teams_url":"https://api.github.com/repos/aspnet/Mvc/teams","hooks_url":"https://api.github.com/repos/aspnet/Mvc/hooks","issue_events_url":"https://api.github.com/repos/aspnet/Mvc/issues/events{/number}","events_url":"https://api.github.com/repos/aspnet/Mvc/events","assignees_url":"https://api.github.com/repos/aspnet/Mvc/assignees{/user}","branches_url":"https://api.github.com/repos/aspnet/Mvc/branches{/branch}","tags_url":"https://api.github.com/repos/aspnet/Mvc/tags","blobs_url":"https://api.github.com/repos/aspnet/Mvc/git/blobs{/sha}","git_tags_url":"https://api.github.com/repos/aspnet/Mvc/git/tags{/sha}","git_refs_url":"https://api.github.com/repos/aspnet/Mvc/git/refs{/sha}","trees_url":"https://api.github.com/repos/aspnet/Mvc/git/trees{/sha}","statuses_url":"https://api.github.com/repos/aspnet/Mvc/statuses/{sha}","languages_url":"https://api.github.com/repos/aspnet/Mvc/languages","stargazers_url":"https://api.github.com/repos/aspnet/Mvc/stargazers","contributors_url":"https://api.github.com/repos/aspnet/Mvc/contributors","subscribers_url":"https://api.github.com/repos/aspnet/Mvc/subscribers","subscription_url":"https://api.github.com/repos/aspnet/Mvc/subscription","commits_url":"https://api.github.com/repos/aspnet/Mvc/commits{/sha}","git_commits_url":"https://api.github.com/repos/aspnet/Mvc/git/commits{/sha}","comments_url":"https://api.github.com/repos/aspnet/Mvc/comments{/number}","issue_comment_url":"https://api.github.com/repos/aspnet/Mvc/issues/comments/{number}","contents_url":"https://api.github.com/repos/aspnet/Mvc/contents/{+path}","compare_url":"https://api.github.com/repos/aspnet/Mvc/compare/{base}...{head}","merges_url":"https://api.github.com/repos/aspnet/Mvc/merges","archive_url":"https://api.github.com/repos/aspnet/Mvc/{archive_format}{/ref}","downloads_url":"https://api.github.com/repos/aspnet/Mvc/downloads","issues_url":"https://api.github.com/repos/aspnet/Mvc/issues{/number}","pulls_url":"https://api.github.com/repos/aspnet/Mvc/pulls{/number}","milestones_url":"https://api.github.com/repos/aspnet/Mvc/milestones{/number}","notifications_url":"https://api.github.com/repos/aspnet/Mvc/notifications{?since,all,participating}","labels_url":"https://api.github.com/repos/aspnet/Mvc/labels{/name}","releases_url":"https://api.github.com/repos/aspnet/Mvc/releases{/id}","created_at":"2013-12-12T03:54:00Z","updated_at":"2014-10-16T11:47:35Z","pushed_at":"2014-10-16T23:14:07Z","git_url":"git://github.com/aspnet/Mvc.git","ssh_url":"git@github.com:aspnet/Mvc.git","clone_url":"https://github.com/aspnet/Mvc.git","svn_url":"https://github.com/aspnet/Mvc","homepage":null,"size":49423,"stargazers_count":749,"watchers_count":749,"language":"C#","has_issues":true,"has_downloads":true,"has_wiki":true,"has_pages":false,"forks_count":189,"mirror_url":null,"open_issues_count":250,"forks":189,"open_issues":250,"watchers":749,"default_branch":"dev"}},"base":{"label":"aspnet:TagHelpers_ValidationMessage","ref":"TagHelpers_ValidationMessage","sha":"0d4d7c6e978fd5f5d01929cbcec9c65861c788b2","user":{"login":"aspnet","id":6476660,"avatar_url":"https://avatars.githubusercontent.com/u/6476660?v=2","gravatar_id":"","url":"https://api.github.com/users/aspnet","html_url":"https://github.com/aspnet","followers_url":"https://api.github.com/users/aspnet/followers","following_url":"https://api.github.com/users/aspnet/following{/other_user}","gists_url":"https://api.github.com/users/aspnet/gists{/gist_id}","starred_url":"https://api.github.com/users/aspnet/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/aspnet/subscriptions","organizations_url":"https://api.github.com/users/aspnet/orgs","repos_url":"https://api.github.com/users/aspnet/repos","events_url":"https://api.github.com/users/aspnet/events{/privacy}","received_events_url":"https://api.github.com/users/aspnet/received_events","type":"Organization","site_admin":false},"repo":{"id":15126429,"name":"Mvc","full_name":"aspnet/Mvc","owner":{"login":"aspnet","id":6476660,"avatar_url":"https://avatars.githubusercontent.com/u/6476660?v=2","gravatar_id":"","url":"https://api.github.com/users/aspnet","html_url":"https://github.com/aspnet","followers_url":"https://api.github.com/users/aspnet/followers","following_url":"https://api.github.com/users/aspnet/following{/other_user}","gists_url":"https://api.github.com/users/aspnet/gists{/gist_id}","starred_url":"https://api.github.com/users/aspnet/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/aspnet/subscriptions","organizations_url":"https://api.github.com/users/aspnet/orgs","repos_url":"https://api.github.com/users/aspnet/repos","events_url":"https://api.github.com/users/aspnet/events{/privacy}","received_events_url":"https://api.github.com/users/aspnet/received_events","type":"Organization","site_admin":false},"private":false,"html_url":"https://github.com/aspnet/Mvc","description":"","fork":false,"url":"https://api.github.com/repos/aspnet/Mvc","forks_url":"https://api.github.com/repos/aspnet/Mvc/forks","keys_url":"https://api.github.com/repos/aspnet/Mvc/keys{/key_id}","collaborators_url":"https://api.github.com/repos/aspnet/Mvc/collaborators{/collaborator}","teams_url":"https://api.github.com/repos/aspnet/Mvc/teams","hooks_url":"https://api.github.com/repos/aspnet/Mvc/hooks","issue_events_url":"https://api.github.com/repos/aspnet/Mvc/issues/events{/number}","events_url":"https://api.github.com/repos/aspnet/Mvc/events","assignees_url":"https://api.github.com/repos/aspnet/Mvc/assignees{/user}","branches_url":"https://api.github.com/repos/aspnet/Mvc/branches{/branch}","tags_url":"https://api.github.com/repos/aspnet/Mvc/tags","blobs_url":"https://api.github.com/repos/aspnet/Mvc/git/blobs{/sha}","git_tags_url":"https://api.github.com/repos/aspnet/Mvc/git/tags{/sha}","git_refs_url":"https://api.github.com/repos/aspnet/Mvc/git/refs{/sha}","trees_url":"https://api.github.com/repos/aspnet/Mvc/git/trees{/sha}","statuses_url":"https://api.github.com/repos/aspnet/Mvc/statuses/{sha}","languages_url":"https://api.github.com/repos/aspnet/Mvc/languages","stargazers_url":"https://api.github.com/repos/aspnet/Mvc/stargazers","contributors_url":"https://api.github.com/repos/aspnet/Mvc/contributors","subscribers_url":"https://api.github.com/repos/aspnet/Mvc/subscribers","subscription_url":"https://api.github.com/repos/aspnet/Mvc/subscription","commits_url":"https://api.github.com/repos/aspnet/Mvc/commits{/sha}","git_commits_url":"https://api.github.com/repos/aspnet/Mvc/git/commits{/sha}","comments_url":"https://api.github.com/repos/aspnet/Mvc/comments{/number}","issue_comment_url":"https://api.github.com/repos/aspnet/Mvc/issues/comments/{number}","contents_url":"https://api.github.com/repos/aspnet/Mvc/contents/{+path}","compare_url":"https://api.github.com/repos/aspnet/Mvc/compare/{base}...{head}","merges_url":"https://api.github.com/repos/aspnet/Mvc/merges","archive_url":"https://api.github.com/repos/aspnet/Mvc/{archive_format}{/ref}","downloads_url":"https://api.github.com/repos/aspnet/Mvc/downloads","issues_url":"https://api.github.com/repos/aspnet/Mvc/issues{/number}","pulls_url":"https://api.github.com/repos/aspnet/Mvc/pulls{/number}","milestones_url":"https://api.github.com/repos/aspnet/Mvc/milestones{/number}","notifications_url":"https://api.github.com/repos/aspnet/Mvc/notifications{?since,all,participating}","labels_url":"https://api.github.com/repos/aspnet/Mvc/labels{/name}","releases_url":"https://api.github.com/repos/aspnet/Mvc/releases{/id}","created_at":"2013-12-12T03:54:00Z","updated_at":"2014-10-16T11:47:35Z","pushed_at":"2014-10-16T23:14:07Z","git_url":"git://github.com/aspnet/Mvc.git","ssh_url":"git@github.com:aspnet/Mvc.git","clone_url":"https://github.com/aspnet/Mvc.git","svn_url":"https://github.com/aspnet/Mvc","homepage":null,"size":49423,"stargazers_count":749,"watchers_count":749,"language":"C#","has_issues":true,"has_downloads":true,"has_wiki":true,"has_pages":false,"forks_count":189,"mirror_url":null,"open_issues_count":250,"forks":189,"open_issues":250,"watchers":749,"default_branch":"dev"}},"_links":{"self":{"href":"https://api.github.com/repos/aspnet/Mvc/pulls/1340"},"html":{"href":"https://github.com/aspnet/Mvc/pull/1340"},"issue":{"href":"https://api.github.com/repos/aspnet/Mvc/issues/1340"},"comments":{"href":"https://api.github.com/repos/aspnet/Mvc/issues/1340/comments"},"review_comments":{"href":"https://api.github.com/repos/aspnet/Mvc/pulls/1340/comments"},"review_comment":{"href":"https://api.github.com/repos/aspnet/Mvc/pulls/comments/{number}"},"commits":{"href":"https://api.github.com/repos/aspnet/Mvc/pulls/1340/commits"},"statuses":{"href":"https://api.github.com/repos/aspnet/Mvc/statuses/99f8720057f585f9ec49c02c261892d402254560"}}}}