diff --git a/src/Services/FakerService.cs b/src/Services/FakerService.cs deleted file mode 100644 index 0c1b8c1..0000000 --- a/src/Services/FakerService.cs +++ /dev/null @@ -1,35 +0,0 @@ -namespace Soenneker.Utils.AutoBogus.Services; - -//public static class FakerService -//{ -// internal static Faker Faker => _lazyFaker.Value; - -// internal static bool IsValueCreated { get; private set; } -// internal static bool IsCustomFaker { get; private set; } - -// private static readonly ResettableLazy _lazyFaker = new(() => -// { -// IsValueCreated = true; - -// if (_configuredFaker != null) -// return _configuredFaker; - -// return new Faker(); -// }); - -// private static Faker? _configuredFaker; - -// public static void Set(Faker faker) -// { -// IsCustomFaker = true; -// _configuredFaker = faker; -// _lazyFaker.Reset(); -// } - -// public static void Reset() -// { -// IsCustomFaker = false; -// _configuredFaker = null; -// _lazyFaker.Reset(); -// } -//} \ No newline at end of file diff --git a/src/Soenneker.Utils.AutoBogus.csproj b/src/Soenneker.Utils.AutoBogus.csproj index b0f179c..8ae155b 100644 --- a/src/Soenneker.Utils.AutoBogus.csproj +++ b/src/Soenneker.Utils.AutoBogus.csproj @@ -48,7 +48,6 @@ - diff --git a/test/Soenneker.Utils.AutoBogus.Tests/Soenneker.Utils.AutoBogus.Tests.csproj b/test/Soenneker.Utils.AutoBogus.Tests/Soenneker.Utils.AutoBogus.Tests.csproj index bf54a0a..ab9c2ea 100644 --- a/test/Soenneker.Utils.AutoBogus.Tests/Soenneker.Utils.AutoBogus.Tests.csproj +++ b/test/Soenneker.Utils.AutoBogus.Tests/Soenneker.Utils.AutoBogus.Tests.csproj @@ -20,6 +20,8 @@ + + runtime; build; native; contentfiles; analyzers; buildtransitive diff --git a/test/Soenneker.Utils.AutoBogus.Tests/Utils/EnvironmentUtil.cs b/test/Soenneker.Utils.AutoBogus.Tests/Utils/EnvironmentUtil.cs index b36ee2e..abdb0f6 100644 --- a/test/Soenneker.Utils.AutoBogus.Tests/Utils/EnvironmentUtil.cs +++ b/test/Soenneker.Utils.AutoBogus.Tests/Utils/EnvironmentUtil.cs @@ -12,7 +12,7 @@ internal static class EnvironmentUtil // Init needs to be done outside of ctor because Fact evaluates before the ctor of the test private static readonly Lazy _isPipelineLazy = new(() => { - string? pipelineEnv = Environment.GetEnvironmentVariable("PipelineEnvironment"); + string? pipelineEnv = System.Environment.GetEnvironmentVariable("PipelineEnvironment"); _ = bool.TryParse(pipelineEnv, out bool isPipeline);