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

@ -8,13 +8,13 @@
</PropertyGroup> </PropertyGroup>
<ItemGroup> <ItemGroup>
<PackageReference Include="Autofac" Version="6.3.0"/> <PackageReference Include="Autofac" Version="6.3.0" />
<PackageReference Include="ConsoleTableExt" Version="3.1.9"/> <PackageReference Include="ConsoleTableExt" Version="3.1.9" />
<PackageReference Include="CsvHelper" Version="27.2.1"/> <PackageReference Include="CsvHelper" Version="27.2.1" />
<PackageReference Include="FluentResults" Version="3.3.0"/> <PackageReference Include="FluentResults" Version="3.3.0" />
<PackageReference Include="Glob" Version="1.1.9"/> <PackageReference Include="Glob" Version="1.1.9" />
<PackageReference Include="Humanizer.Core" Version="2.14.1"/> <PackageReference Include="Humanizer.Core" Version="2.14.1" />
<PackageReference Include="Newtonsoft.Json" Version="13.0.1"/> <PackageReference Include="Newtonsoft.Json" Version="13.0.1" />
<PackageReference Include="Roslynator.Analyzers" Version="4.1.0"> <PackageReference Include="Roslynator.Analyzers" Version="4.1.0">
<PrivateAssets>all</PrivateAssets> <PrivateAssets>all</PrivateAssets>
<IncludeAssets>runtime; build; native; contentfiles; analyzers; buildtransitive</IncludeAssets> <IncludeAssets>runtime; build; native; contentfiles; analyzers; buildtransitive</IncludeAssets>
@ -27,13 +27,13 @@
<PrivateAssets>all</PrivateAssets> <PrivateAssets>all</PrivateAssets>
<IncludeAssets>runtime; build; native; contentfiles; analyzers; buildtransitive</IncludeAssets> <IncludeAssets>runtime; build; native; contentfiles; analyzers; buildtransitive</IncludeAssets>
</PackageReference> </PackageReference>
<PackageReference Include="Serilog" Version="2.10.0"/> <PackageReference Include="Serilog" Version="2.10.0" />
<PackageReference Include="SerilogAnalyzer" Version="0.15.0"/> <PackageReference Include="SerilogAnalyzer" Version="0.15.0" />
<PackageReference Include="System.CommandLine" Version="[2.0.0-beta3.22114.1,)"/> <PackageReference Include="System.CommandLine" Version="[2.0.0-beta3.22114.1,)" />
</ItemGroup> </ItemGroup>
<ItemGroup> <ItemGroup>
<ProjectReference Include="..\MfGames.ToolBuilder\MfGames.ToolBuilder.csproj"/> <ProjectReference Include="..\MfGames.ToolBuilder\MfGames.ToolBuilder.csproj" />
</ItemGroup> </ItemGroup>
</Project> </Project>

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