Esempio n. 1
0
        void RecordAndRealizeThat(IEvent theEvent)
        {
            // we "Record" by "writing down" the Event that happened in our "journal"

            EventsThatHappened.Add(theEvent);

            // and also immediately "Realize" theEvent has happened by changing _aggregateState after we have recorded it

            _aggregateState.MakeAggregateRealize(theEvent);
        }