Exemple #1
0
 public static Company CreateNewEntry(string companyName, string vatIndex)
 {
     var p = new Company();
     var e = new CompanyRegisteredEvent(Guid.NewGuid(), companyName, vatIndex);
     p.RaiseEvent(e);
     return p;
 }