Beispiel #1
0
 private void Apply(UserAdded e)
 {
     SetAggregateId(e.AggregateId.ToUserId());
     _fullName = e.FullName.ToFullName();
 }
Beispiel #2
0
 public static User NewUserFrom(UserId userId, FullName fullName) =>
 (User) new User().ApplyChange(new UserAdded(userId, fullName));