public static bool AnyInState <TSaga>(this SagaTestSubject <TSaga> subject, State state)
     where TSaga : SagaStateMachine <TSaga>, ISaga
 {
     return(subject.Any(x => x.CurrentState == state));
 }
Esempio n. 2
0
 public SagaTestInstance(TScenario scenario, IList <TestAction <TScenario> > actions,
                         ISagaRepository <TSaga> sagaRepository)
     : base(scenario, actions)
 {
     _subject = new SagaTestSubject <TScenario, TSaga>(sagaRepository);
 }