Exemplo n.º 1
0
 public static Func<Guid, Aggregate> AggregateReader(Aggregate[] storage)
 {
     return id => storage.SingleOrDefault(aggregate => aggregate.Id == id);
 }