public void ChangeFoo(int newFoo) { var theEvent = new FooChangedEvent(newFoo); RaiseEvent(theEvent); }
private void Apply(FooChangedEvent theEvent) { _fooHolder.Add(theEvent.NewFoo); _fooChangedDate = DateTime.Now; ++_numberOfEventsApplied; }
private void Apply(FooChangedEvent theEvent) { _logicContainer.AddFooHolder(theEvent.NewFoo); _logicContainer.IncrementAppliedEventCount(); }