This repository has been archived on 2023-02-02. You can view files and clone it, but cannot push or open issues or pull requests.
mfgames-nitride-cil/tests/MfGames.Nitride.Markdown.Tests/MarkdownTestContext.cs

23 lines
568 B
C#
Raw Normal View History

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