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));
        }
Exemplo n.º 2
0
        public IActionResult Index()
        {
            var viewModel = new AnotherViewModel()
            {
                Info = "this is another Controller to check."
            };

            return(CustomView(viewModel));
        }
Exemplo n.º 3
0
 public MainViewModel()
 {
     avm = new AnotherViewModel(this);
 }
Exemplo n.º 4
0
 public AnotherPage()
 {
     BindingContext = new AnotherViewModel();
 }