This is a community asset to accelerate understanding and development Inversion of Control Pattern (IoC) principle.
This project covers concepts about:
- XUnit
- Visual Studio Code
- GIT Bash
- GitHub(Repos, Actions)
var builder = new ContainerBuilder();
builder.Register<IFileHandler, MockFileHandler>();
var container = builder.Build();
var fileHandler = container.Resolve<IFileHandler>();
dotnet restore
dotnet build
dotnet test
- Binaries committed to source control.
- Unnecessary project or library references or third party frameworks.
- Many "try" blocks - code defensively and throw exceptions if something is wrong.
- Third party APIs exposed via public interfaces.