public bool Equals(NeuesProduktErgänzt other) { if (ReferenceEquals(null, other)) { return false; } if (ReferenceEquals(this, other)) { return true; } return base.Equals(other) && Equals(other.Bezeichnung, Bezeichnung); }
private void OnNeuesProduktErgänzt(NeuesProduktErgänzt e) { id = e.AggregateRootId; bezeichnung = e.Bezeichnung; }
public Produkt(Guid id, string artikelNummer, string bezeichnung, double preis) { var e = new NeuesProduktErgänzt(id, artikelNummer, bezeichnung, preis); ApplyEvent(e); }