コード例 #1
0
        public void StandardResolver_WithCtorParam_ReturnsTestInstance()
        {
            _container.Bind <IEmptyClass>().To <EmptyCtorClass>();
            var resolver = new StandardResolver(typeof(OneParamCtorClass), _container);
            var result   = resolver.Resolve(new Request(typeof(IParamClass))) as OneParamCtorClass;

            Assert.IsNotNull(result);
            Assert.IsTrue(result.CtorParam is EmptyCtorClass);
        }