/Source/Bifrost.Fakes/Sagas/SimpleChapter.cs
# · C# · 29 lines · 25 code · 4 blank · 0 comment · 0 complexity · 96d08ffdff631e34ba8bd55315fab0c3 MD5 · raw file
- using Bifrost.Sagas;
-
- namespace Bifrost.Fakes.Sagas
- {
- public class SimpleChapter : Chapter
- {
- public bool OnCreatedWasCalled;
- public bool OnSetCurrentWasCalled;
- public bool OnTransitionedToWasCalled;
-
- public override void OnCreated()
- {
- base.OnCreated();
- OnCreatedWasCalled = true;
- }
-
- public override void OnSetCurrent()
- {
- base.OnSetCurrent();
- OnSetCurrentWasCalled = true;
- }
-
- public override void OnTransitionedTo()
- {
- base.OnTransitionedTo();
- OnTransitionedToWasCalled = true;
- }
- }
- }