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);
        }
Exemple #2
0
 public void Apply(FranchiseSold @event)
 {
     this.Name  = @event.NewCorporateName;
     this.Owner = new Person(@event.NewOwnerGiveName, @event.NewOwnerSurname);
     this.TaxId = string.Empty;
 }