コード例 #1
0
        public void ChangeFoo(int newFoo)
        {
            var theEvent = new FooChangedEvent(newFoo);

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