Пример #1
0
 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);
 }
Пример #2
0
 private void OnNeuesProduktErgänzt(NeuesProduktErgänzt e) {
     id = e.AggregateRootId;
     bezeichnung = e.Bezeichnung;
 }
Пример #3
0
 public Produkt(Guid id, string artikelNummer, string bezeichnung, double preis) {
     var e = new NeuesProduktErgänzt(id, artikelNummer, bezeichnung, preis);
     ApplyEvent(e);
 }