{"action":"created","comment":{"url":"https://api.github.com/repos/plangrid/plangrid-api-net/pulls/comments/45144465","id":45144465,"diff_hunk":"@@ -0,0 +1,56 @@\n+﻿using System.Linq;\n+using System.Threading.Tasks;\n+using NUnit.Framework;\n+\n+namespace PlanGrid.Api.Tests\n+{\n+    [TestFixture]\n+    public class ProjectsTests\n+    {\n+        [Test]\n+        public async Task GetProjectsTotalCount()\n+        {\n+            IPlanGridApi client = PlanGridClient.Create();\n+            Page<Project> page = await client.GetProjects();\n+            Assert.AreEqual(3, page.TotalCount);\n+        }\n+\n+        [Test]\n+        public async Task GetProjectsLimit()\n+        {\n+            IPlanGridApi client = PlanGridClient.Create();\n+            Page<Project> page = await client.GetProjects(limit: 1);\n+            Assert.AreEqual(1, page.Data.Length);\n+        }\n+\n+        [Test]\n+        public async Task GetProjectsOffset()\n+        {\n+            IPlanGridApi client = PlanGridClient.Create();\n+            Page<Project> page = await client.GetProjects();\n+            string secondProjectUid = page.Data[1].Uid;\n+\n+            page = await client.GetProjects(1);\n+            Assert.AreEqual(secondProjectUid, page.Data.First().Uid);\n+        }\n+\n+        [Test]\n+        public async Task GetProject()\n+        {\n+            IPlanGridApi client = PlanGridClient.Create();\n+            Project project = await client.GetProject(TestData.Project1Uid);\n+            Assert.AreEqual(\"Project 1\", project.Name);\n+        }\n+\n+/*\n+        [Test]\n+        public async Task CreateProject()\n+        {\n+            IPlanGridApi client = PlanGridClient.Create();\n+            Project project = await client.CreateProject(new PutProject { Name = \"#Test Case Project\" });\n+            Assert.AreEqual(\"#Test Case Project\", project.Name);\n+            Assert.IsTrue(!string.IsNullOrEmpty(project.Uid));\n+        }\n+*/","path":"PlanGrid.Api.Tests/ProjectsTests.cs","position":54,"original_position":54,"commit_id":"3bb84dd34419e828d1776fbceae7a228822497df","original_commit_id":"3bb84dd34419e828d1776fbceae7a228822497df","user":{"login":"josephdwyer","id":5093317,"avatar_url":"https://avatars.githubusercontent.com/u/5093317?v=3","gravatar_id":"","url":"https://api.github.com/users/josephdwyer","html_url":"https://github.com/josephdwyer","followers_url":"https://api.github.com/users/josephdwyer/followers","following_url":"https://api.github.com/users/josephdwyer/following{/other_user}","gists_url":"https://api.github.com/users/josephdwyer/gists{/gist_id}","starred_url":"https://api.github.com/users/josephdwyer/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/josephdwyer/subscriptions","organizations_url":"https://api.github.com/users/josephdwyer/orgs","repos_url":"https://api.github.com/users/josephdwyer/repos","events_url":"https://api.github.com/users/josephdwyer/events{/privacy}","received_events_url":"https://api.github.com/users/josephdwyer/received_events","type":"User","site_admin":false},"body":"commented out test ?","created_at":"2015-11-18T00:35:49Z","updated_at":"2015-11-18T00:35:49Z","html_url":"https://github.com/plangrid/plangrid-api-net/pull/1#discussion_r45144465","pull_request_url":"https://api.github.com/repos/plangrid/plangrid-api-net/pulls/1","_links":{"self":{"href":"https://api.github.com/repos/plangrid/plangrid-api-net/pulls/comments/45144465"},"html":{"href":"https://github.com/plangrid/plangrid-api-net/pull/1#discussion_r45144465"},"pull_request":{"href":"https://api.github.com/repos/plangrid/plangrid-api-net/pulls/1"}}},"pull_request":{"url":"https://api.github.com/repos/plangrid/plangrid-api-net/pulls/1","id":51024892,"html_url":"https://github.com/plangrid/plangrid-api-net/pull/1","diff_url":"https://github.com/plangrid/plangrid-api-net/pull/1.diff","patch_url":"https://github.com/plangrid/plangrid-api-net/pull/1.patch","issue_url":"https://api.github.com/repos/plangrid/plangrid-api-net/issues/1","number":1,"state":"open","locked":false,"title":"API-425, API-416, API-426: Initial version","user":{"login":"kirkplangrid","id":12398885,"avatar_url":"https://avatars.githubusercontent.com/u/12398885?v=3","gravatar_id":"","url":"https://api.github.com/users/kirkplangrid","html_url":"https://github.com/kirkplangrid","followers_url":"https://api.github.com/users/kirkplangrid/followers","following_url":"https://api.github.com/users/kirkplangrid/following{/other_user}","gists_url":"https://api.github.com/users/kirkplangrid/gists{/gist_id}","starred_url":"https://api.github.com/users/kirkplangrid/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/kirkplangrid/subscriptions","organizations_url":"https://api.github.com/users/kirkplangrid/orgs","repos_url":"https://api.github.com/users/kirkplangrid/repos","events_url":"https://api.github.com/users/kirkplangrid/events{/privacy}","received_events_url":"https://api.github.com/users/kirkplangrid/received_events","type":"User","site_admin":false},"body":"* This version only supports .Net45.  We'll create a new ticket to add other individual platforms.","created_at":"2015-11-18T00:12:14Z","updated_at":"2015-11-18T00:35:49Z","closed_at":null,"merged_at":null,"merge_commit_sha":"ea04cb218e7ccbbf393d78741482bfdfe8d127a9","assignee":{"login":"josephdwyer","id":5093317,"avatar_url":"https://avatars.githubusercontent.com/u/5093317?v=3","gravatar_id":"","url":"https://api.github.com/users/josephdwyer","html_url":"https://github.com/josephdwyer","followers_url":"https://api.github.com/users/josephdwyer/followers","following_url":"https://api.github.com/users/josephdwyer/following{/other_user}","gists_url":"https://api.github.com/users/josephdwyer/gists{/gist_id}","starred_url":"https://api.github.com/users/josephdwyer/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/josephdwyer/subscriptions","organizations_url":"https://api.github.com/users/josephdwyer/orgs","repos_url":"https://api.github.com/users/josephdwyer/repos","events_url":"https://api.github.com/users/josephdwyer/events{/privacy}","received_events_url":"https://api.github.com/users/josephdwyer/received_events","type":"User","site_admin":false},"milestone":null,"commits_url":"https://api.github.com/repos/plangrid/plangrid-api-net/pulls/1/commits","review_comments_url":"https://api.github.com/repos/plangrid/plangrid-api-net/pulls/1/comments","review_comment_url":"https://api.github.com/repos/plangrid/plangrid-api-net/pulls/comments{/number}","comments_url":"https://api.github.com/repos/plangrid/plangrid-api-net/issues/1/comments","statuses_url":"https://api.github.com/repos/plangrid/plangrid-api-net/statuses/3bb84dd34419e828d1776fbceae7a228822497df","head":{"label":"plangrid:kirk/api-425-initial-version","ref":"kirk/api-425-initial-version","sha":"3bb84dd34419e828d1776fbceae7a228822497df","user":{"login":"plangrid","id":1200277,"avatar_url":"https://avatars.githubusercontent.com/u/1200277?v=3","gravatar_id":"","url":"https://api.github.com/users/plangrid","html_url":"https://github.com/plangrid","followers_url":"https://api.github.com/users/plangrid/followers","following_url":"https://api.github.com/users/plangrid/following{/other_user}","gists_url":"https://api.github.com/users/plangrid/gists{/gist_id}","starred_url":"https://api.github.com/users/plangrid/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/plangrid/subscriptions","organizations_url":"https://api.github.com/users/plangrid/orgs","repos_url":"https://api.github.com/users/plangrid/repos","events_url":"https://api.github.com/users/plangrid/events{/privacy}","received_events_url":"https://api.github.com/users/plangrid/received_events","type":"Organization","site_admin":false},"repo":{"id":46283022,"name":"plangrid-api-net","full_name":"plangrid/plangrid-api-net","owner":{"login":"plangrid","id":1200277,"avatar_url":"https://avatars.githubusercontent.com/u/1200277?v=3","gravatar_id":"","url":"https://api.github.com/users/plangrid","html_url":"https://github.com/plangrid","followers_url":"https://api.github.com/users/plangrid/followers","following_url":"https://api.github.com/users/plangrid/following{/other_user}","gists_url":"https://api.github.com/users/plangrid/gists{/gist_id}","starred_url":"https://api.github.com/users/plangrid/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/plangrid/subscriptions","organizations_url":"https://api.github.com/users/plangrid/orgs","repos_url":"https://api.github.com/users/plangrid/repos","events_url":"https://api.github.com/users/plangrid/events{/privacy}","received_events_url":"https://api.github.com/users/plangrid/received_events","type":"Organization","site_admin":false},"private":false,"html_url":"https://github.com/plangrid/plangrid-api-net","description":"PlanGrid .NET SDK to connect to the public PlanGrid API","fork":false,"url":"https://api.github.com/repos/plangrid/plangrid-api-net","forks_url":"https://api.github.com/repos/plangrid/plangrid-api-net/forks","keys_url":"https://api.github.com/repos/plangrid/plangrid-api-net/keys{/key_id}","collaborators_url":"https://api.github.com/repos/plangrid/plangrid-api-net/collaborators{/collaborator}","teams_url":"https://api.github.com/repos/plangrid/plangrid-api-net/teams","hooks_url":"https://api.github.com/repos/plangrid/plangrid-api-net/hooks","issue_events_url":"https://api.github.com/repos/plangrid/plangrid-api-net/issues/events{/number}","events_url":"https://api.github.com/repos/plangrid/plangrid-api-net/events","assignees_url":"https://api.github.com/repos/plangrid/plangrid-api-net/assignees{/user}","branches_url":"https://api.github.com/repos/plangrid/plangrid-api-net/branches{/branch}","tags_url":"https://api.github.com/repos/plangrid/plangrid-api-net/tags","blobs_url":"https://api.github.com/repos/plangrid/plangrid-api-net/git/blobs{/sha}","git_tags_url":"https://api.github.com/repos/plangrid/plangrid-api-net/git/tags{/sha}","git_refs_url":"https://api.github.com/repos/plangrid/plangrid-api-net/git/refs{/sha}","trees_url":"https://api.github.com/repos/plangrid/plangrid-api-net/git/trees{/sha}","statuses_url":"https://api.github.com/repos/plangrid/plangrid-api-net/statuses/{sha}","languages_url":"https://api.github.com/repos/plangrid/plangrid-api-net/languages","stargazers_url":"https://api.github.com/repos/plangrid/plangrid-api-net/stargazers","contributors_url":"https://api.github.com/repos/plangrid/plangrid-api-net/contributors","subscribers_url":"https://api.github.com/repos/plangrid/plangrid-api-net/subscribers","subscription_url":"https://api.github.com/repos/plangrid/plangrid-api-net/subscription","commits_url":"https://api.github.com/repos/plangrid/plangrid-api-net/commits{/sha}","git_commits_url":"https://api.github.com/repos/plangrid/plangrid-api-net/git/commits{/sha}","comments_url":"https://api.github.com/repos/plangrid/plangrid-api-net/comments{/number}","issue_comment_url":"https://api.github.com/repos/plangrid/plangrid-api-net/issues/comments{/number}","contents_url":"https://api.github.com/repos/plangrid/plangrid-api-net/contents/{+path}","compare_url":"https://api.github.com/repos/plangrid/plangrid-api-net/compare/{base}...{head}","merges_url":"https://api.github.com/repos/plangrid/plangrid-api-net/merges","archive_url":"https://api.github.com/repos/plangrid/plangrid-api-net/{archive_format}{/ref}","downloads_url":"https://api.github.com/repos/plangrid/plangrid-api-net/downloads","issues_url":"https://api.github.com/repos/plangrid/plangrid-api-net/issues{/number}","pulls_url":"https://api.github.com/repos/plangrid/plangrid-api-net/pulls{/number}","milestones_url":"https://api.github.com/repos/plangrid/plangrid-api-net/milestones{/number}","notifications_url":"https://api.github.com/repos/plangrid/plangrid-api-net/notifications{?since,all,participating}","labels_url":"https://api.github.com/repos/plangrid/plangrid-api-net/labels{/name}","releases_url":"https://api.github.com/repos/plangrid/plangrid-api-net/releases{/id}","created_at":"2015-11-16T15:22:20Z","updated_at":"2015-11-16T15:22:20Z","pushed_at":"2015-11-18T00:33:33Z","git_url":"git://github.com/plangrid/plangrid-api-net.git","ssh_url":"git@github.com:plangrid/plangrid-api-net.git","clone_url":"https://github.com/plangrid/plangrid-api-net.git","svn_url":"https://github.com/plangrid/plangrid-api-net","homepage":null,"size":481,"stargazers_count":0,"watchers_count":0,"language":null,"has_issues":true,"has_downloads":true,"has_wiki":true,"has_pages":false,"forks_count":0,"mirror_url":null,"open_issues_count":1,"forks":0,"open_issues":1,"watchers":0,"default_branch":"master"}},"base":{"label":"plangrid:master","ref":"master","sha":"761e539b10999826cb2cc544bb2dade55759bce3","user":{"login":"plangrid","id":1200277,"avatar_url":"https://avatars.githubusercontent.com/u/1200277?v=3","gravatar_id":"","url":"https://api.github.com/users/plangrid","html_url":"https://github.com/plangrid","followers_url":"https://api.github.com/users/plangrid/followers","following_url":"https://api.github.com/users/plangrid/following{/other_user}","gists_url":"https://api.github.com/users/plangrid/gists{/gist_id}","starred_url":"https://api.github.com/users/plangrid/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/plangrid/subscriptions","organizations_url":"https://api.github.com/users/plangrid/orgs","repos_url":"https://api.github.com/users/plangrid/repos","events_url":"https://api.github.com/users/plangrid/events{/privacy}","received_events_url":"https://api.github.com/users/plangrid/received_events","type":"Organization","site_admin":false},"repo":{"id":46283022,"name":"plangrid-api-net","full_name":"plangrid/plangrid-api-net","owner":{"login":"plangrid","id":1200277,"avatar_url":"https://avatars.githubusercontent.com/u/1200277?v=3","gravatar_id":"","url":"https://api.github.com/users/plangrid","html_url":"https://github.com/plangrid","followers_url":"https://api.github.com/users/plangrid/followers","following_url":"https://api.github.com/users/plangrid/following{/other_user}","gists_url":"https://api.github.com/users/plangrid/gists{/gist_id}","starred_url":"https://api.github.com/users/plangrid/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/plangrid/subscriptions","organizations_url":"https://api.github.com/users/plangrid/orgs","repos_url":"https://api.github.com/users/plangrid/repos","events_url":"https://api.github.com/users/plangrid/events{/privacy}","received_events_url":"https://api.github.com/users/plangrid/received_events","type":"Organization","site_admin":false},"private":false,"html_url":"https://github.com/plangrid/plangrid-api-net","description":"PlanGrid .NET SDK to connect to the public PlanGrid API","fork":false,"url":"https://api.github.com/repos/plangrid/plangrid-api-net","forks_url":"https://api.github.com/repos/plangrid/plangrid-api-net/forks","keys_url":"https://api.github.com/repos/plangrid/plangrid-api-net/keys{/key_id}","collaborators_url":"https://api.github.com/repos/plangrid/plangrid-api-net/collaborators{/collaborator}","teams_url":"https://api.github.com/repos/plangrid/plangrid-api-net/teams","hooks_url":"https://api.github.com/repos/plangrid/plangrid-api-net/hooks","issue_events_url":"https://api.github.com/repos/plangrid/plangrid-api-net/issues/events{/number}","events_url":"https://api.github.com/repos/plangrid/plangrid-api-net/events","assignees_url":"https://api.github.com/repos/plangrid/plangrid-api-net/assignees{/user}","branches_url":"https://api.github.com/repos/plangrid/plangrid-api-net/branches{/branch}","tags_url":"https://api.github.com/repos/plangrid/plangrid-api-net/tags","blobs_url":"https://api.github.com/repos/plangrid/plangrid-api-net/git/blobs{/sha}","git_tags_url":"https://api.github.com/repos/plangrid/plangrid-api-net/git/tags{/sha}","git_refs_url":"https://api.github.com/repos/plangrid/plangrid-api-net/git/refs{/sha}","trees_url":"https://api.github.com/repos/plangrid/plangrid-api-net/git/trees{/sha}","statuses_url":"https://api.github.com/repos/plangrid/plangrid-api-net/statuses/{sha}","languages_url":"https://api.github.com/repos/plangrid/plangrid-api-net/languages","stargazers_url":"https://api.github.com/repos/plangrid/plangrid-api-net/stargazers","contributors_url":"https://api.github.com/repos/plangrid/plangrid-api-net/contributors","subscribers_url":"https://api.github.com/repos/plangrid/plangrid-api-net/subscribers","subscription_url":"https://api.github.com/repos/plangrid/plangrid-api-net/subscription","commits_url":"https://api.github.com/repos/plangrid/plangrid-api-net/commits{/sha}","git_commits_url":"https://api.github.com/repos/plangrid/plangrid-api-net/git/commits{/sha}","comments_url":"https://api.github.com/repos/plangrid/plangrid-api-net/comments{/number}","issue_comment_url":"https://api.github.com/repos/plangrid/plangrid-api-net/issues/comments{/number}","contents_url":"https://api.github.com/repos/plangrid/plangrid-api-net/contents/{+path}","compare_url":"https://api.github.com/repos/plangrid/plangrid-api-net/compare/{base}...{head}","merges_url":"https://api.github.com/repos/plangrid/plangrid-api-net/merges","archive_url":"https://api.github.com/repos/plangrid/plangrid-api-net/{archive_format}{/ref}","downloads_url":"https://api.github.com/repos/plangrid/plangrid-api-net/downloads","issues_url":"https://api.github.com/repos/plangrid/plangrid-api-net/issues{/number}","pulls_url":"https://api.github.com/repos/plangrid/plangrid-api-net/pulls{/number}","milestones_url":"https://api.github.com/repos/plangrid/plangrid-api-net/milestones{/number}","notifications_url":"https://api.github.com/repos/plangrid/plangrid-api-net/notifications{?since,all,participating}","labels_url":"https://api.github.com/repos/plangrid/plangrid-api-net/labels{/name}","releases_url":"https://api.github.com/repos/plangrid/plangrid-api-net/releases{/id}","created_at":"2015-11-16T15:22:20Z","updated_at":"2015-11-16T15:22:20Z","pushed_at":"2015-11-18T00:33:33Z","git_url":"git://github.com/plangrid/plangrid-api-net.git","ssh_url":"git@github.com:plangrid/plangrid-api-net.git","clone_url":"https://github.com/plangrid/plangrid-api-net.git","svn_url":"https://github.com/plangrid/plangrid-api-net","homepage":null,"size":481,"stargazers_count":0,"watchers_count":0,"language":null,"has_issues":true,"has_downloads":true,"has_wiki":true,"has_pages":false,"forks_count":0,"mirror_url":null,"open_issues_count":1,"forks":0,"open_issues":1,"watchers":0,"default_branch":"master"}},"_links":{"self":{"href":"https://api.github.com/repos/plangrid/plangrid-api-net/pulls/1"},"html":{"href":"https://github.com/plangrid/plangrid-api-net/pull/1"},"issue":{"href":"https://api.github.com/repos/plangrid/plangrid-api-net/issues/1"},"comments":{"href":"https://api.github.com/repos/plangrid/plangrid-api-net/issues/1/comments"},"review_comments":{"href":"https://api.github.com/repos/plangrid/plangrid-api-net/pulls/1/comments"},"review_comment":{"href":"https://api.github.com/repos/plangrid/plangrid-api-net/pulls/comments{/number}"},"commits":{"href":"https://api.github.com/repos/plangrid/plangrid-api-net/pulls/1/commits"},"statuses":{"href":"https://api.github.com/repos/plangrid/plangrid-api-net/statuses/3bb84dd34419e828d1776fbceae7a228822497df"}}}}