diff --git a/DigitalData.Core.Tests/DigitalData.Core.Tests.csproj b/DigitalData.Core.Tests/DigitalData.Core.Tests.csproj index b8463c1..dd242d3 100644 --- a/DigitalData.Core.Tests/DigitalData.Core.Tests.csproj +++ b/DigitalData.Core.Tests/DigitalData.Core.Tests.csproj @@ -29,4 +29,19 @@ + + + + + + + + + + + + + + + diff --git a/DigitalData.Core.Tests/Infrastructure/DbRepositoryTests.cs b/DigitalData.Core.Tests/Infrastructure/DbRepositoryTests.cs new file mode 100644 index 0000000..b3b2ef5 --- /dev/null +++ b/DigitalData.Core.Tests/Infrastructure/DbRepositoryTests.cs @@ -0,0 +1,23 @@ +namespace DigitalData.Core.Tests.Infrastructure; + +using Microsoft.Extensions.Hosting; + +public class DbRepositoryTests +{ + private IHost _host; + + [SetUp] + public void Setup() + { + var builder = Host.CreateApplicationBuilder(); + + _host = builder.Build(); + } + + [TearDown] + public void TearDown() + { + if (_host is IDisposable disposableHost) + disposableHost.Dispose(); + } +}