Beispiel #1
0
 public void ResolveCommand_Simple()
 {
     var serializer = new DefaultViewModelSerializer();
     var command = serializer.ResolveCommand(CreateTestInstance(), "Test", "$root", new object[] { });
     command();
     Assert.AreEqual(1, InvokedMethod);
 }
Beispiel #2
0
 /// <summary>
 /// Initializes a new instance of the <see cref="RedwoodPresenter"/> class.
 /// </summary>
 public RedwoodPresenter()
 {
     MarkupFileLoader = new DefaultMarkupFileLoader();
     PageBuilder = new DefaultPageBuilder();
     ViewModelLoader = new DefaultViewModelLoader();
     ViewModelSerializer = new DefaultViewModelSerializer();
     OutputRenderer = new DefaultOutputRenderer();
 }