public void DoesNotMatchePropertySetterWithDifferentName() { var cp = new NamedPropertyParameter(HasInjectionPoints.PropertyName, ""); Func <object> vp; Assert.False(cp.CanSupplyValue(WrongPropertySetValueParameter(), new ContainerBuilder().Build(), out vp)); }
public void MatchesPropertySetterByName() { var cp = new NamedPropertyParameter(HasInjectionPoints.PropertyName, ""); Func <object> vp; Assert.True(cp.CanSupplyValue(PropertySetValueParameter(), new ContainerBuilder().Build(), out vp)); }
public void DoesNotMatchConstructorParameters() { var cp = new NamedPropertyParameter(HasInjectionPoints.PropertyName, ""); Func <object> vp; Assert.IsFalse(cp.CanSupplyValue(ConstructorParameter(), Container.Empty, out vp)); }
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)); }