public void test_Register_AddsAnEntryToTypeRegistry() { systemUnderTest.Register <IInterface2, Class2>(); Assert.That(typeRegistry, Is.Not.Empty); }
public DiControllerFactory() { iocContainer = new InversionOfControlContainer(); iocContainer.Register <Interface1, Class1>(); iocContainer.Register <Controller, Controllers.MyController>(); }