23 lines
568 B
C#
23 lines
568 B
C#
|
using Autofac;
|
||
|
|
||
|
using MfGames.Nitride.Markdown;
|
||
|
using MfGames.Nitride.Tests;
|
||
|
|
||
|
namespace MfGames.Nitride.Slugs.Tests;
|
||
|
|
||
|
public class MarkdownTestContext : NitrideTestContext
|
||
|
{
|
||
|
/// <inheritdoc />
|
||
|
protected override void ConfigureContainer(ContainerBuilder builder)
|
||
|
{
|
||
|
base.ConfigureContainer(builder);
|
||
|
builder.RegisterModule<NitrideSlugsModule>();
|
||
|
builder.RegisterModule<NitrideMarkdownModule>();
|
||
|
|
||
|
builder
|
||
|
.RegisterType<SimpleSlugConverter>()
|
||
|
.As<ISlugConverter>()
|
||
|
.SingleInstance();
|
||
|
}
|
||
|
}
|