mirror of
https://github.com/zoriya/octokit.net.git
synced 2026-06-05 19:46:07 +00:00
Adding a convention test to detect whether a model has a constructor exposing all properties (#1798)
* Added a convention test to detect a model constructor exposing all properties * add ctors to classes where they are missing * rename ctor parameters that dont match properties * add missing parameters to existing ctors * add specific PunchCard ctor to allow mocking, and update test to resolve call ambiguity * Added base class properties to the convention test Added member exclusion attribute * Updated newly offending classes 2 excludes and 2 ctors * rename exclusion attribute to be a bit shorter
This commit is contained in:
@@ -15,7 +15,7 @@ namespace Octokit
|
||||
Id = id;
|
||||
}
|
||||
|
||||
public PullRequestReviewComment(string url, int id, string diffHunk, string path, int? position, int? originalPosition, string commitId, string originalCommitId, User user, string body, DateTimeOffset createdAt, DateTimeOffset updatedAt, string htmlUrl, string pullRequestUrl, int? inReplyToId, int? pullRequestReviewId)
|
||||
public PullRequestReviewComment(string url, int id, string diffHunk, string path, int? position, int? originalPosition, string commitId, string originalCommitId, User user, string body, DateTimeOffset createdAt, DateTimeOffset updatedAt, string htmlUrl, string pullRequestUrl, ReactionSummary reactions, int? inReplyToId, int? pullRequestReviewId)
|
||||
{
|
||||
PullRequestReviewId = pullRequestReviewId;
|
||||
Url = url;
|
||||
@@ -32,6 +32,7 @@ namespace Octokit
|
||||
UpdatedAt = updatedAt;
|
||||
HtmlUrl = htmlUrl;
|
||||
PullRequestUrl = pullRequestUrl;
|
||||
Reactions = reactions;
|
||||
InReplyToId = inReplyToId;
|
||||
}
|
||||
|
||||
@@ -105,6 +106,9 @@ namespace Octokit
|
||||
/// </summary>
|
||||
public string PullRequestUrl { get; protected set; }
|
||||
|
||||
/// <summary>
|
||||
/// The reaction summary for this comment.
|
||||
/// </summary>
|
||||
public ReactionSummary Reactions { get; protected set; }
|
||||
|
||||
/// <summary>
|
||||
|
||||
Reference in New Issue
Block a user