public void a_type_registered_with_the_parent_should_be_resolved() { ParentKernel.Bind <ISimple>().To <Simple>(); var simple = Kernel.Get <ISimple>(); simple.ShouldNotBeNull(); simple.ShouldBeOfType <Simple>(); }
public void a_type_registered_with_both_kernels_should_be_resolved() { ParentKernel.Bind <ISimple>().To <Simple>(); Kernel.Bind <ISimple>().To <Simple>(); var simpleList = Kernel.GetAll <ISimple>(); simpleList.ShouldHaveCountOf(2); }