Ejemplo n.º 1
0
        public static DrillingDepartmentState BuildStateFromHistory(IEnumerable<Event> events)
        {
            var state = new DrillingDepartmentState();

            foreach (var e in events)
            {
                state.Mutate((Event) e);
            }
            return state;
        }
 public DrillingDepartmentAggregate(DrillingDepartmentState aggregateState)
 {
     _aggregateState = aggregateState;
 }