ASP.NET Core: Test-Driven Development
37mIntermediate2017-07-27
Authors

Richard Rout
Software Developer
Course details
Get practical, hands-on experience implementing test-driven development of ASP.NET Core applications. Apps developed with a solid testing strategy are cleaner, more flexible, and easier to change on the fly. This course provides developers with the baseline knowledge of TDD so they can iterate through both new and existing code. Instructor Richard Rout introduces some helpful tools for ASP.NET Core testing, including Visual Studio, ReSharper, and the xUnit and Mock frameworks. Then he covers concepts such as dependency injection and version control, and shows how to set up a web app for testing. Finally, he walks through the red-green-refactor test cycle, including writing failing and passing tests, running tests, and refactoring code to improve quality.
Note: Examples in this course were developed using C# ASP.NET Core, but the concepts apply to all .NET Core applications.
Learning objectives
Getting the TDD tools
Testing cases
Refactoring code
Completing test cases
Testing changes in untested code
Changing code
Note: Examples in this course were developed using C# ASP.NET Core, but the concepts apply to all .NET Core applications.
Learning objectives
Getting the TDD tools
Testing cases
Refactoring code
Completing test cases
Testing changes in untested code
Changing code
Skills covered
ASP.NET CoreSoftware TestingBack-End Web DevelopmentDevOps FoundationsFull-Stack Web DevelopmentFront-End Web DevelopmentDevOpsWeb DevelopmentMicrosoftSoftware DevelopmentDeep Dive (X:Y)
Concepts
0. Introduction
- 01 - Welcome
- 02 - What you should know
- 03 - Using the excercise files
1. Get Started with TDD in ASP.NET Core
- 04 - TDD and tools
- 05 - Dependency injection and IoC
- 06 - Configure the app for testability
2. Write Tested Code
- 07 - Test base case
- 08 - Test N+1 case
- 09 - Refactor code and tests
- 10 - Complete test cases
- 11 - Finish and run the app
3. Test Changes in Untested Code
- 12 - TDD in untested code
- 13 - Make untestable code testable
- 14 - Confidently change your code, part 1
- 15 - Confidently change your code, part 2
- 16 - Refactor existing code
Conclusion
- 17 - Next steps
Related courses
- Deploying ASP.NET Core Applications: From Fundamentals to Advanced Deployment Strategies
- Advanced ASP.NET Core: Unit Testing
- Advanced Web APIs with ASP.NET Core 8
- ASP.NET Core in .NET 6: Dependency Injection
- ASP.NET Core: Exception Handling
- ASP.NET Core: Token-Based Authentication
- Learning ASP.NET Core MVC
- ASP.NET Core: Middleware (2017)
Related learn paths
- Prepare for the MTA: Software Development Fundamentals Exam (98-361)
- Getting Started as an ASP.NET Developer
- Become a MEAN Javascript Developer
- Become a Back-End Web Developer
- Explore App Development with the MERN Stack
- Explore Web Development with Node.js
- Getting Started as an ASP.NET Core Developer
- Prepare for the Microsoft Azure Administrator (AZ-104) Exam