public static void AreSame(this WfClientKeyedDescriptorBase c, IWfKeyedDescriptor s) { Assert.IsNotNull(c); Assert.IsNotNull(s); Assert.AreEqual(c.Key, s.Key); Assert.AreEqual(c.Name, s.Name); Assert.AreEqual(c.Description, s.Description); }
public static void AssertCollection(this IEnumerable <WfClientKeyedDescriptorBase> cvc, IEnumerable <IWfKeyedDescriptor> svc) { Assert.AreEqual(cvc.Count(), svc.Count()); foreach (WfClientKeyedDescriptorBase c in cvc) { IWfKeyedDescriptor serverObj = svc.Where(s => s.Key == c.Key).First(); c.AreSame(serverObj); } }
private IWfKeyedDescriptor GetOwner() { IWfKeyedDescriptor result = null; if (this.ProcessInstance != null) { result = this.ProcessInstance.Descriptor; } return(result); }
public WfConditionDescriptor(IWfKeyedDescriptor owner) { this._Owner = owner; }
public WfConditionDescriptor(IWfKeyedDescriptor owner) { this._Owner = owner; }
public static void AreSame(this WfClientKeyedDescriptorBase c, IWfKeyedDescriptor s) { Assert.IsNotNull(c); Assert.IsNotNull(s); Assert.AreEqual(c.Key, s.Key); Assert.AreEqual(c.Name, s.Name); Assert.AreEqual(c.Description, s.Description); }