Example #1
0
        public void ChangeFoo(int newFoo)
        {
            var theEvent = new FooChangedEvent(newFoo);

            RaiseEvent(theEvent);
        }
Example #2
0
 private void Apply(FooChangedEvent theEvent)
 {
     _fooHolder.Add(theEvent.NewFoo);
     _fooChangedDate = DateTime.Now;
     ++_numberOfEventsApplied;
 }
 private void Apply(FooChangedEvent theEvent)
 {
     _logicContainer.AddFooHolder(theEvent.NewFoo);
     _logicContainer.IncrementAppliedEventCount();
 }