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