Beispiel #1
0
        public void DoesNotMatchePropertySetterWithDifferentName()
        {
            var           cp = new NamedPropertyParameter(HasInjectionPoints.PropertyName, "");
            Func <object> vp;

            Assert.False(cp.CanSupplyValue(WrongPropertySetValueParameter(), new ContainerBuilder().Build(), out vp));
        }
Beispiel #2
0
        public void MatchesPropertySetterByName()
        {
            var           cp = new NamedPropertyParameter(HasInjectionPoints.PropertyName, "");
            Func <object> vp;

            Assert.True(cp.CanSupplyValue(PropertySetValueParameter(), new ContainerBuilder().Build(), out vp));
        }
Beispiel #3
0
        public void DoesNotMatchConstructorParameters()
        {
            var           cp = new NamedPropertyParameter(HasInjectionPoints.PropertyName, "");
            Func <object> vp;

            Assert.IsFalse(cp.CanSupplyValue(ConstructorParameter(), Container.Empty, out vp));
        }
Beispiel #4
0
        public void DoesNotMatchRegularMethodParameters()
        {
            var           cp = new NamedPropertyParameter(HasInjectionPoints.PropertyName, "");
            Func <object> vp;

            Assert.False(cp.CanSupplyValue(MethodParameter(), new ContainerBuilder().Build(), out vp));
        }
        public void DoesNotMatchConstructorParameters()
        {
            var cp = new NamedPropertyParameter(HasInjectionPoints.PropertyName, "");

            Assert.False(cp.CanSupplyValue(ConstructorParameter(), new ContainerBuilder().Build(), out Func <object> vp));
        }