/Source/Bifrost.Fakes/Sagas/SimpleChapter.cs

# · C# · 29 lines · 25 code · 4 blank · 0 comment · 0 complexity · 96d08ffdff631e34ba8bd55315fab0c3 MD5 · raw file

  1. using Bifrost.Sagas;
  2. namespace Bifrost.Fakes.Sagas
  3. {
  4. public class SimpleChapter : Chapter
  5. {
  6. public bool OnCreatedWasCalled;
  7. public bool OnSetCurrentWasCalled;
  8. public bool OnTransitionedToWasCalled;
  9. public override void OnCreated()
  10. {
  11. base.OnCreated();
  12. OnCreatedWasCalled = true;
  13. }
  14. public override void OnSetCurrent()
  15. {
  16. base.OnSetCurrent();
  17. OnSetCurrentWasCalled = true;
  18. }
  19. public override void OnTransitionedTo()
  20. {
  21. base.OnTransitionedTo();
  22. OnTransitionedToWasCalled = true;
  23. }
  24. }
  25. }