Esempio n. 1
0
 public override bool Equals(TreeEvent obj) => this.Compare(obj, rhs => _hashCode == rhs._hashCode &&
                                                            Consuming == rhs.Consuming &&
                                                            EventId == rhs.EventId &&
                                                            TemplateId == rhs.TemplateId &&
                                                            ContractId == rhs.ContractId &&
                                                            Choice == rhs.Choice &&
                                                            ChoiceArgument == rhs.ChoiceArgument &&
                                                            ExerciseResult == rhs.ExerciseResult &&
                                                            !WitnessParties.Except(rhs.WitnessParties).Any() &&
                                                            !ActingParties.Except(rhs.ActingParties).Any());
Esempio n. 2
0
 public override bool Equals(TreeEvent obj) => this.Compare(obj, rhs => _hashCode == rhs._hashCode &&
                                                            EventId == rhs.EventId &&
                                                            TemplateId == rhs.TemplateId &&
                                                            ContractId == rhs.ContractId &&
                                                            Arguments == rhs.Arguments &&
                                                            AgreementText == rhs.AgreementText &&
                                                            ContractKey == rhs.ContractKey &&
                                                            !WitnessParties.Except(rhs.WitnessParties).Any() &&
                                                            !Signatories.Except(rhs.Signatories).Any() &&
                                                            !Observers.Except(rhs.Observers).Any());
Esempio n. 3
0
 public bool Equals(IEvent obj) => this.Compare(obj, rhs => _hashCode == rhs._hashCode && EventId == rhs.EventId && TemplateId == rhs.TemplateId && ContractId == rhs.ContractId && !WitnessParties.Except(rhs.WitnessParties).Any());