public override bool EqualsBusiness(IBusinessComparable comparable) { if (ReferenceEquals(comparable, this)) return true; var other = comparable as StartProcess; if (ReferenceEquals(other, null)) return false; return ProcessName.Equals(other.ProcessName) && Arguments.Equals(other.Arguments); }
public override bool EqualsBusiness(IBusinessComparable comparable) { if (ReferenceEquals(comparable, this)) return true; var other = comparable as MessageInfo; if (ReferenceEquals(other, null)) return false; return Message.Equals(other.Message); }
public override bool EqualsBusiness(IBusinessComparable comparable) { if (ReferenceEquals(comparable, this)) return true; var other = comparable as TaskStatistic; if (ReferenceEquals(other, null)) return false; return Task.Equals(other.Task) && End == other.End && Start == other.Start; }
public override bool EqualsBusiness(IBusinessComparable comparable) { if (ReferenceEquals(this, comparable)) return true; var other = comparable as WiFiSensor; if (ReferenceEquals(other, null)) return false; if (Datasets.Count() != other.Datasets.Count()) return false; var compared = from dataset in Datasets where other.Datasets.Any(set => set.EqualsBusiness(dataset)) select dataset; if (compared.Count() == Datasets.Count()) return true; return false; }