MVC 4.0, Part 10 of 11: Dependency Injection and Deployment
Interactive

MVC 4.0, Part 10 of 11: Dependency Injection and Deployment

LearnNow Online
Updated Aug 22, 2018

Course description

In this course we’ll talk about what dependence injection is and what kinds of problems it’s trying to solve. We’ll take a look at what every dependence injector needs to do when you wire it up to your MVC framework application, including how you might go about writing your own dependence resolver. Next we are going to take a look at integration testing where we test the entire web application in an automated way, starting from the user interface and drilling down through all the functionality. We are going to take a look at unit testing and where we can isolate down to the very controller methods and make sure those are working properly. Finally we’ll take a look at where we can put these applications and how easy it is with MVC applications to deploy them, ranging all the way from simply coping your files to the very elaborate and extensive and handy functionality that is built in to the publish functionality built in Visual Studio.

Each LearnNowOnline training course is made up of Modules (typically an hour in length). Within each module there are Topics (typically 15-30 minutes each) and Subtopics (typically 2-5 minutes each). There is a Post Exam for each Module that must be passed with a score of 70% or higher to successfully and fully complete the course.


Prerequisites

This course assumes that you are familiar and experienced with Microsoft’s .NET Framework and ASP.NET development tools. You should be familiar with Web development and understand how HTTP and HTML work to produce Web pages for the user. You should have experience writing applications with ASP.NET 4.0 or later Web forms, and be familiar with how ASP.NET processes page requests, and have strong experience with .NET Framework 4.0 or later programming. You should have experience with Visual Studio 2012 for building Web application projects. Experience with building database applications using these tools will be helpful, although not strictly necessary.


Meet the expert

Phil Ledgerwood

Philip Ledgerwood has been a software developer for fifteen years. He currently works primarily in .NET technologies producing custom software for organizations of all sizes. He has also done extensive training for those same organizations in both technical and business process topics. Philip is a strong advocate of Lean and agile software development and spends most of his time helping companies interested in the value those practices can bring to their development efforts. He does this through a combination of training and working "in the trenches" as a developer on these teams, keeping a hand in the academic side of emerging technology and practices while also directly applying it in real projects to bring real business value.

Video Runtime

121 Minutes

Time to complete

464 Minutes

Course Outline

Dependency Injection

Dependency Injection (12:13)

  • Introduction (00:40)
  • Dependency Injection (02:26)
  • What Is It (01:01)
  • Demo: Logging (03:21)
  • Demo: Logger outside (04:16)
  • Summary (00:26)

Resolvers (10:59)

  • Introduction (00:33)
  • Resolving Dependencies (03:06)
  • Demo:Structure Map (03:37)
  • Demo: Wired to Framework (03:20)
  • Summary (00:20)

DI Frameworks (21:02)

  • Introduction (00:23)
  • Common DI Frameworks (03:40)
  • Using DI Frameworks (01:17)
  • Demo: DI Framework (01:05)
  • Demo: Structure Map (04:29)
  • Demo: SQL Server Logger (02:19)
  • Demo: MVC Applications (01:42)
  • Demo: Unit Tests (02:47)
  • Demo: MSpec (02:55)
  • Summary (00:21)
Testing and Deployment

Integration Testing (26:53)

  • Introduction (00:31)
  • Integration Testing (04:24)
  • Demo: Integration Testing (02:44)
  • Demo: Test tools (03:34)
  • Demo: Write Test (05:05)
  • Demo: Feature Tested (01:56)
  • Demo: Make Steps (04:06)
  • Demo: How Does it Work (02:22)
  • Demo: Run Test (01:40)
  • Summary (00:26)

Unit Testing (22:13)

  • Introduction (00:31)
  • Unit Testing (04:32)
  • Demo: Unit Testing (02:44)
  • Demo: Adding Unit Test (04:34)
  • Demo: Home Controller (02:55)
  • Demo: Test Patterns (03:45)
  • Demo: Check (02:45)
  • Summary (00:25)

Exception Handling (13:18)

  • Introduction (00:28)
  • Exception Handling (05:05)
  • Demo: Exception Handling (04:59)
  • Demo: Error Status Code (02:14)
  • Summary (00:31)

Deployment (15:03)

  • Introduction (00:29)
  • Deployment (03:46)
  • Demo: VS Deployment (04:53)
  • Demo: FTP Deployment (00:21)
  • Demo: Hosting Gallery (00:55)
  • Demo: FPSE (00:24)
  • Demo: File System (03:45)
  • Summary (00:27)
;