Пример #1
0
        public TypeDescription GetDescription(Type type)
        {
            // get type description or cache it if the given type wasn't encountered before
            TypeDescription description;

            _descriptionsCache.TryGetValue(type, out description);
            if (description == null)
            {
                description = _reflector.DescribeInjections(type);
                _descriptionsCache.Add(type, description);
            }
            return(description);
        }
Пример #2
0
 public TypeDescription GetTypeDescription(Type type)
 {
     return(_reflector.DescribeInjections(type));
 }
Пример #3
0
        public void ReflectorReturnsCorrectCtorInjectionPointForParamsCtor()
        {
            Assert.True(true);
            InjectionPoint injectionPoint = reflector.DescribeInjections(typeof(OneParameterConstructorInjectee)).ctor;

            Assert.True(injectionPoint is ConstructorInjectionPoint, "reflector-returned injectionPoint is ctor injectionPoint");
        }