public bool Equals(DsfDropboxFileListActivity other) { if (other is null) { return(false); } if (ReferenceEquals(this, other)) { return(true); } var isSourceEqual = CommonEqualityOps.AreObjectsEqual <IResource>(SelectedSource, other.SelectedSource); var eq = base.Equals(other); eq &= isSourceEqual; eq &= Files.SequenceEqual(other.Files, StringComparer.Ordinal); eq &= IncludeMediaInfo == other.IncludeMediaInfo; eq &= IsRecursive == other.IsRecursive; eq &= IncludeDeleted == other.IncludeDeleted; eq &= string.Equals(ToPath, other.ToPath); eq &= string.Equals(DisplayName, other.DisplayName); eq &= IsFilesSelected == other.IsFilesSelected; eq &= IsFoldersSelected == other.IsFoldersSelected; eq &= IsFilesAndFoldersSelected == other.IsFilesAndFoldersSelected; return(eq); }
public bool Equals(SharepointCopyFileActivity other) { if (ReferenceEquals(null, other)) { return(false); } if (ReferenceEquals(this, other)) { return(true); } var isSourceEqual = CommonEqualityOps.AreObjectsEqual <IResource>(SharepointSource, other.SharepointSource); var eq = base.Equals(other); eq &= string.Equals(ServerInputPathFrom, other.ServerInputPathFrom); eq &= string.Equals(ServerInputPathTo, other.ServerInputPathTo); eq &= string.Equals(DisplayName, other.DisplayName); eq &= Overwrite == other.Overwrite; eq &= isSourceEqual; eq &= SharepointServerResourceId.Equals(other.SharepointServerResourceId); return(eq); }
#pragma warning disable S1541 // Methods and properties should not be too complex public bool Equals(DsfExchangeEmailNewActivity other) #pragma warning restore S1541 // Methods and properties should not be too complex { if (other is null) { return(false); } if (ReferenceEquals(this, other)) { return(true); } var isSourceEqual = CommonEqualityOps.AreObjectsEqual(SavedSource, other.SavedSource); return(base.Equals(other) && isSourceEqual && string.Equals(To, other.To) && string.Equals(Cc, other.Cc) && string.Equals(Bcc, other.Bcc) && string.Equals(Subject, other.Subject) && string.Equals(Attachments, other.Attachments) && string.Equals(Body, other.Body) && IsHtml == other.IsHtml && string.Equals(DisplayName, other.DisplayName) && string.Equals(Result, other.Result)); }
public bool Equals(DsfConsumeRabbitMQActivity other) { if (ReferenceEquals(null, other)) { return(false); } if (ReferenceEquals(this, other)) { return(true); } var isSourceEqual = CommonEqualityOps.AreObjectsEqual <IResource>(RabbitSource, other.RabbitSource); return(base.Equals(other) && string.Equals(Result, other.Result) && Prefetch == other.Prefetch && TimeOut == other.TimeOut && IsObject == other.IsObject && string.Equals(ObjectName, other.ObjectName) && RabbitMQSourceResourceId.Equals(other.RabbitMQSourceResourceId) && string.Equals(QueueName, other.QueueName) && string.Equals(DisplayName, other.DisplayName) && string.Equals(Response, other.Response) && string.Equals(Prefetch, other.Prefetch) && Acknowledge == other.Acknowledge && string.Equals(TimeOut, other.TimeOut) && ReQueue == other.ReQueue && isSourceEqual); }
public bool Equals(DsfExchangeEmailActivity other) { if (ReferenceEquals(null, other)) { return(false); } if (ReferenceEquals(this, other)) { return(true); } var isSourceEqual = CommonEqualityOps.AreObjectsEqual(SavedSource, other.SavedSource); return(base.Equals(other) && isSourceEqual && string.Equals(To, other.To) && string.Equals(Cc, other.Cc) && string.Equals(Bcc, other.Bcc) && string.Equals(Subject, other.Subject) && string.Equals(Attachments, other.Attachments) && string.Equals(Body, other.Body) && string.Equals(DisplayName, other.DisplayName) && string.Equals(Result, other.Result)); }
#pragma warning disable S1541 // Methods and properties should not be too complex public bool Equals(DsfPublishRabbitMQActivity other) #pragma warning restore S1541 // Methods and properties should not be too complex { if (ReferenceEquals(null, other)) { return(false); } if (ReferenceEquals(this, other)) { return(true); } var isSourceEqual = CommonEqualityOps.AreObjectsEqual <IResource>(RabbitMQSource, other.RabbitMQSource); return(base.Equals(other) && RabbitMQSourceResourceId.Equals(other.RabbitMQSourceResourceId) && string.Equals(QueueName, other.QueueName) && IsDurable == other.IsDurable && IsExclusive == other.IsExclusive && IsAutoDelete == other.IsAutoDelete && string.Equals(Message, other.Message) && string.Equals(DisplayName, other.DisplayName) && isSourceEqual); }
public bool Equals(DsfDropboxFileListActivity other) { if (ReferenceEquals(null, other)) { return(false); } if (ReferenceEquals(this, other)) { return(true); } var isSourceEqual = CommonEqualityOps.AreObjectsEqual <IResource>(SelectedSource, other.SelectedSource); return(base.Equals(other) && isSourceEqual && Files.SequenceEqual(other.Files, StringComparer.Ordinal) && IncludeMediaInfo == other.IncludeMediaInfo && IsRecursive == other.IsRecursive && IncludeDeleted == other.IncludeDeleted && string.Equals(ToPath, other.ToPath) && string.Equals(DisplayName, other.DisplayName) && IsFilesSelected == other.IsFilesSelected && IsFoldersSelected == other.IsFoldersSelected && IsFilesAndFoldersSelected == other.IsFilesAndFoldersSelected); }
public bool Equals(DsfSqlBulkInsertActivity other) { if (ReferenceEquals(null, other)) { return(false); } if (ReferenceEquals(this, other)) { return(true); } var isSourceEqual = CommonEqualityOps.AreObjectsEqual <IResource>(Database, other.Database); var collectionEquals = CommonEqualityOps.CollectionEquals(InputMappings, other.InputMappings, new DataColumnMappingComparer()); var isEqual = base.Equals(other); isEqual &= collectionEquals; isEqual &= isSourceEqual; isEqual &= collectionEquals; isEqual &= string.Equals(TableName, other.TableName); isEqual &= string.Equals(Result, other.Result); isEqual &= CheckConstraints == other.CheckConstraints; isEqual &= FireTriggers == other.FireTriggers; isEqual &= UseInternalTransaction == other.UseInternalTransaction; isEqual &= KeepIdentity == other.KeepIdentity; isEqual &= KeepTableLock == other.KeepTableLock; isEqual &= string.Equals(Timeout, other.Timeout); isEqual &= string.Equals(BatchSize, other.BatchSize); isEqual &= IgnoreBlankRows == other.IgnoreBlankRows; return(isEqual); }
public void CommonEqualityOps_AreObjectsEqual_Objects_ReturnFalse() { string str = default(string); string strB = "asd"; var handlerActivityIsEqual = CommonEqualityOps.AreObjectsEqual(str, strB); Assert.IsFalse(handlerActivityIsEqual); }
public void CommonEqualityOps_AreObjectsEqual_ReturnTrue() { var _name = "workflowName"; var _path = "resourcePath"; var _match = "Input"; var searchVal = new SearchResult(Guid.NewGuid(), _name, _path, SearchItemType.WorkflowName, _match); var otherSearchVal = new SearchResult(Guid.NewGuid(), _name, _path, SearchItemType.WorkflowName, _match); var areConditionsEqual = CommonEqualityOps.AreObjectsEqual(searchVal.Name, otherSearchVal.Name); Assert.IsTrue(areConditionsEqual); }
public bool Equals(DsfDropBoxDeleteActivity other) { if (ReferenceEquals(null, other)) { return(false); } if (ReferenceEquals(this, other)) { return(true); } var isSourceEqual = CommonEqualityOps.AreObjectsEqual <IResource>(SelectedSource, other.SelectedSource); return(base.Equals(other) && isSourceEqual && string.Equals(DisplayName, other.DisplayName) && string.Equals(DeletePath, other.DeletePath)); }
public bool Equals(SharepointFileUploadActivity other) { if (ReferenceEquals(null, other)) { return(false); } if (ReferenceEquals(this, other)) { return(true); } var isSourceEqual = CommonEqualityOps.AreObjectsEqual <IResource>(SharepointSource, other.SharepointSource); return(base.Equals(other) && string.Equals(ServerInputPath, other.ServerInputPath) && string.Equals(LocalInputPath, other.LocalInputPath) && isSourceEqual && SharepointServerResourceId.Equals(other.SharepointServerResourceId)); }
public bool Equals(DsfDropBoxDownloadActivity other) { if (other is null) { return(false); } if (ReferenceEquals(this, other)) { return(true); } var isSourceEqual = CommonEqualityOps.AreObjectsEqual <IResource>(SelectedSource, other.SelectedSource); return(base.Equals(other) && isSourceEqual && string.Equals(ToPath, other.ToPath) && string.Equals(DisplayName, other.DisplayName) && OverwriteFile == other.OverwriteFile && string.Equals(FromPath, other.FromPath)); }
public bool Equals(DsfDropBoxUploadActivity other) { if (ReferenceEquals(null, other)) { return(false); } if (ReferenceEquals(this, other)) { return(true); } var isSourceEqual = CommonEqualityOps.AreObjectsEqual <IResource>(SelectedSource, other.SelectedSource); return(base.Equals(other) && isSourceEqual && string.Equals(FromPath, other.FromPath) && string.Equals(DisplayName, other.DisplayName) && Equals(OverWriteMode, other.OverWriteMode) && Equals(AddMode, other.AddMode) && string.Equals(ToPath, other.ToPath)); }
public bool Equals(DsfDecision other) { if (ReferenceEquals(null, other)) { return(false); } if (ReferenceEquals(this, other)) { return(true); } var areConditionsEqual = CommonEqualityOps.AreObjectsEqual(Conditions, other.Conditions); if (!areConditionsEqual) { return(false); } return(string.Equals(DisplayName, other.DisplayName) && string.Equals(Result, other.Result) && And == other.And && Equals(UniqueID, other.UniqueID)); }
public bool Equals(DsfDropBoxDownloadActivity other) { if (other is null) { return(false); } if (ReferenceEquals(this, other)) { return(true); } var isSourceEqual = CommonEqualityOps.AreObjectsEqual <IResource>(SelectedSource, other.SelectedSource); #pragma warning disable S1067 // Expressions should not be too complex return(base.Equals(other) && isSourceEqual && string.Equals(ToPath, other.ToPath) && string.Equals(DisplayName, other.DisplayName) && OverwriteFile == other.OverwriteFile && string.Equals(FromPath, other.FromPath)); #pragma warning restore S1067 // Expressions should not be too complex }
public bool Equals(DsfPublishRabbitMQActivity other) { if (ReferenceEquals(null, other)) { return(false); } if (ReferenceEquals(this, other)) { return(true); } var isSourceEqual = CommonEqualityOps.AreObjectsEqual <IResource>(RabbitMQSource, other.RabbitMQSource); return(base.Equals(other) && RabbitMQSourceResourceId.Equals(other.RabbitMQSourceResourceId) && string.Equals(QueueName, other.QueueName) && IsDurable == other.IsDurable && IsExclusive == other.IsExclusive && IsAutoDelete == other.IsAutoDelete && string.Equals(Message, other.Message) && string.Equals(DisplayName, other.DisplayName) && isSourceEqual); }
public bool Equals(DataColumnMapping x, DataColumnMapping y) => CommonEqualityOps.AreObjectsEqual(x, y);