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/Nitride.IO.Tests/NitrideIOTestContext.cs
2022-06-27 23:38:50 -05:00

24 lines
539 B
C#

using Autofac;
using Nitride.Tests;
using Serilog;
using Zio;
using Zio.FileSystems;
namespace 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>();
builder.RegisterInstance(new MemoryFileSystem()).As<IFileSystem>().SingleInstance();
}
}