Example #1
0
        public override bool Equals(object obj)
        {
            var other = obj as CustomerNameChanged;

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

            return(result);
        }
Example #2
0
        public override bool Equals(object obj)
        {
            var other = obj as CustomerCreatedEvent;

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

            return(result);
        }
Example #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);
        }