public void CanResolve_SameType_ShouldOk() { var simpleIoc = new SimpleIoc(); simpleIoc.Register(() => new IocBase()); simpleIoc.CanResolve <IocBase>().ShouldTrue(); }
public void Resolve_SameTypeList_ShouldOk() { var simpleIoc = new SimpleIoc(); simpleIoc.Register(() => new List <IocFoo>()); simpleIoc.Resolve <List <IocFoo> >().ShouldNotNull(); simpleIoc.Resolve <IList <IocFoo> >().ShouldNotNull(); simpleIoc.Resolve <IEnumerable <IocFoo> >().ShouldNotNull(); }