Beispiel #1
0
        void SellFranchise(DateTime soldOn, string name, string givenName, string surname)
        {
            var @event = new FranchiseSold(this.Entity.ID, soldOn, name, givenName, surname);

            this.Entity.Apply(@event);
        }
Beispiel #2
0
 public void Apply(FranchiseSold @event)
 {
     this.Name  = @event.NewCorporateName;
     this.Owner = new Person(@event.NewOwnerGiveName, @event.NewOwnerSurname);
     this.TaxId = string.Empty;
 }