public void Create_html_helper_with_new_model_of_different_type() { var newModel = new AnotherViewModel(); var newHtmlHelper = _h.For(newModel); Assert.That(newHtmlHelper.ViewData.Model, Is.SameAs(newModel)); }
public IActionResult Index() { var viewModel = new AnotherViewModel() { Info = "this is another Controller to check." }; return(CustomView(viewModel)); }
public MainViewModel() { avm = new AnotherViewModel(this); }
public AnotherPage() { BindingContext = new AnotherViewModel(); }