Exemplo n.º 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);
        }
Exemplo n.º 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);
        }
Exemplo n.º 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);
        }