Example #1
0
 public static TRoot Create <TRoot>(this IAggregateRootRepository <TRoot> repository, Action <TRoot> initialize)
     where TRoot : IAggregateRoot
 {
     return(repository.Create(1, roots => initialize(roots[0]))[0]);
 }