Skip to content

Commit

Permalink
Register settings
Browse files Browse the repository at this point in the history
  • Loading branch information
linwenda committed Apr 14, 2023
1 parent 10fc769 commit 6fc477c
Show file tree
Hide file tree
Showing 2 changed files with 1 addition and 12 deletions.
1 change: 1 addition & 0 deletions src/Wax.Core/ApplicationModule.cs
Original file line number Diff line number Diff line change
Expand Up @@ -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);
Expand Down
12 changes: 0 additions & 12 deletions tests/Wax.IntegrationTests/IntegrationTestBase.cs
Original file line number Diff line number Diff line change
Expand Up @@ -34,18 +34,6 @@ protected async Task<TR> Run<T, TR>(Func<T, Task<TR>> action, Action<ContainerBu
return await action(dependency);
}

protected async Task<TR> RunWithUnitOfWork<TR>(Func<IUnitOfWork, Task<TR>> action)
{
var uow = _fixture.LifetimeScope.BeginLifetimeScope().Resolve<IUnitOfWork>();
return await action(uow);
}

protected async Task RunWithUnitOfWork(Func<IUnitOfWork, Task> action)
{
var uow = _fixture.LifetimeScope.BeginLifetimeScope().Resolve<IUnitOfWork>();
await action(uow);
}

public void Dispose()
{
_fixture.Cleanup();
Expand Down

0 comments on commit 6fc477c

Please sign in to comment.