public bool Equals(DsfSendEmailActivity other) { if (ReferenceEquals(null, other)) { return(false); } if (ReferenceEquals(this, other)) { return(true); } var emailSourcesComparer = new EmailSourceComparer(); var emailSourcesAreEqual = emailSourcesComparer.Equals(SelectedEmailSource, other.SelectedEmailSource); var paswordsAreEqual = CommonEqualityOps.PassWordsCompare(Password, other.Password); return(base.Equals(other) && paswordsAreEqual && emailSourcesAreEqual && string.Equals(FromAccount, other.FromAccount) && string.Equals(To, other.To) && string.Equals(Cc, other.Cc) && string.Equals(Bcc, other.Bcc) && Priority == other.Priority && string.Equals(Subject, other.Subject) && string.Equals(Attachments, other.Attachments) && string.Equals(Body, other.Body) && IsHtml == other.IsHtml && string.Equals(Result, other.Result)); }
#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)); }
#pragma warning disable S1541 // Methods and properties should not be too complex public bool Equals(IEnhancedPlugin x, IEnhancedPlugin y) #pragma warning restore S1541 // Methods and properties should not be too complex { if (x == null && y == null) { return(true); } if (x == null || y == null) { return(false); } bool nameSpacesAreEqual; if (x.Namespace != null && y.Namespace != null) { nameSpacesAreEqual = string.Equals(x.Namespace.AssemblyLocation, y.Namespace.AssemblyLocation) && string.Equals(x.Namespace.AssemblyName, y.Namespace.AssemblyName) && string.Equals(x.Namespace.FullName, y.Namespace.FullName) && string.Equals(x.Namespace.JsonObject, y.Namespace.JsonObject) && string.Equals(x.Namespace.MethodName, y.Namespace.MethodName); } else { nameSpacesAreEqual = x.Namespace == null && y.Namespace == null; } var serviceInputsEquals = CommonEqualityOps.CollectionEquals(x.ConstructorInputs, y.ConstructorInputs, new ServiceInputComparer()); var methodsEquals = CommonEqualityOps.CollectionEquals(x.MethodsToRun, y.MethodsToRun, new PluginActionComparer()); var constructorComparer = new PluginConstructorComparer(); var constructorEquals = constructorComparer.Equals(x.Constructor, y.Constructor); return(nameSpacesAreEqual && serviceInputsEquals && methodsEquals && constructorEquals); }
public bool Equals(Dev2Decision other) { if (other is null) { return(false); } if (ReferenceEquals(this, other)) { return(true); } var cols1Equal = CommonEqualityOps.CollectionEquals(Cols1, other.Cols1, new WarewolfAtomComparer()); var cols2Equal = CommonEqualityOps.CollectionEquals(Cols2, other.Cols2, new WarewolfAtomComparer()); var cols3Equal = CommonEqualityOps.CollectionEquals(Cols3, other.Cols3, new WarewolfAtomComparer()); var isEqual = string.Equals(Col1, other.Col1); isEqual &= string.Equals(Col2, other.Col2); isEqual &= string.Equals(Col3, other.Col3); isEqual &= cols1Equal; isEqual &= cols2Equal; isEqual &= cols3Equal; isEqual &= EvaluationFn == other.EvaluationFn; return(isEqual); }
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 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(IPluginConstructor x, IPluginConstructor y) #pragma warning restore S1541 // Methods and properties should not be too complex { if (x == null && y == null) { return(true); } if (x == null || y == null) { return(false); } var methodsAreEqual = Equals(x.ID, y.ID) && string.Equals(x.ConstructorName, y.ConstructorName) && string.Equals(x.ReturnObject, y.ReturnObject) && Equals(x.IsExistingObject, y.IsExistingObject) && CommonEqualityOps.CollectionEquals(x.Inputs, y.Inputs, EqualityFactory.GetEqualityComparer <IConstructorParameter>( (parameter, constructorParameter) => string.Equals(parameter.Name, constructorParameter.Name) && string.Equals(parameter.Value, constructorParameter.Value) && Equals(parameter.EmptyToNull, constructorParameter.EmptyToNull) && Equals(parameter.Dev2ReturnType, constructorParameter.Dev2ReturnType), parameter => 1)); return(methodsAreEqual); }
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); }
#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); }
#pragma warning disable S1541 // Methods and properties should not be too complex public bool Equals(IPluginAction x, IPluginAction y) #pragma warning restore S1541 // Methods and properties should not be too complex { if (x == null && y == null) { return(true); } if (x == null || y == null) { return(false); } var methodsAreEqual = string.Equals(x.Method, y.Method) && string.Equals(x.Dev2ReturnType, y.Dev2ReturnType) && string.Equals(x.ErrorMessage, y.ErrorMessage) && string.Equals(x.FullName, y.FullName) && string.Equals(x.MethodResult, y.MethodResult) && string.Equals(x.OutputVariable, y.OutputVariable) && x.ReturnType == y.ReturnType && Equals(x.HasError, y.HasError) && Equals(x.IsObject, y.IsObject) && Equals(x.IsProperty, y.IsProperty) && Equals(x.IsVoid, y.IsVoid) && Equals(x.ID, y.ID) && CommonEqualityOps.CollectionEquals(x.Inputs, y.Inputs, new ServiceInputComparer()); return(methodsAreEqual); }
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)); }
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_AreObjectsEqualUnSafe_Objects_ReturnTrue() { string str = default(string); string strB = default(string); var handlerActivityIsEqual = CommonEqualityOps.AreObjectsEqualUnSafe(str, strB); Assert.IsTrue(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 void CommonEqualityOps_CollectionEquals_ReturnTrue() { var TheStack = new List <Dev2Decision>(); var dev2Decision = new Dev2Decision { Col1 = "Col1" }; TheStack.Add(dev2Decision); var collectionEquals = CommonEqualityOps.CollectionEquals(TheStack, TheStack, new Dev2DecisionComparer()); Assert.IsTrue(collectionEquals); }
public void CommonEqualityOps_CollectionEquals__BothObjectsareNull_ReturnTrue() { var TheStack = new List <Dev2Decision>(); TheStack = null; var TheOtherStack = new List <Dev2Decision>(); TheOtherStack = null; var collectionEquals = CommonEqualityOps.CollectionEquals(TheStack, TheOtherStack, new Dev2DecisionComparer()); Assert.IsTrue(collectionEquals); }
public bool Equals(IComplexObjectItemModel other) { var equals = Equals(IsArray, other.IsArray); equals &= Equals(HasError, other.HasError); equals &= Equals(Input, other.Input); equals &= Equals(Output, other.Output); equals &= string.Equals(Name, other.Name); var collectionEquals = CommonEqualityOps.CollectionEquals(Children, other.Children, new ComplexObjectItemModelComparer()); return(base.Equals(other) && equals && collectionEquals); }
public bool Equals(DsfSequenceActivity other) { if (ReferenceEquals(null, other)) { return(false); } if (ReferenceEquals(this, other)) { return(true); } return(base.Equals(other) && CommonEqualityOps.CollectionEquals(Activities, other.Activities, new ActivityComparer())); }
public bool Equals(DsfGatherSystemInformationActivity other) { if (ReferenceEquals(null, other)) { return(false); } if (ReferenceEquals(this, other)) { return(true); } return(base.Equals(other) && CommonEqualityOps.CollectionEquals(SystemInformationCollection, other.SystemInformationCollection, new GatherSystemInformationTOComparer())); }
public bool Equals(DsfCaseConvertActivity other) { if (ReferenceEquals(null, other)) { return(false); } if (ReferenceEquals(this, other)) { return(true); } var collectionEquals = CommonEqualityOps.CollectionEquals(ConvertCollection, other.ConvertCollection, new CaseConvertToComparer()); return(base.Equals(other) && collectionEquals); }
public bool Equals(IDataSourceShape other) { if (ReferenceEquals(null, other)) { return(false); } if (ReferenceEquals(this, other)) { return(true); } var collectionEquals = CommonEqualityOps.CollectionEquals(Paths, other.Paths, EqualityFactory.GetEqualityComparer <IPath>(EqualsMethod, GetHashCodeMethod)); return(collectionEquals); }
public bool Equals(DsfDataMergeActivity other) { if (ReferenceEquals(null, other)) { return(false); } if (ReferenceEquals(this, other)) { return(true); } var mergeCollsAreEqual = CommonEqualityOps.CollectionEquals(MergeCollection, other.MergeCollection, new DataMergeDtoComparer()); return(base.Equals(other) && string.Equals(Result, other.Result) && mergeCollsAreEqual); }
public bool Equals(WebGetActivity other) { if (other is null) { return(false); } if (ReferenceEquals(this, other)) { return(true); } var headersAreEqual = CommonEqualityOps.CollectionEquals(Headers, other.Headers, new NameValueComparer()); return(base.Equals(other) && headersAreEqual && string.Equals(QueryString, other.QueryString) && Equals(OutputDescription, other.OutputDescription)); }
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(Dev2DecisionStack other) { if (ReferenceEquals(null, other)) { return(false); } if (ReferenceEquals(this, other)) { return(true); } var collectionEquals = CommonEqualityOps.CollectionEquals(TheStack, other.TheStack, new Dev2DecisionComparer()); return(collectionEquals && Mode == other.Mode && string.Equals(TrueArmText, other.TrueArmText) && string.Equals(FalseArmText, other.FalseArmText) && string.Equals(DisplayText, other.DisplayText)); }
public void CommonEqualityOps_CollectionEquals__OneObjectsIsNull_ReturnFalse() { var TheStack = new List <Dev2Decision>(); var dev2Decision = new Dev2Decision { Col1 = "Col1" }; TheStack.Add(dev2Decision); var TheOtherStack = new List <Dev2Decision>(); TheOtherStack = null; var collectionEquals = CommonEqualityOps.CollectionEquals(TheStack, TheOtherStack, new Dev2DecisionComparer()); Assert.IsFalse(collectionEquals); collectionEquals = CommonEqualityOps.CollectionEquals(TheOtherStack, TheStack, new Dev2DecisionComparer()); Assert.IsFalse(collectionEquals); }
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)); }