22 lines
568 B
C#
22 lines
568 B
C#
using Autofac;
|
|
|
|
using MfGames.Nitride.Slugs;
|
|
using MfGames.Nitride.Tests;
|
|
|
|
namespace MfGames.Nitride.Markdown.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();
|
|
}
|
|
}
|