using Quadarax.Foundation.Core.Object; using Quadarax.Foundation.Core.QConsole.Context; using System.IO.Abstractions; namespace qdr.fnd.core.qconsole.test.Contexts { internal class BasicEngineContext : DisposableObject, IEngineContext { private IFileSystem? _fileSystem; public string Status => throw new NotImplementedException(); public BasicEngineContext(IFileSystem fileSystem) { _fileSystem = fileSystem; } public ICommandContext CreateCommandContext() { return new BasicCommandContext(_fileSystem ?? new FileSystem()); } protected override void OnDisposing() { _fileSystem = null; } } }