mirror of
https://github.com/zoriya/octokit.net.git
synced 2026-06-06 03:55:55 +00:00
Retain the rest of property initializers
This commit is contained in:
@@ -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);
|
||||
|
||||
|
||||
Reference in New Issue
Block a user