Beispiel #1
0
        public override bool Equals(object other)
        {
            if (other == null || other.GetType() != typeof(ProductDefined))
            {
                return(false);
            }

            ProductDefined otherProductDefined = (ProductDefined)other;

            return(this.Name.Equals(otherProductDefined.Name) &&
                   this.Description.Equals(otherProductDefined.Description) &&
                   this.Price == otherProductDefined.Price &&
                   this.EventVersion == otherProductDefined.EventVersion);
        }
Beispiel #2
0
 public void When(ProductDefined e)
 {
     this.Name        = e.Name;
     this.Description = e.Description;
     this.Price       = e.Price;
 }