Skip to content

Commit

Permalink
refactor: downgrade access modifier
Browse files Browse the repository at this point in the history
  • Loading branch information
meaboutsoftware committed Apr 2, 2024
1 parent f43c108 commit 8eb17c2
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 3 deletions.
Original file line number Diff line number Diff line change
@@ -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;

Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -3,9 +3,9 @@
using Microsoft.AspNetCore.TestHost;
using Microsoft.Extensions.DependencyInjection;

public static class TimeExtensions
internal static class TimeExtensions
{
public static WebApplicationFactory<T> WithTime<T>(
internal static WebApplicationFactory<T> WithTime<T>(
this WebApplicationFactory<T> webApplicationFactory, FakeTimeProvider fakeSystemTimeProvider)
where T : class => webApplicationFactory
.WithWebHostBuilder(builder => builder.ConfigureTestServices(services => services.AddSingleton<TimeProvider>(fakeSystemTimeProvider)));
Expand Down

0 comments on commit 8eb17c2

Please sign in to comment.