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); }
public void AddParameter(string name, object parameter) { executer.AddParameter(name, parameter); }