0
0
RhSolutions-Api/RhSolutions.Parsers.Tests/TestServiceCollection.cs
Serghei Cebotari c13f4ddda1
All checks were successful
Test and release / test (push) Successful in 3m1s
Test and release / release-image (push) Successful in 3m40s
Rename service add method
2024-02-09 16:48:42 +03:00

23 lines
481 B
C#

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.AddProductParsers();
ServiceProvider = collection.BuildServiceProvider();
}
[OneTimeTearDown]
public void DisposeProvider()
{
ServiceProvider?.Dispose();
}
}