• Post category:StudyBullet-6
  • Reading time:8 mins read


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

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

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 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 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.

You will discover the basics of unit testing and about 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 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.

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 real code
  • Learn to write testable code
  • Understand how to write unit tests, then create or refactor code
  • Review Pitfalls to avoid and common challenges

Content and Overview

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


Get Instant Notification of New Courses on our Telegram channel.


This is not a big course. It has just over 3 hours of premium content, smartly broken up to highlight a set of related activities based on each module in the application that is 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 don’t always do things the perfect way 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 new learned skills into practical use and impress your boss and coworkers.

The course is complete with working files hosted on GitHub, with the inclusion of some files to make it easier for you to replicate the code being demonstrated. 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 you could take towards quickly increasing your income and marketability! Also, remember that if you don’t think the course is 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!

English
language

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