Skip to content

Commit

Permalink
Base classes need protected setters, ActivityPayload had privates (oc…
Browse files Browse the repository at this point in the history
  • Loading branch information
JonruAlveus authored Oct 7, 2022
1 parent 92524a1 commit 971fa50
Show file tree
Hide file tree
Showing 2 changed files with 6 additions and 3 deletions.
3 changes: 3 additions & 0 deletions Octokit.Tests/Models/CheckSuiteEventTests.cs
Original file line number Diff line number Diff line change
Expand Up @@ -18,6 +18,9 @@ public void CanBeDeserialized()
Assert.Equal("rerequested", payload.Action);
Assert.Equal("73955d02043135d48809add98052c2170522158f", payload.CheckSuite.HeadSha);
Assert.Equal(CheckStatus.Queued, payload.CheckSuite.Status.Value);
Assert.NotNull(payload.Installation);
Assert.NotNull(payload.Repository);
Assert.NotNull(payload.Sender);
}
}
}
6 changes: 3 additions & 3 deletions Octokit/Models/Response/ActivityPayloads/ActivityPayload.cs
Original file line number Diff line number Diff line change
Expand Up @@ -15,9 +15,9 @@ public ActivityPayload(Repository repository, User sender, InstallationId instal
Installation = installation;
}

public Repository Repository { get; private set; }
public User Sender { get; private set; }
public InstallationId Installation { get; private set; }
public Repository Repository { get; protected set; }
public User Sender { get; protected set; }
public InstallationId Installation { get; protected set; }

internal string DebuggerDisplay
{
Expand Down

0 comments on commit 971fa50

Please sign in to comment.