From 4cf59dcda1226b2228b5e3061e2884191cb4548e Mon Sep 17 00:00:00 2001 From: Chris Simpson Date: Fri, 7 Oct 2022 06:43:28 +0100 Subject: [PATCH] Base classes need protected setters, ActivityPayload had privates --- Octokit.Tests/Models/CheckSuiteEventTests.cs | 3 +++ Octokit/Models/Response/ActivityPayloads/ActivityPayload.cs | 6 +++--- 2 files changed, 6 insertions(+), 3 deletions(-) diff --git a/Octokit.Tests/Models/CheckSuiteEventTests.cs b/Octokit.Tests/Models/CheckSuiteEventTests.cs index 45da12ea2e..a0c066f4f6 100644 --- a/Octokit.Tests/Models/CheckSuiteEventTests.cs +++ b/Octokit.Tests/Models/CheckSuiteEventTests.cs @@ -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); } } } diff --git a/Octokit/Models/Response/ActivityPayloads/ActivityPayload.cs b/Octokit/Models/Response/ActivityPayloads/ActivityPayload.cs index 0e0ec2a074..ea89c33195 100644 --- a/Octokit/Models/Response/ActivityPayloads/ActivityPayload.cs +++ b/Octokit/Models/Response/ActivityPayloads/ActivityPayload.cs @@ -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 {