ASP.NET MVC Web Applications: Models and Unit Testing


Overview/Description
Expected Duration
Lesson Objectives
Course Number
Expertise Level



Overview/Description
Examine the administration of basic MVC unit tests, and how to add a model to an ASP.NET MVC application, implement business logic in a model, and validate user input with data annotations in Visual Studio 2017.

Expected Duration (hours)
1.4

Lesson Objectives

ASP.NET MVC Web Applications: Models and Unit Testing

  • create a unt test project for an ASP.NET MVC web application in Visual Studio 2017
  • implement basic unit tests for ASP.NET MVC web application in Visual Studio 2017
  • add a new unit test to an ASP.NET MVC unit test project in Visual Studio 2017
  • use the unit test Assert class in Visual Studio 2017
  • locate and fix unit test errors in an ASP.NET MVC web applicaton in Visual Studio 2017
  • create a model class and access data from class properties in an ASP.NET MVC web application
  • implement a relationship between two model classes in an ASP.NET MVC web application
  • instantiate an MVC model class object from a controller class action and display object property values in a view in an ASP.NET MVC web application
  • use data annotation on a model class object in ASP.NET MVC web application
  • validate user input data by applying data annotations to a model property in an ASP.NET MVC view
  • create a custom data validation attribute and apply it to a model class property in an ASP.NET MVC web application
  • use the jQuery Validation plugin to carry out client-side validation in an ASP.NET MVC web application in Visual Studio 2017
  • customize validation error messages in ASP.NET MVC view
  • create a new MVC model class in an ASP.NET MVC web application
  • Course Number:
    it_wddmvc_04_enus

    Expertise Level
    Intermediate