fix: cleaning up some refactoring bugs
This commit is contained in:
parent
bb0dcd0d86
commit
48362b079d
4 changed files with 33 additions and 11 deletions
18
src/MfGames.ToolBuilder.Tables/ToolBuilderTablesModule.cs
Normal file
18
src/MfGames.ToolBuilder.Tables/ToolBuilderTablesModule.cs
Normal file
|
@ -0,0 +1,18 @@
|
|||
using Autofac;
|
||||
|
||||
namespace MfGames.ToolBuilder.Tables;
|
||||
|
||||
/// <summary>
|
||||
/// The Autofac module to pull in the components inside this assembly.
|
||||
/// </summary>
|
||||
public class ToolBuilderTablesModule : Module
|
||||
{
|
||||
/// <inheritdoc />
|
||||
protected override void Load(ContainerBuilder builder)
|
||||
{
|
||||
builder
|
||||
.RegisterType<TableToolService>()
|
||||
.AsSelf()
|
||||
.AsImplementedInterfaces();
|
||||
}
|
||||
}
|
|
@ -1,6 +1,7 @@
|
|||
using Autofac;
|
||||
|
||||
using MfGames.TestSetup;
|
||||
using MfGames.ToolBuilder.Tables;
|
||||
|
||||
namespace MfGames.ToolBuilder.Tests
|
||||
{
|
||||
|
@ -11,6 +12,7 @@ namespace MfGames.ToolBuilder.Tests
|
|||
{
|
||||
base.ConfigureContainer(builder);
|
||||
builder.RegisterModule<ToolBuilderModule>();
|
||||
builder.RegisterModule<ToolBuilderTablesModule>();
|
||||
}
|
||||
}
|
||||
}
|
||||
|
|
|
@ -3,6 +3,7 @@ using System.Threading.Tasks;
|
|||
using Autofac;
|
||||
|
||||
using MfGames.ToolBuilder;
|
||||
using MfGames.ToolBuilder.Tables;
|
||||
|
||||
namespace SampleTool
|
||||
{
|
||||
|
@ -20,6 +21,7 @@ namespace SampleTool
|
|||
private static void ConfigureContainer(ContainerBuilder builder)
|
||||
{
|
||||
builder.RegisterModule<SampleToolModule>();
|
||||
builder.RegisterModule<ToolBuilderTablesModule>();
|
||||
}
|
||||
}
|
||||
}
|
||||
|
|
Reference in a new issue