Skip to content

diegodocs/SimpleIocContainer

Repository files navigation

Simple Injection Container - .NET9

This is a community asset to accelerate understanding and development Inversion of Control Pattern (IoC) principle.

Summary

This project covers concepts about:

.Net Version

3rd Party NuGet Packages

  • XUnit

Development Tools

  • Visual Studio Code
  • GIT Bash
  • GitHub(Repos, Actions)

How to use it

var builder = new ContainerBuilder();
builder.Register<IFileHandler, MockFileHandler>();
var container = builder.Build();
var fileHandler = container.Resolve<IFileHandler>();

Restore, Build and Test

dotnet restore
dotnet build
dotnet test

You shouldn't find

  • 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.

About

No description, website, or topics provided.

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Languages