コード例 #1
0
 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);
 }
コード例 #2
0
ファイル: Actor.cs プロジェクト: RhodeHummel/CSF.Screenplay
        /// <summary>
        /// Invokes the begin-when event.
        /// </summary>
        protected virtual void InvokeBeginWhen()
        {
            var args = new ActorEventArgs(this);

            BeginWhen?.Invoke(this, args);
        }
コード例 #3
0
 public void Visit(BeginWhen instruction)
 {
     _ignores.Push(instruction);
 }