Пример #1
0
        public override bool Equals(object obj)
        {
            var other = obj as CustomerNameChanged;

            if (other == null)
            {
                return(false);
            }
            bool result = EventIdentifier.Equals(other.EventIdentifier) &&
                          EventSourceId.Equals(other.EventSourceId) &&
                          EventSequence.Equals(other.EventSequence) &&
                          EventTimeStamp.Equals(other.EventTimeStamp) &&
                          CustomerId.Equals(other.CustomerId) &&
                          NewName.Equals(other.NewName);

            return(result);
        }
Пример #2
0
        public override bool Equals(object obj)
        {
            var other = obj as CustomerCreatedEvent;

            if (other == null)
            {
                return(false);
            }
            bool result = EventIdentifier.Equals(other.EventIdentifier) &&
                          EventSourceId.Equals(other.EventSourceId) &&
                          EventSequence.Equals(other.EventSequence) &&
                          EventTimeStamp.Equals(other.EventTimeStamp) &&
                          Name.Equals(other.Name) &&
                          Age.Equals(other.Age);

            return(result);
        }
Пример #3
0
        public override bool Equals(object obj)
        {
            var other = obj as AccountTitleChangedEvent;

            if (other == null)
            {
                return(false);
            }
            bool result = EventIdentifier.Equals(other.EventIdentifier) &&
                          EventSourceId.Equals(other.EventSourceId) &&
                          EntityId.Equals(other.EntityId) &&
                          EventSequence.Equals(other.EventSequence) &&
                          EventTimeStamp.Equals(other.EventTimeStamp) &&
                          NewTitle.Equals(other.NewTitle);

            return(result);
        }