From 6fc477c62a7fb3ced965bac13dc6f7116563b054 Mon Sep 17 00:00:00 2001 From: "BRUCE.L" Date: Thu, 13 Apr 2023 19:36:07 -0700 Subject: [PATCH] Register settings --- src/Wax.Core/ApplicationModule.cs | 1 + tests/Wax.IntegrationTests/IntegrationTestBase.cs | 12 ------------ 2 files changed, 1 insertion(+), 12 deletions(-) diff --git a/src/Wax.Core/ApplicationModule.cs b/src/Wax.Core/ApplicationModule.cs index 9112f0d..daa44c0 100644 --- a/src/Wax.Core/ApplicationModule.cs +++ b/src/Wax.Core/ApplicationModule.cs @@ -39,6 +39,7 @@ public ApplicationModule(ILogger logger, ICurrentUser currentUser, IConfiguratio protected override void Load(ContainerBuilder builder) { + RegisterSettings(builder); RegisterAutoMapper(builder); RegisterDependency(builder); RegisterDatabase(builder); diff --git a/tests/Wax.IntegrationTests/IntegrationTestBase.cs b/tests/Wax.IntegrationTests/IntegrationTestBase.cs index ec4ecd9..0d0a2eb 100644 --- a/tests/Wax.IntegrationTests/IntegrationTestBase.cs +++ b/tests/Wax.IntegrationTests/IntegrationTestBase.cs @@ -34,18 +34,6 @@ protected async Task Run(Func> action, Action RunWithUnitOfWork(Func> action) - { - var uow = _fixture.LifetimeScope.BeginLifetimeScope().Resolve(); - return await action(uow); - } - - protected async Task RunWithUnitOfWork(Func action) - { - var uow = _fixture.LifetimeScope.BeginLifetimeScope().Resolve(); - await action(uow); - } - public void Dispose() { _fixture.Cleanup();