public void CanExecuteSimpleAction()
		{
			DslExecuter executer = new DslExecuter();
			executer.AddParameter("book", new DemoBook());
			object result = executer.Invoke(new ActionExpression("book", "pageTo", "51"));
			Assert.Equal(51, result);
		}
示例#2
0
        public void CanExecuteSimpleAction()
        {
            DslExecuter executer = new DslExecuter();

            executer.AddParameter("book", new DemoBook());
            object result = executer.Invoke(new ActionExpression("book", "pageTo", "51"));

            Assert.Equal(51, result);
        }
示例#3
0
 public void AddParameter(string name, object parameter)
 {
     executer.AddParameter(name, parameter);
 }