From 8eb17c27ee6dbcf2aa87a6e6cd51738015cefb19 Mon Sep 17 00:00:00 2001 From: Maciej Jedrzejewski Date: Tue, 2 Apr 2024 18:05:49 +0200 Subject: [PATCH] refactor: downgrade access modifier --- .../Common/TestEngine/Time/FakeTimeProvider.cs | 2 +- .../Common/TestEngine/Time/TimeExtensions.cs | 4 ++-- 2 files changed, 3 insertions(+), 3 deletions(-) diff --git a/Chapter-1-initial-architecture/Src/Fitnet.IntegrationTests/Common/TestEngine/Time/FakeTimeProvider.cs b/Chapter-1-initial-architecture/Src/Fitnet.IntegrationTests/Common/TestEngine/Time/FakeTimeProvider.cs index 8fe34253..e4e9dc5e 100644 --- a/Chapter-1-initial-architecture/Src/Fitnet.IntegrationTests/Common/TestEngine/Time/FakeTimeProvider.cs +++ b/Chapter-1-initial-architecture/Src/Fitnet.IntegrationTests/Common/TestEngine/Time/FakeTimeProvider.cs @@ -1,7 +1,7 @@ namespace EvolutionaryArchitecture.Fitnet.IntegrationTests.Common.TestEngine.Time; [UsedImplicitly] -public sealed class FakeTimeProvider(DateTimeOffset? now = null) : TimeProvider +internal sealed class FakeTimeProvider(DateTimeOffset? now = null) : TimeProvider { private DateTimeOffset TimeNowOffset { get; set; } = now ?? new Faker().Date.RecentOffset().UtcDateTime; diff --git a/Chapter-1-initial-architecture/Src/Fitnet.IntegrationTests/Common/TestEngine/Time/TimeExtensions.cs b/Chapter-1-initial-architecture/Src/Fitnet.IntegrationTests/Common/TestEngine/Time/TimeExtensions.cs index 1518dac3..7b4cbc84 100644 --- a/Chapter-1-initial-architecture/Src/Fitnet.IntegrationTests/Common/TestEngine/Time/TimeExtensions.cs +++ b/Chapter-1-initial-architecture/Src/Fitnet.IntegrationTests/Common/TestEngine/Time/TimeExtensions.cs @@ -3,9 +3,9 @@ using Microsoft.AspNetCore.TestHost; using Microsoft.Extensions.DependencyInjection; -public static class TimeExtensions +internal static class TimeExtensions { - public static WebApplicationFactory WithTime( + internal static WebApplicationFactory WithTime( this WebApplicationFactory webApplicationFactory, FakeTimeProvider fakeSystemTimeProvider) where T : class => webApplicationFactory .WithWebHostBuilder(builder => builder.ConfigureTestServices(services => services.AddSingleton(fakeSystemTimeProvider)));