diff options
author | Serghei Cebotari <serghei@cebotari.ru> | 2024-02-08 17:11:11 +0300 |
---|---|---|
committer | Serghei Cebotari <serghei@cebotari.ru> | 2024-02-08 17:11:11 +0300 |
commit | 69db707d6803ada3891e4e71b8660ad095392973 (patch) | |
tree | d188676a0a5c40816fc6fa73955e883ea1f8c206 /RhSolutions.Parsers.Tests/TestServiceCollection.cs | |
parent | a9ce0c1785ce7c220ff953db7a21cf33535c6d26 (diff) |
Rename Parser projects
Diffstat (limited to 'RhSolutions.Parsers.Tests/TestServiceCollection.cs')
-rw-r--r-- | RhSolutions.Parsers.Tests/TestServiceCollection.cs | 23 |
1 files changed, 23 insertions, 0 deletions
diff --git a/RhSolutions.Parsers.Tests/TestServiceCollection.cs b/RhSolutions.Parsers.Tests/TestServiceCollection.cs new file mode 100644 index 0000000..9f15c89 --- /dev/null +++ b/RhSolutions.Parsers.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 |