Пример #1
0
 public static TenantState BuildStateFromHistory(IEnumerable<Event> events)
 {
     var state = new TenantState();
     foreach (var e in events)
     {
         state.MakeStateRealizeThat((ITenantEvent) e);
     }
     return state;
 }
Пример #2
0
 public TenantAggregate(TenantState state)
 {
     _state = state;
 }