{"action":"created","comment":{"url":"https://api.github.com/repos/cake-build/cake/pulls/comments/27456278","id":27456278,"diff_hunk":"@@ -0,0 +1,59 @@\n+﻿using Cake.Common.Tools.NuGet.Update;\n+using Cake.Core;\n+using Cake.Core.IO;\n+using Cake.Testing.Fakes;\n+using NSubstitute;\n+\n+namespace Cake.Common.Tests.Fixtures\n+{\n+    internal sealed class NuGetUpdateFixture\n+    {\n+        public FakeFileSystem FileSystem { get; set; }\n+        public ICakeEnvironment Environment { get; set; }\n+        public IProcessRunner ProcessRunner { get; set; }\n+        public IProcess Process { get; set; }\n+        public IToolResolver NuGetToolResolver { get; set; }\n+\n+        public FilePath TargetFile { get; set; }\n+        public NuGetUpdateSettings Settings { get; set; }\n+\n+        public NuGetUpdateFixture(FilePath toolPath = null, bool defaultToolExist = true)\n+        {\n+            TargetFile = \"./packages.config\";\n+            Settings = new NuGetUpdateSettings();\n+\n+            Environment = Substitute.For<ICakeEnvironment>();\n+            Environment.WorkingDirectory.Returns(\"/Working\");\n+\n+            Process = Substitute.For<IProcess>();\n+            Process.GetExitCode().Returns(0);\n+            ProcessRunner = Substitute.For<IProcessRunner>();\n+            ProcessRunner.Start(Arg.Any<FilePath>(), Arg.Any<ProcessSettings>()).Returns(Process);\n+\n+            NuGetToolResolver = Substitute.For<IToolResolver>();\n+            NuGetToolResolver.Name.Returns(\"NuGet\");\n+            NuGetToolResolver.ResolveToolPath().Returns(defaultToolExist ","path":"src/Cake.Common.Tests/Fixtures/NuGetUpdateFixture.cs","position":35,"original_position":35,"commit_id":"b69d7b2a2aab9e69d8ed2a81d30193827ee9c351","original_commit_id":"b69d7b2a2aab9e69d8ed2a81d30193827ee9c351","user":{"login":"devlead","id":1647294,"avatar_url":"https://avatars.githubusercontent.com/u/1647294?v=3","gravatar_id":"","url":"https://api.github.com/users/devlead","html_url":"https://github.com/devlead","followers_url":"https://api.github.com/users/devlead/followers","following_url":"https://api.github.com/users/devlead/following{/other_user}","gists_url":"https://api.github.com/users/devlead/gists{/gist_id}","starred_url":"https://api.github.com/users/devlead/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/devlead/subscriptions","organizations_url":"https://api.github.com/users/devlead/orgs","repos_url":"https://api.github.com/users/devlead/repos","events_url":"https://api.github.com/users/devlead/events{/privacy}","received_events_url":"https://api.github.com/users/devlead/received_events","type":"User","site_admin":false},"body":"Trailing space I'll fix in merge.","created_at":"2015-03-31T06:54:20Z","updated_at":"2015-03-31T06:54:20Z","html_url":"https://github.com/cake-build/cake/pull/222#discussion_r27456278","pull_request_url":"https://api.github.com/repos/cake-build/cake/pulls/222","_links":{"self":{"href":"https://api.github.com/repos/cake-build/cake/pulls/comments/27456278"},"html":{"href":"https://github.com/cake-build/cake/pull/222#discussion_r27456278"},"pull_request":{"href":"https://api.github.com/repos/cake-build/cake/pulls/222"}}},"pull_request":{"url":"https://api.github.com/repos/cake-build/cake/pulls/222","id":32071123,"html_url":"https://github.com/cake-build/cake/pull/222","diff_url":"https://github.com/cake-build/cake/pull/222.diff","patch_url":"https://github.com/cake-build/cake/pull/222.patch","issue_url":"https://api.github.com/repos/cake-build/cake/issues/222","number":222,"state":"open","locked":false,"title":"Added support for NuGet update command.","user":{"login":"patriksvensson","id":357872,"avatar_url":"https://avatars.githubusercontent.com/u/357872?v=3","gravatar_id":"","url":"https://api.github.com/users/patriksvensson","html_url":"https://github.com/patriksvensson","followers_url":"https://api.github.com/users/patriksvensson/followers","following_url":"https://api.github.com/users/patriksvensson/following{/other_user}","gists_url":"https://api.github.com/users/patriksvensson/gists{/gist_id}","starred_url":"https://api.github.com/users/patriksvensson/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/patriksvensson/subscriptions","organizations_url":"https://api.github.com/users/patriksvensson/orgs","repos_url":"https://api.github.com/users/patriksvensson/repos","events_url":"https://api.github.com/users/patriksvensson/events{/privacy}","received_events_url":"https://api.github.com/users/patriksvensson/received_events","type":"User","site_admin":false},"body":"Should resolve #219 when (if) merged.","created_at":"2015-03-26T23:20:56Z","updated_at":"2015-03-31T06:54:20Z","closed_at":null,"merged_at":null,"merge_commit_sha":"242118680f8c6d35c2346e3cb9c79fb602263bca","assignee":null,"milestone":null,"commits_url":"https://api.github.com/repos/cake-build/cake/pulls/222/commits","review_comments_url":"https://api.github.com/repos/cake-build/cake/pulls/222/comments","review_comment_url":"https://api.github.com/repos/cake-build/cake/pulls/comments{/number}","comments_url":"https://api.github.com/repos/cake-build/cake/issues/222/comments","statuses_url":"https://api.github.com/repos/cake-build/cake/statuses/b69d7b2a2aab9e69d8ed2a81d30193827ee9c351","head":{"label":"patriksvensson:f/nugetupdate","ref":"f/nugetupdate","sha":"b69d7b2a2aab9e69d8ed2a81d30193827ee9c351","user":{"login":"patriksvensson","id":357872,"avatar_url":"https://avatars.githubusercontent.com/u/357872?v=3","gravatar_id":"","url":"https://api.github.com/users/patriksvensson","html_url":"https://github.com/patriksvensson","followers_url":"https://api.github.com/users/patriksvensson/followers","following_url":"https://api.github.com/users/patriksvensson/following{/other_user}","gists_url":"https://api.github.com/users/patriksvensson/gists{/gist_id}","starred_url":"https://api.github.com/users/patriksvensson/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/patriksvensson/subscriptions","organizations_url":"https://api.github.com/users/patriksvensson/orgs","repos_url":"https://api.github.com/users/patriksvensson/repos","events_url":"https://api.github.com/users/patriksvensson/events{/privacy}","received_events_url":"https://api.github.com/users/patriksvensson/received_events","type":"User","site_admin":false},"repo":{"id":28205374,"name":"cake","full_name":"patriksvensson/cake","owner":{"login":"patriksvensson","id":357872,"avatar_url":"https://avatars.githubusercontent.com/u/357872?v=3","gravatar_id":"","url":"https://api.github.com/users/patriksvensson","html_url":"https://github.com/patriksvensson","followers_url":"https://api.github.com/users/patriksvensson/followers","following_url":"https://api.github.com/users/patriksvensson/following{/other_user}","gists_url":"https://api.github.com/users/patriksvensson/gists{/gist_id}","starred_url":"https://api.github.com/users/patriksvensson/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/patriksvensson/subscriptions","organizations_url":"https://api.github.com/users/patriksvensson/orgs","repos_url":"https://api.github.com/users/patriksvensson/repos","events_url":"https://api.github.com/users/patriksvensson/events{/privacy}","received_events_url":"https://api.github.com/users/patriksvensson/received_events","type":"User","site_admin":false},"private":false,"html_url":"https://github.com/patriksvensson/cake","description":"Cake (C# Make) is a build automation system.","fork":true,"url":"https://api.github.com/repos/patriksvensson/cake","forks_url":"https://api.github.com/repos/patriksvensson/cake/forks","keys_url":"https://api.github.com/repos/patriksvensson/cake/keys{/key_id}","collaborators_url":"https://api.github.com/repos/patriksvensson/cake/collaborators{/collaborator}","teams_url":"https://api.github.com/repos/patriksvensson/cake/teams","hooks_url":"https://api.github.com/repos/patriksvensson/cake/hooks","issue_events_url":"https://api.github.com/repos/patriksvensson/cake/issues/events{/number}","events_url":"https://api.github.com/repos/patriksvensson/cake/events","assignees_url":"https://api.github.com/repos/patriksvensson/cake/assignees{/user}","branches_url":"https://api.github.com/repos/patriksvensson/cake/branches{/branch}","tags_url":"https://api.github.com/repos/patriksvensson/cake/tags","blobs_url":"https://api.github.com/repos/patriksvensson/cake/git/blobs{/sha}","git_tags_url":"https://api.github.com/repos/patriksvensson/cake/git/tags{/sha}","git_refs_url":"https://api.github.com/repos/patriksvensson/cake/git/refs{/sha}","trees_url":"https://api.github.com/repos/patriksvensson/cake/git/trees{/sha}","statuses_url":"https://api.github.com/repos/patriksvensson/cake/statuses/{sha}","languages_url":"https://api.github.com/repos/patriksvensson/cake/languages","stargazers_url":"https://api.github.com/repos/patriksvensson/cake/stargazers","contributors_url":"https://api.github.com/repos/patriksvensson/cake/contributors","subscribers_url":"https://api.github.com/repos/patriksvensson/cake/subscribers","subscription_url":"https://api.github.com/repos/patriksvensson/cake/subscription","commits_url":"https://api.github.com/repos/patriksvensson/cake/commits{/sha}","git_commits_url":"https://api.github.com/repos/patriksvensson/cake/git/commits{/sha}","comments_url":"https://api.github.com/repos/patriksvensson/cake/comments{/number}","issue_comment_url":"https://api.github.com/repos/patriksvensson/cake/issues/comments{/number}","contents_url":"https://api.github.com/repos/patriksvensson/cake/contents/{+path}","compare_url":"https://api.github.com/repos/patriksvensson/cake/compare/{base}...{head}","merges_url":"https://api.github.com/repos/patriksvensson/cake/merges","archive_url":"https://api.github.com/repos/patriksvensson/cake/{archive_format}{/ref}","downloads_url":"https://api.github.com/repos/patriksvensson/cake/downloads","issues_url":"https://api.github.com/repos/patriksvensson/cake/issues{/number}","pulls_url":"https://api.github.com/repos/patriksvensson/cake/pulls{/number}","milestones_url":"https://api.github.com/repos/patriksvensson/cake/milestones{/number}","notifications_url":"https://api.github.com/repos/patriksvensson/cake/notifications{?since,all,participating}","labels_url":"https://api.github.com/repos/patriksvensson/cake/labels{/name}","releases_url":"https://api.github.com/repos/patriksvensson/cake/releases{/id}","created_at":"2014-12-18T23:01:35Z","updated_at":"2015-03-25T10:48:13Z","pushed_at":"2015-03-30T22:13:48Z","git_url":"git://github.com/patriksvensson/cake.git","ssh_url":"git@github.com:patriksvensson/cake.git","clone_url":"https://github.com/patriksvensson/cake.git","svn_url":"https://github.com/patriksvensson/cake","homepage":"http://cake.readthedocs.org/","size":2823,"stargazers_count":2,"watchers_count":2,"language":"C#","has_issues":false,"has_downloads":true,"has_wiki":true,"has_pages":false,"forks_count":0,"mirror_url":null,"open_issues_count":0,"forks":0,"open_issues":0,"watchers":2,"default_branch":"develop"}},"base":{"label":"cake-build:develop","ref":"develop","sha":"fc4710e7523ea391565605251696f2a15be81224","user":{"login":"cake-build","id":7738262,"avatar_url":"https://avatars.githubusercontent.com/u/7738262?v=3","gravatar_id":"","url":"https://api.github.com/users/cake-build","html_url":"https://github.com/cake-build","followers_url":"https://api.github.com/users/cake-build/followers","following_url":"https://api.github.com/users/cake-build/following{/other_user}","gists_url":"https://api.github.com/users/cake-build/gists{/gist_id}","starred_url":"https://api.github.com/users/cake-build/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/cake-build/subscriptions","organizations_url":"https://api.github.com/users/cake-build/orgs","repos_url":"https://api.github.com/users/cake-build/repos","events_url":"https://api.github.com/users/cake-build/events{/privacy}","received_events_url":"https://api.github.com/users/cake-build/received_events","type":"Organization","site_admin":false},"repo":{"id":20094029,"name":"cake","full_name":"cake-build/cake","owner":{"login":"cake-build","id":7738262,"avatar_url":"https://avatars.githubusercontent.com/u/7738262?v=3","gravatar_id":"","url":"https://api.github.com/users/cake-build","html_url":"https://github.com/cake-build","followers_url":"https://api.github.com/users/cake-build/followers","following_url":"https://api.github.com/users/cake-build/following{/other_user}","gists_url":"https://api.github.com/users/cake-build/gists{/gist_id}","starred_url":"https://api.github.com/users/cake-build/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/cake-build/subscriptions","organizations_url":"https://api.github.com/users/cake-build/orgs","repos_url":"https://api.github.com/users/cake-build/repos","events_url":"https://api.github.com/users/cake-build/events{/privacy}","received_events_url":"https://api.github.com/users/cake-build/received_events","type":"Organization","site_admin":false},"private":false,"html_url":"https://github.com/cake-build/cake","description":"Cake (C# Make) is a build automation system.","fork":false,"url":"https://api.github.com/repos/cake-build/cake","forks_url":"https://api.github.com/repos/cake-build/cake/forks","keys_url":"https://api.github.com/repos/cake-build/cake/keys{/key_id}","collaborators_url":"https://api.github.com/repos/cake-build/cake/collaborators{/collaborator}","teams_url":"https://api.github.com/repos/cake-build/cake/teams","hooks_url":"https://api.github.com/repos/cake-build/cake/hooks","issue_events_url":"https://api.github.com/repos/cake-build/cake/issues/events{/number}","events_url":"https://api.github.com/repos/cake-build/cake/events","assignees_url":"https://api.github.com/repos/cake-build/cake/assignees{/user}","branches_url":"https://api.github.com/repos/cake-build/cake/branches{/branch}","tags_url":"https://api.github.com/repos/cake-build/cake/tags","blobs_url":"https://api.github.com/repos/cake-build/cake/git/blobs{/sha}","git_tags_url":"https://api.github.com/repos/cake-build/cake/git/tags{/sha}","git_refs_url":"https://api.github.com/repos/cake-build/cake/git/refs{/sha}","trees_url":"https://api.github.com/repos/cake-build/cake/git/trees{/sha}","statuses_url":"https://api.github.com/repos/cake-build/cake/statuses/{sha}","languages_url":"https://api.github.com/repos/cake-build/cake/languages","stargazers_url":"https://api.github.com/repos/cake-build/cake/stargazers","contributors_url":"https://api.github.com/repos/cake-build/cake/contributors","subscribers_url":"https://api.github.com/repos/cake-build/cake/subscribers","subscription_url":"https://api.github.com/repos/cake-build/cake/subscription","commits_url":"https://api.github.com/repos/cake-build/cake/commits{/sha}","git_commits_url":"https://api.github.com/repos/cake-build/cake/git/commits{/sha}","comments_url":"https://api.github.com/repos/cake-build/cake/comments{/number}","issue_comment_url":"https://api.github.com/repos/cake-build/cake/issues/comments{/number}","contents_url":"https://api.github.com/repos/cake-build/cake/contents/{+path}","compare_url":"https://api.github.com/repos/cake-build/cake/compare/{base}...{head}","merges_url":"https://api.github.com/repos/cake-build/cake/merges","archive_url":"https://api.github.com/repos/cake-build/cake/{archive_format}{/ref}","downloads_url":"https://api.github.com/repos/cake-build/cake/downloads","issues_url":"https://api.github.com/repos/cake-build/cake/issues{/number}","pulls_url":"https://api.github.com/repos/cake-build/cake/pulls{/number}","milestones_url":"https://api.github.com/repos/cake-build/cake/milestones{/number}","notifications_url":"https://api.github.com/repos/cake-build/cake/notifications{?since,all,participating}","labels_url":"https://api.github.com/repos/cake-build/cake/labels{/name}","releases_url":"https://api.github.com/repos/cake-build/cake/releases{/id}","created_at":"2014-05-23T09:26:54Z","updated_at":"2015-03-29T16:04:00Z","pushed_at":"2015-03-30T22:13:48Z","git_url":"git://github.com/cake-build/cake.git","ssh_url":"git@github.com:cake-build/cake.git","clone_url":"https://github.com/cake-build/cake.git","svn_url":"https://github.com/cake-build/cake","homepage":"http://cakebuild.net/","size":5514,"stargazers_count":138,"watchers_count":138,"language":"C#","has_issues":true,"has_downloads":true,"has_wiki":true,"has_pages":false,"forks_count":19,"mirror_url":null,"open_issues_count":31,"forks":19,"open_issues":31,"watchers":138,"default_branch":"develop"}},"_links":{"self":{"href":"https://api.github.com/repos/cake-build/cake/pulls/222"},"html":{"href":"https://github.com/cake-build/cake/pull/222"},"issue":{"href":"https://api.github.com/repos/cake-build/cake/issues/222"},"comments":{"href":"https://api.github.com/repos/cake-build/cake/issues/222/comments"},"review_comments":{"href":"https://api.github.com/repos/cake-build/cake/pulls/222/comments"},"review_comment":{"href":"https://api.github.com/repos/cake-build/cake/pulls/comments{/number}"},"commits":{"href":"https://api.github.com/repos/cake-build/cake/pulls/222/commits"},"statuses":{"href":"https://api.github.com/repos/cake-build/cake/statuses/b69d7b2a2aab9e69d8ed2a81d30193827ee9c351"}}}}