A C# file system abstraction for IoC against the file system, helpful for unit testing. You can build mock file systems by using the IFileSystem interface or IDirectories interface.
License
—
Deps
0
Install Size
—
Vulns
✓ 0
Published
Sep 11, 2022
Get Started
$ dotnet add package FileSystemAbstractionsReadme
file-system-abstraction
A C# file system abstraction for IoC against the file system, helpful for unit testing. You can build mock file systems by using the IFileSystem interface or IDirectories interface.
Add to Dependency Injection:
builder.Services.AddSingleton<IFileSystem, FileSystem>();
builder.Services.AddSingleton<IDirectories, Directories>();