complete test method with stub class used for serialization

This commit is contained in:
Andy Cross
2014-01-20 16:31:30 +00:00
parent 828b77601c
commit 7cc66aad15
4 changed files with 18 additions and 8 deletions
+3 -5
View File
@@ -80,12 +80,10 @@ namespace Octokit
/// <returns></returns>
public Task Test(string owner, string repositoryName, int hookId)
{
throw new NotImplementedException();
Ensure.ArgumentNotNullOrEmptyString(owner, "owner");
Ensure.ArgumentNotNullOrEmptyString(repositoryName, "repositoryName");
//Ensure.ArgumentNotNullOrEmptyString(owner, "owner");
//Ensure.ArgumentNotNullOrEmptyString(repositoryName, "repositoryName");
//return ApiConnection.Post<object>(ApiUrls.RepositoryHookTest(owner, repositoryName, hookId), null);
return ApiConnection.Post<TestRepositoryHook>(ApiUrls.RepositoryHookTest(owner, repositoryName, hookId), new TestRepositoryHook());
}
/// <summary>