EN / Courses / Beginning ASP.NET MVC 5 with Test Driven Development / Course Detail

Beginning ASP.NET MVC 5 with Test Driven Development

This course will give your ASP.NET MVC 5 development a solid start - in the right direction! It picks out and explains the things you need to know in order to use the framework effectively and develop testable solutions.

While the course has a focus on practical skills, it also takes the time to explain important underlying concepts, including how HTTP works, the MVC design pattern, the TDD workflow and dependency inversion.

Target audience

.NET Developers who want to learn how to develop web applications using MVC and TDD

Pre-requisites

Good knowledge of programming in C# and the .NET platform.

Also requires some knowledge of HTML and CSS, and perhaps some experience with JavaScript

What you will learn

Dag 1

Web and MVC Fundamentals

  • How the web works: HTTP, servers, clients, statelessness
  • A little history: ASP Classic, ASP.NET WebForms, other approaches
  • The MVC pattern: models, views and controllers

Hello World

  • Creating an ASP.NET MVC web application
  • Our first controller and view
  • Adding a basic model
  • Convention over configuration

Testing Fundementals

  • What is Test Driven Development?
  • Introduction to NUnit
  • Writing our first controller test

Routes

  • The relationship between routes and controllers
  • Adding more routes
  • Routes and linking
  • Examining the request lifecycle

Better Testing with Dependency Inversion

  • What is DI, and why does it matter?
  • Refactoring towards DI
  • Testing using hand-crafted stub objects
  • Introduction to StructureMap
  • Integrating StructureMap with ASP.NET MVC

Dag 2

The Razor View Engine

  • The Razor approach
  • Loops and conditionals
  • Built-in helpers
  • Creating your own helpers
  • Layouts
  • Partial views
  • What NOT to do in a view

Introducing Forms

  • Adding a form and posting to a controller
  • FormCollection - often a last resort
  • Parameter binding
  • Model binding
  • Forms and testing

Linking to a Database

  • A short introduction to Entity Framework
  • Entities as the model
  • Testable approaches to data access
  • Scaffolding

Validation

  • Client-side vs. server-side validation
  • Validation annotations
  • Custom validation
  • Validation and testing

Dag 3

JavaScript and Ajax Basics

  • What is Ajax?
  • Introducing jQuery
  • The Ajax helper for partial page updates
  • Unobtrusive JavaScript

Web API

  • Introduction to JSON
  • What is a RESTful service?
  • Writing API controllers
  • Understanding HTTP verb to method conventions
  • Calling services from JavaScript
  • Testing Web APIs

Security

  • The web is a dangerous place
  • XSS
  • Direct Object References
  • CSRF
  • Authentication
  • Authorization
BOOK

Course info

  • Course code: T225
  • Course duration: 3 days
  • Price: 25970 SEK

Course schedule

Malmö

Teachers

Martin Andersson
Martin Andersson
Tore Nestenius
Tore Nestenius

Share

  • Please share on LinkedIn
  • Please share on Facebook
  • Please share on Twitter

Contact us for details

040-6170720

info@edument.se

All prices excluding VAT

Copyright © Edument AB. All rights reserved.