Ejemplo n.º 1
0
        public InventoryItem(Guid id, string name)
        {
            var evt = new InventoryItemCreatedAdded()
            {
                Id = id,
                Name = name
            };

            RaiseEvent(evt);
        }
Ejemplo n.º 2
0
 public bool Equals(InventoryItemCreatedAdded other)
 {
     if (ReferenceEquals(null, other)) return false;
     if (ReferenceEquals(this, other)) return true;
     return other.Id.Equals(Id) && Equals(other.Name, Name);
 }
Ejemplo n.º 3
0
 public void Apply(InventoryItemCreatedAdded e)
 {
     Id = e.Id;
 }