fix: cleaning up some refactoring bugs

This commit is contained in:
Dylan R. E. Moonfire 2022-04-02 18:52:44 -05:00
parent bb0dcd0d86
commit 48362b079d
4 changed files with 33 additions and 11 deletions

View 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();
}
}

View file

@ -1,6 +1,7 @@
using Autofac; using Autofac;
using MfGames.TestSetup; using MfGames.TestSetup;
using MfGames.ToolBuilder.Tables;
namespace MfGames.ToolBuilder.Tests namespace MfGames.ToolBuilder.Tests
{ {
@ -11,6 +12,7 @@ namespace MfGames.ToolBuilder.Tests
{ {
base.ConfigureContainer(builder); base.ConfigureContainer(builder);
builder.RegisterModule<ToolBuilderModule>(); builder.RegisterModule<ToolBuilderModule>();
builder.RegisterModule<ToolBuilderTablesModule>();
} }
} }
} }

View file

@ -3,6 +3,7 @@ using System.Threading.Tasks;
using Autofac; using Autofac;
using MfGames.ToolBuilder; using MfGames.ToolBuilder;
using MfGames.ToolBuilder.Tables;
namespace SampleTool namespace SampleTool
{ {
@ -20,6 +21,7 @@ namespace SampleTool
private static void ConfigureContainer(ContainerBuilder builder) private static void ConfigureContainer(ContainerBuilder builder)
{ {
builder.RegisterModule<SampleToolModule>(); builder.RegisterModule<SampleToolModule>();
builder.RegisterModule<ToolBuilderTablesModule>();
} }
} }
} }