Test Driven Development in ASP.NET Core - The Handbook

Get Hands-On experience using Unit testing to produce a bullet proof and testable N-Tier .NET Core application.

4.29 (316 reviews)
Udemy
platform
English
language
Software Testing
category
Test Driven Development in ASP.NET Core - The Handbook
4,663
students
4.5 hours
content
Feb 2024
last update
$69.99
regular price

What you will learn

Unit Testing - Testing Core Application Code

Moq Framework

xUnit Testing Framework

Integration Testing - Testing Third Library Interactions (Like EF Core)

Application Level Unit Testing - Testing that the MVC Application behave correctly

Test Driven Development - Red-Green-Refactor Cycle

Using Facts and Theories to write tests

How to write testable code

Know about good unit testing patterns and practices

Unit testing in N-tier web application projects using xUnit

Continuous Integration and Git Branch Protection

Why take this course?

Test Driven Development (TDD) is a powerful approach to building reliable and robust software. This course will teach you how to apply TDD in your .NET projects. Unit Testing is a type of software testing where code is written to automate the testing of sub-sections of an entire application. This methodology gives more functional coverage and reduces the need for manual regression testing when the application's code changes. The purpose is to validate that each unit of the software code performs as expected.

Everything in this course is .NET 6 / .NET 7 compatible.

You will discover the basics of unit testing and the red-green-refactor cycle. You will also learn how to test and implement business logic in a .NET Core application using xUnit as a testing framework and Moq as a mocking library.

After this course, you will have the foundational knowledge of Test Driven Development that will help you as you move forward to test and implement new features in your C# projects. You will have the skills and knowledge to create a testable and maintainable ASP.NET Core application to architect real-world enterprise .NET Core apps.

Build A Strong Foundation in Unit Testing in .NET:

  • Use xUnit Test Projects.

  • Use Moq and Shouldly(Fluent Assertions) to write unit tests.

  • GitHub Projects to Track Requirements

  • Conduct Red, Green, Refactor Test-driven development (TDD)

  • Practice Test-Driven Development in actual code

  • Learn to write testable code

  • Understand how to write unit tests, then create or refactor code

  • Review Pitfalls to avoid and common challenges

  • Learn how to set up a Continuous Integration Pipeline using GitHub.


Content and Overview

To take this course, you must have some knowledge of .NET Core development and C#.

With just over 4 hours of premium content, smartly broken up to highlight related activities based on each module in the application being built; we will also look at troubleshooting and debugging errors as we go along, implementing best practices, writing efficient logic, and understanding why developers do things the way they do. Your knowledge will grow, step by step, throughout the course, and you will be challenged to be the best you can be.

We sometimes do things differently than the first time; that is not the reality of writing code. We make mistakes and point them out and fix them around them. By doing this, we develop proficiency in using debugging tools and techniques. By the time you have finished the course, you will have moved around in Visual Studio and examined logic and syntax errors so much that it will be second nature for you when working in the .NET environment. This will put your newly learned skills into practical use and impress your boss and coworkers.

The course is complete with working files hosted on GitHub, including some files to make it easier for you to replicate the demonstrated code. You will be able to work alongside the author as you work through each lecture and will receive a verifiable certificate of completion upon finishing the course.

Clicking the Take This Course button could be the best step to increase your income and marketability quickly! Also, remember that if you think the course is not worth what you spent, you have a full 30 days to get a no questions asked refund!


It's time to take action!

See you in the course!



Content

Introduction

Introduction

Getting Started with Test Driven Development

Create Test Project
Unit Test: Create Unit Test Based On Requirement
Implement: Write Code to Return Correct Data
Refactor: Test and Implementation Code
Section Source Code

Unit Testing - Application Core

Review Full Requirement List with GitHub Projects
Test and Implement: Throw Exception When Request Is Null
Create Booking Services
Unit Test: Save a Room Booking
Implement: Save a Room Booking
Unit Test: Check if Room Is Available
Implement: Check if Room Is Available
Test and Implement: Add Room Id To Result
Test and Implement: Return Successful or Failed Booking Result
Test and Implement: Add Booking Id To Result
Section Review

Integration Testing - Testing the Data Access Layer

Refactor Project for Data Access Layer
Unit Test: Retrieve Available Rooms
Implement: Retrieve Available Rooms
Test and Implement: Save a Room Booking
Section Review

Application Testing - Unit Testing ASP.NET Core (UI) Application

Understanding Unit Testing .NET Core Applications
Setup Sqlite In-Memory Data Store
Create Unit Test Scenarios
Implement Code For Tests
Run and Test ASP.NET Core Application
Section Source Code

Conclusion

Course Review

Reviews

Dan
October 11, 2023
This is a fantastic course, Very well presented , excellent information i would recommend to anyone YNWA
Dave
September 15, 2023
This isn't a TDD course, it's just unit testing. They're not the same thing and the tutor never really gave me the hint that he understood the difference
Rayan
September 7, 2023
I really appreciate Trevoir's down-to-earth explanations and teaching style. Can't wait to take some of his other courses!
Prashanth
June 27, 2023
Thank you Trevior, this is really great. You are a calm and easy going teacher. Please keep these courses coming you are doing a great job
Michael
June 22, 2023
extremely helpful and clear, I was struggling getting to grips with integration testing after moving to c#/Asp.Net from Java/Spring Boot and this course is helping me to get up to the same standard in c# as I am in Java
João
May 1, 2023
The course started very well, introducing some important TDD concepts. In the "Integration Tests" section the instructor was meant to taught about integration tests, but it were only more unit tests running on the Repository layer. In general, it is not recommended to use unit tests as integration tests for classes like repositories that use Entity Framework or libraries that use Azure Service Bus, for example. Integration tests are designed to test the interactions between different components of an application, including any dependencies they might have on external systems or services. The goal of integration testing is not to mock or create the database in memory but to ensure that the application works correctly in a real-world environment and that any interactions with external systems or services are handled correctly.
Radosław
February 16, 2023
TDD is presented OK, but the code are written in obsolete 'transaction script' pattern, where the logic sits in the services, and domain models are anemic.
Maroun
February 13, 2023
The course is not what I expected I expected to participate in writing down tests, and not read pre-written code and act like I'll be able to do the same just by looking at the instructor coding. I expected some challenges and some tasks to do
Isaiah
February 6, 2023
The instructor has in-depth understanding of the course and also has good on-hands experience of the Unit Testing Processes. I highly recommend this course to other students
Tero
January 21, 2023
I would've loved for the course to go a bit more in-depth, but overall very informative and concise. Thanks!
Darel
January 10, 2023
This course on Test Driven Development in ASP.NET Core is a great resource for developers looking to improve their skills in writing maintainable and robust code. The instructor does a great job of breaking down the concepts of TDD and explaining how they can be applied in the context of an ASP.NET Core application. One of the things I appreciated most about this course was the focus on hands-on learning. The instructor provides a number of practical exercises throughout the course, which allowed me to immediately apply what I was learning to my own code. The course starts with a brief introduction to the basics of TDD, including the concepts of red-green-refactor, and then proceeds to cover the use of popular test frameworks such as xUnit and Moq. The course is not limited to just the testing aspect, but also includes the setup of an ASP.NET Core application for testing and for that the instructor uses an appropriate language that is not just too technical to follow. One of the other things I liked about this course is that it provides a lot of helpful tips and tricks for working with ASP.NET Core and TDD. These were incredibly useful, and have already helped me to write cleaner, more maintainable code. Overall, I would highly recommend this course to any developer looking to improve their skills in TDD and ASP.NET Core. The course is well-structured, the instructor is knowledgeable and engaging, and the hands-on exercises are a great way to apply what you're learning.
Ryan
January 8, 2023
The course is pretty straight forward and easy to understand since Trevoir explained the topics as simple as possible. I think the concept will still be applicable to the future version of .net core and other programming language. Nice Work!
Stuart
November 24, 2022
A lot of the intricate details are glossed over and not fully explained. This is much more of a "code-along" than it is actual explanations and practice. This is moderately better than most of the ASP.Net courses on Udemy, but it still does not explain the concepts very well.
Vilfred
September 12, 2022
Very good and practical course. It helped me a lot to understand the important basics of unit testing in .Net and how to apply them in the project I'm currently working with.
Nick
August 26, 2022
It would be helpful in all places that new items come through like [Theory] , [InlineData] etc to provide links for futher reading. Otherwise its all very clearly explained and course up to now seems excellent

Coupons

DateDiscountStatus
10/30/202188% OFF
expired
11/18/202188% OFF
expired
12/10/202188% OFF
expired
12/24/202188% OFF
expired
2/9/202288% OFF
expired
2/23/202288% OFF
expired
3/2/2022100% OFF
expired
3/13/202288% OFF
expired
3/26/202288% OFF
expired
4/19/202288% OFF
expired
4/29/202288% OFF
expired
5/5/202288% OFF
expired

Charts

Price

Test Driven Development in ASP.NET Core - The Handbook - Price chart

Rating

Test Driven Development in ASP.NET Core - The Handbook - Ratings chart

Enrollment distribution

Test Driven Development in ASP.NET Core - The Handbook - Distribution chart
4235116
udemy ID
8/11/2021
course created date
9/16/2021
course indexed date
Bot
course submited by