Changed 'dynamic' to Dictionary<string, string> for configuration of hooks.

This commit is contained in:
Kristian Hald
2015-04-21 00:27:10 +02:00
parent 261e47f2f5
commit 87c7eed2eb
6 changed files with 67 additions and 25 deletions
@@ -1,4 +1,5 @@
using System;
using System.Collections.Generic;
namespace Octokit.Tests.Integration.fixtures
{
@@ -36,9 +37,10 @@ namespace Octokit.Tests.Integration.fixtures
static RepositoryHook CreateHook(IGitHubClient github, Repository repository)
{
var parameters = new NewRepositoryHook("tenxer", new { content_type = "json", url = "http://test.com/example" })
var config = new Dictionary<string, string> { { "content_type", "json" }, { "url", "http://test.com/example" } };
var parameters = new NewRepositoryHook("apropos", config)
{
Events = new[] { "delete" },
Events = new[] { "commit_comment" },
Active = false
};
var createdHook = github.Repository.Hooks.Create(Helper.Credentials.Login, repository.Name, parameters);