Online Mind Mapping and Brainstorming

Create your own awesome maps

Online Mind Mapping and Brainstorming

Even on the go

with our free apps for iPhone, iPad and Android

Get Started

Already have an account? Log In

ASP.NET MVC - "Hello, World!" Program by Mind Map: ASP.NET MVC - "Hello, World!" Program
0.0 stars - reviews range from 0 to 5

ASP.NET MVC - "Hello, World!" Program

Key Classes

Global.asax (Route)

HomeController.cs (Controller)

Index.aspx (View)

Easy Steps !

In Visual Studio select ASP.NET MVC Web Application template

Visual Studio will automatically create the MVC folder structure for the project

Run the application & you should see the welcome screen!

Unit Testing

Controller

Routes

View

NUnit is the preferred unit testing framework

Visual Studio will automatically add a Unit Test (MSTest) project for you

[TestClass] public class HomeControllerTest {   [TestMethod]   public void Index()(   {     // Given     HomeController controller = new HomeController();     // When     ViewResult result = controller.Index() as ViewResult;     // Then     ViewDataDictionary viewData = result.ViewData;     Assert.AreEqual("Welcome to ASP.NET MVC!", viewData["message"]);   } }

It follows the arrange-act-assert flow for unit tests (given-when-then)

About

Description: This Mind Map that explains your first ASP.NET MVC "Hello World" Program

Created by: Preeti Edul

Visit my blog for more ASP.NET MVC mind maps http://preetiedul.wordpress.com/bottom-of-the-stack/