Retain the rest of property initializers

This commit is contained in:
eriawan
2017-03-21 01:11:39 +07:00
parent f020170b88
commit 332b5216bb
@@ -21,13 +21,15 @@ namespace Octokit.Tests.Models
"\"has_wiki\":true," +
"\"has_downloads\":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 update = new RepositoryUpdate("Hello-World")
{
Description = "This is your first repository",
Homepage = "https://github.com",
Private = true,
HasIssues = true,
HasWiki = true,
HasDownloads = true
};
var json = new SimpleJsonSerializer().Serialize(update);