Exemplo n.º 1
0
        void SignFranchiseAgreement(DateTime signingDate)
        {
            if (string.IsNullOrEmpty(this.Entity.TaxId))
            {
                throw new InvalidOperationException("Cannot sign agreement without a tax id.");
            }
            var @event = new FranchiseAgreementSigned(this.Entity.ID, signingDate);

            this.Entity.Apply(@event);
        }
Exemplo n.º 2
0
 public void Apply(FranchiseAgreementSigned @event)
 {
     this.AgreementSigned = true;
     this.DateOfFormation = @event.SignedOnDate;
 }