Since we'have removed the default constructor of RepositoryUpdate, this CanSerialize Fact needs to be updated

This commit is contained in:
eriawan
2017-03-21 01:03:01 +07:00
parent 32aa4e7443
commit f020170b88
+7 -10
View File
@@ -21,16 +21,13 @@ namespace Octokit.Tests.Models
"\"has_wiki\":true," +
"\"has_downloads\":true}";
var update = new RepositoryUpdate
{
Name = "Hello-World",
Description = "This is your first repository",
Homepage = "https://github.com",
Private = true,
HasIssues = true,
HasWiki = true,
HasDownloads = true
};
var update = new RepositoryUpdate("Hello-World");
update.Description = "This is your first repository";
update.Homepage = "https://github.com";
update.Private = true;
update.HasIssues = true;
update.HasWiki = true;
update.HasDownloads = true;
var json = new SimpleJsonSerializer().Serialize(update);