
Set up a new xUnit test project in Visual Studio for the room booking app core tests, configure the project, and learn unit test basics like arrange, act, and assert.
Implement the book room method to return a room booking result mirroring the request fields email, full name, and request date, and drive the test green.
Review the completion of unit testing and code coverage for the application core, and outline upcoming work on interface implementations and database integration in a test driven development workflow.
Learn how to perform an integration test to save a room booking to the database using a context, asserting a single record with the correct room id and date.
Create unit test scenarios for the room booking API controller, verifying valid bookings return an ok result while invalid inputs yield bad requests using mocks and dependency injection.
Protect the code base with a continuous integration pipeline by using git branching and pull requests, including creating branches, submitting pull requests, code reviews, and safe merging.
Set up a GitHub Actions-based continuous integration pipeline for an ASP.NET Core project, configuring a YAML workflow with dotnet restore, build, and test steps triggered by pull requests.
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!