public void ViewModelTemplateResolver_ViewModelType_ShouldReturnCorrectTemplate() { TestViewModel model = new TestViewModel(); ITemplateResolver resolver = new ViewModelTemplateResolver(); Assert.IsTrue(resolver.Resolve(model) == "Test"); }
public void ViewModelTemplateResolver_ByInstance_ShouldReturnCorrectTemplate() { TestMailModel model = new(); ITemplateResolver resolver = new ViewModelTemplateResolver(); Assert.IsTrue(resolver.Resolve(model) == "Test"); }
public void ViewModelTemplateResolver_ByType_ShouldReturnCorrectTemplate() { ITemplateResolver resolver = new ViewModelTemplateResolver(); Assert.IsTrue(resolver.Resolve <TestMailModel>() == "Test"); }