/// <summary> /// Constructs the SynchronizeAttribute pointing to a service. /// </summary> /// <param name="interceptorType">The service type.</param> public SynchronizeAttribute(Type interceptorType) { interceptorRef = new SynchronizeContextReference(interceptorType); }
/// <summary> /// Constructs the SynchronizeAttribute pointing to a key. /// </summary> /// <param name="componentKey">The component key.</param> public SynchronizeAttribute(String componentKey) { interceptorRef = new SynchronizeContextReference(componentKey); }
/// <summary> /// Constructs the SynchronizeAttribute pointing to a service. /// </summary> /// <param name = "interceptorType">The service type.</param> public SynchronizeAttribute(Type interceptorType) { interceptorReference = new SynchronizeContextReference(interceptorType); }
/// <summary> /// Constructs the SynchronizeAttribute pointing to a key. /// </summary> /// <param name = "componentKey">The component key.</param> public SynchronizeAttribute(String componentKey) { interceptorReference = new SynchronizeContextReference(componentKey); }
public void SynchronizeContextReference_DifferentInstanceSameType_AreEqual() { var sync1 = new SynchronizeContextReference(typeof(string)); var sync2 = new SynchronizeContextReference(typeof(string)); Assert.AreEqual(sync1, sync2); Assert.AreEqual(sync1.GetHashCode(), sync2.GetHashCode()); }
public void SynchronizeContextReference_DifferentInstanceSameKey_AreEqual() { var sync1 = new SynchronizeContextReference("key1"); var sync2 = new SynchronizeContextReference("key1"); Assert.AreEqual(sync1, sync2); Assert.AreEqual(sync1.GetHashCode(), sync2.GetHashCode()); }