Esempio n. 1
0
 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);
 }
Esempio n. 2
0
 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);
 }
Esempio n. 3
0
 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;
 }
Esempio n. 4
0
 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;
 }