mirror of
https://github.com/zoriya/octokit.net.git
synced 2026-06-04 19:26:51 +00:00
Fixed HasGetterOnlyProperties test
This commit is contained in:
@@ -8,16 +8,16 @@
|
||||
/// <summary>
|
||||
/// The number of deletions that occurred as part of this change.
|
||||
/// </summary>
|
||||
public int Deletions { get; set; }
|
||||
public int Deletions { get; protected set; }
|
||||
|
||||
/// <summary>
|
||||
/// The number of additions that occurred as part of this change.
|
||||
/// </summary>
|
||||
public int Additions { get; set; }
|
||||
public int Additions { get; protected set; }
|
||||
|
||||
/// <summary>
|
||||
/// The total number of changes.
|
||||
/// </summary>
|
||||
public int Total { get; set; }
|
||||
public int Total { get; protected set; }
|
||||
}
|
||||
}
|
||||
@@ -7,33 +7,33 @@ namespace Octokit
|
||||
/// <summary>
|
||||
/// The size in bytes of the file.
|
||||
/// </summary>
|
||||
public int Size { get; set; }
|
||||
public int Size { get; protected set; }
|
||||
|
||||
/// <summary>
|
||||
/// The name of the file
|
||||
/// </summary>
|
||||
[SuppressMessage("Microsoft.Naming", "CA1702:CompoundWordsShouldBeCasedCorrectly")]
|
||||
public string Filename { get; set; }
|
||||
public string Filename { get; protected set; }
|
||||
|
||||
/// <summary>
|
||||
/// The mime type of the file
|
||||
/// </summary>
|
||||
[SuppressMessage("Microsoft.Naming", "CA1721:PropertyNamesShouldNotMatchGetMethods")]
|
||||
public string Type { get; set; }
|
||||
public string Type { get; protected set; }
|
||||
|
||||
/// <summary>
|
||||
/// The programming language of the file, if any.
|
||||
/// </summary>
|
||||
public string Language { get; set; }
|
||||
public string Language { get; protected set; }
|
||||
|
||||
/// <summary>
|
||||
/// The text content of the file.
|
||||
/// </summary>
|
||||
public string Content { get; set; }
|
||||
public string Content { get; protected set; }
|
||||
|
||||
/// <summary>
|
||||
/// The url to download the file.
|
||||
/// </summary>
|
||||
public string RawUrl { get; set; }
|
||||
public string RawUrl { get; protected set; }
|
||||
}
|
||||
}
|
||||
@@ -7,16 +7,16 @@ namespace Octokit
|
||||
/// <summary>
|
||||
/// The <see cref="User"/> that created this <see cref="GistFork"/>
|
||||
/// </summary>
|
||||
public User User { get; set; }
|
||||
public User User { get; protected set; }
|
||||
|
||||
/// <summary>
|
||||
/// The API URL for this <see cref="GistFork"/>.
|
||||
/// </summary>
|
||||
public string Url { get; set; }
|
||||
public string Url { get; protected set; }
|
||||
|
||||
/// <summary>
|
||||
/// The <see cref="DateTimeOffset"/> for when this <see cref="Gist"/> was created.
|
||||
/// </summary>
|
||||
public DateTimeOffset CreatedAt { get; set; }
|
||||
public DateTimeOffset CreatedAt { get; protected set; }
|
||||
}
|
||||
}
|
||||
@@ -10,26 +10,26 @@ namespace Octokit
|
||||
/// <summary>
|
||||
/// The url that can be used by the API to retrieve this version of the <see cref="Gist"/>.
|
||||
/// </summary>
|
||||
public string Url { get; set; }
|
||||
public string Url { get; protected set; }
|
||||
|
||||
/// <summary>
|
||||
/// A git sha representing the version.
|
||||
/// </summary>
|
||||
public string Version { get; set; }
|
||||
public string Version { get; protected set; }
|
||||
|
||||
/// <summary>
|
||||
/// The <see cref="User"/> who create this version.
|
||||
/// </summary>
|
||||
public User User { get; set; }
|
||||
public User User { get; protected set; }
|
||||
|
||||
/// <summary>
|
||||
/// A <see cref="GistHistory"/> that represents the level of change for this <see cref="GistHistory"/>.
|
||||
/// </summary>
|
||||
public GistChangeStatus ChangeStatus { get; set; }
|
||||
public GistChangeStatus ChangeStatus { get; protected set; }
|
||||
|
||||
/// <summary>
|
||||
/// The <see cref="DateTimeOffset"/> the version was created.
|
||||
/// </summary>
|
||||
public DateTimeOffset CommittedAt { get; set; }
|
||||
public DateTimeOffset CommittedAt { get; protected set; }
|
||||
}
|
||||
}
|
||||
@@ -15,59 +15,56 @@ namespace Octokit
|
||||
/// The name of the file
|
||||
/// </summary>
|
||||
[SuppressMessage("Microsoft.Naming", "CA1702:CompoundWordsShouldBeCasedCorrectly")]
|
||||
public string Filename { get; set; }
|
||||
public string Filename { get; protected set; }
|
||||
|
||||
/// <summary>
|
||||
/// Number of additions performed on the file.
|
||||
/// </summary>
|
||||
public int Additions { get; set; }
|
||||
public int Additions { get; protected set; }
|
||||
|
||||
/// <summary>
|
||||
/// Number of deletions performed on the file.
|
||||
/// </summary>
|
||||
public int Deletions { get; set; }
|
||||
public int Deletions { get; protected set; }
|
||||
|
||||
/// <summary>
|
||||
/// Number of changes performed on the file.
|
||||
/// </summary>
|
||||
public int Changes { get; set; }
|
||||
public int Changes { get; protected set; }
|
||||
|
||||
/// <summary>
|
||||
/// File status, like modified, added, deleted.
|
||||
/// </summary>
|
||||
public string Status { get; set; }
|
||||
public string Status { get; protected set; }
|
||||
|
||||
/// <summary>
|
||||
/// The url to the file blob.
|
||||
/// </summary>
|
||||
public string BlobUrl { get; set; }
|
||||
public string BlobUrl { get; protected set; }
|
||||
|
||||
/// <summary>
|
||||
/// The url to file contents API.
|
||||
/// </summary>
|
||||
public string ContentsUrl { get; set; }
|
||||
public string ContentsUrl { get; protected set; }
|
||||
|
||||
/// <summary>
|
||||
/// The raw url to download the file.
|
||||
/// </summary>
|
||||
public string RawUrl { get; set; }
|
||||
public string RawUrl { get; protected set; }
|
||||
|
||||
/// <summary>
|
||||
/// The SHA of the file.
|
||||
/// </summary>
|
||||
public string Sha { get; set; }
|
||||
public string Sha { get; protected set; }
|
||||
|
||||
/// <summary>
|
||||
/// The patch associated with the commit
|
||||
/// </summary>
|
||||
public string Patch { get; set; }
|
||||
public string Patch { get; protected set; }
|
||||
|
||||
internal string DebuggerDisplay
|
||||
{
|
||||
get
|
||||
{
|
||||
return String.Format(CultureInfo.InvariantCulture, "Filename: {0} ({1})", Filename, Status);
|
||||
}
|
||||
get { return String.Format(CultureInfo.InvariantCulture, "Filename: {0} ({1})", Filename, Status); }
|
||||
}
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
@@ -10,44 +10,41 @@ namespace Octokit
|
||||
/// <summary>
|
||||
/// file name
|
||||
/// </summary>
|
||||
public string Name { get; set; }
|
||||
public string Name { get; protected set; }
|
||||
|
||||
/// <summary>
|
||||
/// path to file
|
||||
/// </summary>
|
||||
public string Path { get; set; }
|
||||
public string Path { get; protected set; }
|
||||
|
||||
/// <summary>
|
||||
/// Sha for file
|
||||
/// </summary>
|
||||
public string Sha { get; set; }
|
||||
public string Sha { get; protected set; }
|
||||
|
||||
/// <summary>
|
||||
/// api-url to file
|
||||
/// </summary>
|
||||
public Uri Url { get; set; }
|
||||
public Uri Url { get; protected set; }
|
||||
|
||||
/// <summary>
|
||||
/// git-url to file
|
||||
/// </summary>
|
||||
public Uri GitUrl { get; set; }
|
||||
public Uri GitUrl { get; protected set; }
|
||||
|
||||
/// <summary>
|
||||
/// html-url to file
|
||||
/// </summary>
|
||||
public Uri HtmlUrl { get; set; }
|
||||
public Uri HtmlUrl { get; protected set; }
|
||||
|
||||
/// <summary>
|
||||
/// Repo where this file belongs to
|
||||
/// </summary>
|
||||
public Repository Repository { get; set; }
|
||||
public Repository Repository { get; protected set; }
|
||||
|
||||
internal string DebuggerDisplay
|
||||
{
|
||||
get
|
||||
{
|
||||
return String.Format(CultureInfo.InvariantCulture, "Sha: {0} Name: {1}", Sha, Name);
|
||||
}
|
||||
get { return String.Format(CultureInfo.InvariantCulture, "Sha: {0} Name: {1}", Sha, Name); }
|
||||
}
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
@@ -8,33 +8,33 @@ namespace Octokit
|
||||
/// <summary>
|
||||
/// The path for this Tree Item.
|
||||
/// </summary>
|
||||
public string Path { get; set; }
|
||||
public string Path { get; protected set; }
|
||||
|
||||
/// <summary>
|
||||
/// The mode of this Tree Item.
|
||||
/// </summary>
|
||||
public string Mode { get; set; }
|
||||
public string Mode { get; protected set; }
|
||||
|
||||
/// <summary>
|
||||
/// The type of this Tree Item.
|
||||
/// </summary>
|
||||
[System.Diagnostics.CodeAnalysis.SuppressMessage("Microsoft.Naming", "CA1721:PropertyNamesShouldNotMatchGetMethods")]
|
||||
public TreeType Type { get; set; }
|
||||
public TreeType Type { get; protected set; }
|
||||
|
||||
/// <summary>
|
||||
/// The size of this Tree Item.
|
||||
/// </summary>
|
||||
public int Size { get; set; }
|
||||
public int Size { get; protected set; }
|
||||
|
||||
/// <summary>
|
||||
/// The SHA of this Tree Item.
|
||||
/// </summary>
|
||||
public string Sha { get; set; }
|
||||
public string Sha { get; protected set; }
|
||||
|
||||
/// <summary>
|
||||
/// The URL of this Tree Item.
|
||||
/// </summary>
|
||||
public Uri Url { get; set; }
|
||||
public Uri Url { get; protected set; }
|
||||
}
|
||||
|
||||
public enum TreeType
|
||||
|
||||
@@ -13,17 +13,17 @@ namespace Octokit
|
||||
/// <summary>
|
||||
/// The days array is a group of commits per day, starting on Sunday.
|
||||
/// </summary>
|
||||
public IEnumerable<int> Days { get; set; }
|
||||
public IEnumerable<int> Days { get; protected set; }
|
||||
|
||||
/// <summary>
|
||||
/// Totally number of commits made this week.
|
||||
/// </summary>
|
||||
public int Total { get; set; }
|
||||
public int Total { get; protected set; }
|
||||
|
||||
/// <summary>
|
||||
/// The week of commits
|
||||
/// </summary>
|
||||
public long Week { get; set; }
|
||||
public long Week { get; protected set; }
|
||||
|
||||
public DateTimeOffset WeekTimestamp
|
||||
{
|
||||
@@ -49,4 +49,4 @@ namespace Octokit
|
||||
}
|
||||
}
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
@@ -10,16 +10,16 @@ namespace Octokit
|
||||
public class WeeklyHash
|
||||
{
|
||||
[SuppressMessage("Microsoft.Naming", "CA1704:IdentifiersShouldBeSpelledCorrectly", MessageId = "W")]
|
||||
public long W { get; set; }
|
||||
public long W { get; protected set; }
|
||||
|
||||
[SuppressMessage("Microsoft.Naming", "CA1704:IdentifiersShouldBeSpelledCorrectly", MessageId = "A")]
|
||||
public int A { get; set; }
|
||||
public int A { get; protected set; }
|
||||
|
||||
[SuppressMessage("Microsoft.Naming", "CA1704:IdentifiersShouldBeSpelledCorrectly", MessageId = "D")]
|
||||
public int D { get; set; }
|
||||
public int D { get; protected set; }
|
||||
|
||||
[SuppressMessage("Microsoft.Naming", "CA1704:IdentifiersShouldBeSpelledCorrectly", MessageId = "C")]
|
||||
public int C { get; set; }
|
||||
public int C { get; protected set; }
|
||||
|
||||
public DateTimeOffset Week
|
||||
{
|
||||
@@ -50,4 +50,4 @@ namespace Octokit
|
||||
}
|
||||
}
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user