Esempio n. 1
0
        public override bool Equals(object other)
        {
            if (other == null || other.GetType() != typeof(ProductNameChanged))
            {
                return(false);
            }

            ProductNameChanged otherProductNameChanged = (ProductNameChanged)other;

            return(this.Name.Equals(otherProductNameChanged.Name) &&
                   this.EventVersion == otherProductNameChanged.EventVersion);
        }
Esempio n. 2
0
 public void When(ProductNameChanged e)
 {
     this.Name = e.Name;
 }