public void TestRemoveFromSingleSemibinding() { semibinding.constraint = BindingConstraintType.ONE; ClassWithConstructorParameters o = new ClassWithConstructorParameters(42, "abc"); semibinding.Add(o); ClassWithConstructorParameters value = semibinding.value as ClassWithConstructorParameters; Assert.AreEqual(o, value); Assert.AreEqual(42, value.intValue); semibinding.Remove(o); Assert.IsNull(semibinding.value); }
/// Remove the promise to supply this binding to Type type public IInjectionBinding Unsupply(Type type) { supplyList.Remove(type); return(this); }
virtual public void RemoveName(object o) { _name.Remove(o); }
virtual public void RemoveValue(object o) { _value.Remove(o); }
virtual public void RemoveKey(object o) { _key.Remove(o); }