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

            return(CustomView(viewModel));
        }
Example #3
0
 public MainViewModel()
 {
     avm = new AnotherViewModel(this);
 }
Example #4
0
 public AnotherPage()
 {
     BindingContext = new AnotherViewModel();
 }