PageRenderTime 19ms CodeModel.GetById 13ms app.highlight 3ms RepoModel.GetById 1ms app.codeStats 0ms

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

#
C# | 29 lines | 25 code | 4 blank | 0 comment | 0 complexity | 96d08ffdff631e34ba8bd55315fab0c3 MD5 | raw file
 1using Bifrost.Sagas;
 2
 3namespace Bifrost.Fakes.Sagas
 4{
 5    public class SimpleChapter : Chapter
 6    {
 7        public bool OnCreatedWasCalled;
 8        public bool OnSetCurrentWasCalled;
 9        public bool OnTransitionedToWasCalled;
10
11        public override void OnCreated()
12        {
13            base.OnCreated();
14            OnCreatedWasCalled = true;
15        }
16
17        public override void OnSetCurrent()
18        {
19            base.OnSetCurrent();
20            OnSetCurrentWasCalled = true;
21        }
22
23        public override void OnTransitionedTo()
24        {
25            base.OnTransitionedTo();
26            OnTransitionedToWasCalled = true;
27        }
28    }
29}