Working with ASP.NET MVC Models and Unit Testing


Overview/Description
Target Audience
Prerequisites
Expected Duration
Lesson Objectives
Course Number
Expertise Level



Overview/Description
In this course, you will learn how to administer basic MVC unit tests, how to add a model to an ASP.NET MVC application, how to implement business logic in a model, and how to validate user input with data annotations in Visual Studio 2017.

Target Audience
Web developers seeking an introductory guide to developing efficient, secure, distributed web applications with adaptive user interfaces using the ASP.NET MVC and MVC 5 frameworks in Visual Studio 2017, and individuals preparing for exam 70-486: Developing ASP.NET MVC Web Applications

Prerequisites
None

Expected Duration (hours)
1.5

Lesson Objectives

Working with ASP.NET MVC Models and Unit Testing

  • start the course
  • create a unit test project for an ASP.NET MVC web application in Visual Studio 2017
  • implement basic unit tests for an 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 application 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 an 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:
    wd_dmvc_a04_it_enus

    Expertise Level
    Intermediate