diff --git a/samples/CloudNative.CloudEvents.AspNetCoreSample/Program.cs b/samples/CloudNative.CloudEvents.AspNetCoreSample/Program.cs index ad08eda..c75e741 100644 --- a/samples/CloudNative.CloudEvents.AspNetCoreSample/Program.cs +++ b/samples/CloudNative.CloudEvents.AspNetCoreSample/Program.cs @@ -17,3 +17,7 @@ var app = builder.Build(); app.MapControllers(); app.Run(); + +// Generated `Program` class when using top-level statements +// is internal by default. Make this `public` here for tests. +public partial class Program { } diff --git a/test/CloudNative.CloudEvents.IntegrationTests/AspNetCore/CloudEventControllerTests.cs b/test/CloudNative.CloudEvents.IntegrationTests/AspNetCore/CloudEventControllerTests.cs index 2de9ae4..b59ecf2 100644 --- a/test/CloudNative.CloudEvents.IntegrationTests/AspNetCore/CloudEventControllerTests.cs +++ b/test/CloudNative.CloudEvents.IntegrationTests/AspNetCore/CloudEventControllerTests.cs @@ -13,11 +13,11 @@ using Xunit; namespace CloudNative.CloudEvents.IntegrationTests.AspNetCore { - public class CloudEventControllerTests : IClassFixture> + public class CloudEventControllerTests : IClassFixture> { - private readonly WebApplicationFactory _factory; + private readonly WebApplicationFactory _factory; - public CloudEventControllerTests(WebApplicationFactory factory) + public CloudEventControllerTests(WebApplicationFactory factory) { _factory = factory; }