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.IO.Tests/NitrideIOTestContext.cs

25 lines
565 B
C#
Raw Normal View History

using Autofac;
2022-09-06 05:53:22 +00:00
using MfGames.Nitride.Tests;
using Zio;
using Zio.FileSystems;
2022-09-06 05:53:22 +00:00
namespace MfGames.Nitride.IO.Tests;
public class NitrideIOTestContext : NitrideTestContext
{
public IFileSystem FileSystem => this.Resolve<IFileSystem>();
/// <inheritdoc />
protected override void ConfigureContainer(ContainerBuilder builder)
{
base.ConfigureContainer(builder);
builder.RegisterModule<NitrideIOModule>();
2022-07-09 04:52:10 +00:00
builder.RegisterInstance(new MemoryFileSystem())
.As<IFileSystem>()
.SingleInstance();
}
}