Inheritance: IClientProfileState
        public static ClientProfileState BuildStateFromEventHistory(IEnumerable<Event> events)
        {
            var aggState = new ClientProfileState();

            foreach (var eventThatHappened in events)
            {
                aggState.MakeStateRealize((IClientProfileEvent)eventThatHappened);
            }
            return aggState;
        }
Exemple #2
0
        public static ClientProfileState BuildStateFromEventHistory(IEnumerable <Event> events)
        {
            var aggState = new ClientProfileState();

            foreach (var eventThatHappened in events)
            {
                aggState.MakeStateRealize((IClientProfileEvent)eventThatHappened);
            }
            return(aggState);
        }
Exemple #3
0
 public ClientProfileAggregate(ClientProfileState aggStateBeforeChanges)
 {
     _aggState = aggStateBeforeChanges;
 }
 public ClientProfileAggregate(ClientProfileState aggStateBeforeChanges)
 {
     _aggState = aggStateBeforeChanges;
 }