summaryrefslogtreecommitdiff
path: root/RhSolutions.Api.Tests/TestServiceCollection.cs
diff options
context:
space:
mode:
Diffstat (limited to 'RhSolutions.Api.Tests/TestServiceCollection.cs')
-rw-r--r--RhSolutions.Api.Tests/TestServiceCollection.cs23
1 files changed, 23 insertions, 0 deletions
diff --git a/RhSolutions.Api.Tests/TestServiceCollection.cs b/RhSolutions.Api.Tests/TestServiceCollection.cs
new file mode 100644
index 0000000..9f15c89
--- /dev/null
+++ b/RhSolutions.Api.Tests/TestServiceCollection.cs
@@ -0,0 +1,23 @@
+using Microsoft.Extensions.DependencyInjection;
+
+namespace RhSolutions.Api.Tests;
+
+[SetUpFixture]
+public class TestServiceCollection
+{
+ public static ServiceProvider? ServiceProvider { get; private set; }
+
+ [OneTimeSetUp]
+ public void CreateProvider()
+ {
+ var collection = new ServiceCollection();
+ collection.AddModifiers();
+ ServiceProvider = collection.BuildServiceProvider();
+ }
+
+ [OneTimeTearDown]
+ public void DisposeProvider()
+ {
+ ServiceProvider?.Dispose();
+ }
+} \ No newline at end of file