StoryTeller.Grammars.SilentAction.AcceptVisitor C# (CSharp) Method

AcceptVisitor() public method

public AcceptVisitor ( ILineStepGatherer gatherer ) : void
gatherer ILineStepGatherer
return void
        public void AcceptVisitor(ILineStepGatherer gatherer)
        {
            gatherer.Line(this);
        }

Usage Example

        public void accept_visitor()
        {
            var executor = MockRepository.GenerateMock<IStepExecutor>();

            var action = new SilentAction("Fixture", Stage.setup, x => { }, new Section("Math"));

            action.AcceptVisitor(executor);

            executor.AssertWasCalled(x => x.Line(action));
        }
All Usage Examples Of StoryTeller.Grammars.SilentAction::AcceptVisitor