ASP.NET MVC 3 Testing |
Index |
Hands-On Lab
ASP.NET MVC 3 Testing
Lab version:1.1.0
Last updated:10/14/2011
Contents
Overview
Exercise 1: Testing simple controller actions
Task 1 � Creating a Testing Project
Task 3 � Implementing the test for the Index action method
Task 4 � Implementing the test for the Browse action method
Task 5 � Implementing the test for the Details action method
Exercise 2: Testing CRUD actions
Task 1 � Reviewing the provided solution
Task 2 � Adding transaction capabilities to the Test Methods
Task 2 � Testing Create Action Method
Task 3 � Testing Delete Action Method
Task 4 � Testing Edit Action Method
Task 5 � Testing Index Action Method
Task 6 � Testing Details Action Method
Task 7 � Testing Browse Action Method for StoreController
Exercise 3: Testing Cart Actions
Task 1 � Running ShoppingCartController Tests
Task 2 � Implementing the test for the AddToCart action method
Task 3 � Implementing the test for the Index action method
Task 4 � Implementing the test for the RemoveFromCart action method