public void ShouldResolveTypeWithOneParameterlessCtor() { Sioc container = new Sioc(); container.Register<IInterface, ConcreteWithOneParameterlessCtor>(); var concrete = container.Resolve<IInterface>(); Assert.AreEqual(typeof(ConcreteWithOneParameterlessCtor), concrete.GetType()); }
public void ShouldThrowInterfaceNotFoundException() { Sioc container = new Sioc(); Assert.Throws<InterfaceNotFoundException>(() => container.Resolve<IInterface>()); }