Video description
Test-Driven Development (TDD) is a powerful approach to build solid and robust software. In this course, you will learn the skills you need in order to be able 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 course starts with an introduction to the course and moves on to explain how to use .NET 6 and 7. You will learn to code a booking service as well as to test and implement the application. Moving further, you will learn about integration testing and learn how to retrieve available rooms from the application. You will also understand unit testing and implement code for unit tests. In the final section of the course, you will learn to set up a GitHub account and add projects to GitHub. You will also get the hang of Git branching and pull requests on GitHub.
After this course, you will have a 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 of creating a testable and maintainable ASP.NET core application needed to architect real-world, enterprise .NET core apps.
What You Will Learn
- Learn unit testing - testing core application code
- Learn integration testing - testing third-library interactions (such as EF core)
- Explore test-driven development - red-green-refactor cycle
- Learn how to use facts and theories to write tests
- Explore how to write testable code
- Understand good unit testing patterns and practices
Audience
To take this course, you will need to have some knowledge of .NET core development and C#. This course can be taken by any developer at all levels and anyone who wants a better understanding of how unit tests help you write better code.
About The Author
Trevoir Williams: Trevoir Williams is a software engineer and part-time lecturer. With a master’s degree in computer science, he has spent over a decade teaching web, software, and database development courses. He also has extensive industry experience in web application development, Azure Cloud system, and server administration.
He enjoys teaching IT and development courses and hopes to impart knowledge of the latest developments in industry standards and techniques to his students.
Table of contents
- Chapter 1 : Introduction
- Chapter 2 : Getting Started with Test-Driven Development
-
Chapter 3 : 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 Whether Room Is Available
- Implement: Check Whether 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
- Chapter 4 : Integration Testing – Testing the Data Access Layer
- Chapter 5 : Application Testing – Unit Testing ASP.NET Core (UI) Application
- Chapter 6 : Using GitHub for Continuous Integration and Testing
- Chapter 7 : Conclusion
Product information
- Title: Test-Driven Development in .NET Core - The Handbook
- Author(s):
- Release date: March 2023
- Publisher(s): Packt Publishing
- ISBN: 9781803246024
You might also like
book
Pragmatic Test-Driven Development in C# and .NET
Build realistic applications with both relational and document databases and derive your code design using TDD. …
video
Design Patterns Using C# and .NET Core
Design patterns are reusable solutions to common programming problems. They speed up the development process by …
video
ASP.NET Core MVC - Up and Running (.NET 5)
If you want to learn why ASP.NET Core is so popular and how to create and …
book
Building Web APIs with ASP.NET Core
Build fully-featured APIs with ASP.NET Core! This all-practical guide is written like a real development project, …