From 9b1862e0bf2c0c5ddfec472944581537d6e0db75 Mon Sep 17 00:00:00 2001 From: Arash Sabet Date: Sun, 24 Apr 2022 10:43:27 -0400 Subject: [PATCH] Removed the Obsolete attribute #110 --- .../Fixtures/TestFixture.cs | 1 - src/Abstracts/TestBedFixture.cs | 2 -- 2 files changed, 3 deletions(-) diff --git a/examples/Xunit.Microsoft.DependencyInjection.ExampleTests/Fixtures/TestFixture.cs b/examples/Xunit.Microsoft.DependencyInjection.ExampleTests/Fixtures/TestFixture.cs index 50cfeb8..1801839 100644 --- a/examples/Xunit.Microsoft.DependencyInjection.ExampleTests/Fixtures/TestFixture.cs +++ b/examples/Xunit.Microsoft.DependencyInjection.ExampleTests/Fixtures/TestFixture.cs @@ -10,7 +10,6 @@ protected override void AddServices(IServiceCollection services, IConfiguration? protected override ValueTask DisposeAsyncCore() => new(); - [Obsolete] protected override IEnumerable GetConfigurationFiles() { yield return "appsettings.json"; diff --git a/src/Abstracts/TestBedFixture.cs b/src/Abstracts/TestBedFixture.cs index d0eb28f..f1d221a 100644 --- a/src/Abstracts/TestBedFixture.cs +++ b/src/Abstracts/TestBedFixture.cs @@ -40,8 +40,6 @@ public IServiceProvider GetServiceProvider(ITestOutputHelper testOutputHelper) => GetServiceProvider(testOutputHelper).GetService(); protected abstract void AddServices(IServiceCollection services, IConfiguration? configuration); - - [Obsolete("This method is deprecated. Please override and use GetTestAppSettings() method instead.", true)] protected abstract IEnumerable GetConfigurationFiles(); protected abstract IEnumerable GetTestAppSettings();