Visit the Botox website for more information.
Botox is designed to be a ultra light weigth depency injection framework for the .NET portable class libraries.
Registrer a a resolution with an interface:
Botox.Registrer<IFakeClass, FakeClass>(new FakeClass());
Or
Botox.Registrer<IFakeClass>(new FakeClass());
Resolve:
Botox.Resolve<IFakeClass>()
The framework also supports creating instances of objects with constructor injection:
private class FakeClassInjection
{
public readonly IFakeClass fakeClass;
public FakeClassInjection(IFakeClass fakeClass)
{
this.fakeClass = fakeClass;
}
}
var fakeClassInjection = Botox.CreateInstanceOf<FakeClassInjection>();
The project was created due to the lack of injection frameworks available at the time with support for portable class libraries.
The project can be installed easiliy via NuGet or by downloading and compiling the source yourself.
See Lisence.txt