public void SetUp()
 {
     theInstruction = new BeginWhen();
     theSettings    = new HistorySettings();
     theServices    = new InMemoryServiceLocator();
     theServices.Add(theSettings);
     theServices.Add <IActEntryConditionRegistry>(new ActEntryConditionRegistry());
     theContext = new ActEntryConditionContext(new WorkflowObject(), theServices);
 }
Esempio n. 2
0
        /// <summary>
        /// Invokes the begin-when event.
        /// </summary>
        protected virtual void InvokeBeginWhen()
        {
            var args = new ActorEventArgs(this);

            BeginWhen?.Invoke(this, args);
        }
Esempio n. 3
0
 public void Visit(BeginWhen instruction)
 {
     _ignores.Push(instruction);
 }