8618  Reviews star_rate star_rate star_rate star_rate star_half

Test-Driven Development with .NET 10 Blazor and Web API

Join our comprehensive .NET 10 course and become a proficient practitioner of Test-Driven Development (TDD). You’ll not only learn the principles and best practices of TDD but also apply them to...

Read More
Duration 5 days
Course Code NET10-TDD
Available Formats Classroom

Overview

Join our comprehensive .NET 10 course and become a proficient practitioner of Test-Driven Development (TDD). You’ll not only learn the principles and best practices of TDD but also apply them to ASP.NET Core 10 and JavaScript/TypeScript code, gaining hands-on experience. Dive into the intricacies of unit testing and end-to-end (E2E) testing, honing your skills in organizing C# and JavaScript unit tests effectively. Understand the nuances of testing for Blazor WebAssembly and ASP.NET Core Web APIs applications, ensuring robust and reliable code.
Discover the art of testing in isolation with mocks, stubs, and fakes, enabling you to create thorough and accurate tests. Master the craft of unit testing for both client-side Blazor WebAssembly and server-side Web APIs code, ensuring the quality of your applications. Finally, learn how to seamlessly integrate testing into your local development tools and CI/CD pipelines, whether using Azure DevOps or GitHub, to streamline your development process and deliver high-quality software. Join us on this journey to becoming a skilled TDD practitioner in the world of web development.

Skills Gained

  • Learn the principle and best practices of Test-Driven Development
  • Apply TDD in ASP.NET and JavaScript/TypeScript code
  • Explore the parts of unit testing and E2E testing
  • Practice how to organize C# and JavaScript unit tests
  • Understand what needs to be tested for Blazor and Web API Applications
  • Enable testing in isolation with mocks, stubs, and fakes
  • Unit test client-side Blazor code
  • Unit test server-side Web API code
  • Integrate testing into local development tools and CI/CD pipelines (Azure DevOps or GitHub)

Prerequisites

Students need HTML, CSS, JavaScript, and C# programming experience. Experience with Blazor and Web APIs is highly recommended.

Course Details

Training Materials

All students receive comprehensive courseware covering all topics in the course. Courseware is distributed via GitHub in the form of documentation and extensive code samples. Students practice the topics covered through challenging hands-on lab exercises.

Software Requirements

Students will need a free, personal GitHub account to access the courseware. Student will need permission to install Visual Studio 2026 on their computers. Also, students will need permission to install NuGet Packages. If students are unable to configure a local environment, a cloud-based environment can be provided.

Getting Started with TDD

  • What is Test-Driven Development (TDD)?
  • Benefits of TDD
  • Challenges of TDD

Principles of TDD

  • Three Laws of TDD
  • Clean Tests
  • One Assert Per Test
  • Five Rules: FIRST
  • Red, Green, Refactor Technique

Kinds of Testing

  • Unit Tests
  • Integration Tests
  • E2E Testing
  • Automated vs. Manual Testing
  • Testing & DevOps

Testing Parts

  • Tests
  • Test Suites
  • Assertions
  • Setup/Teardown
  • Mocks, Fakes, Stubs
  • Arrange, Act, Assert
  • Test Frameworks
  • Test Runners
  • Code Coverage

Overview of .NET Core and Testing

  • Testing Frameworks
  • Test Runners
  • Testing Libraries

xUnit

  • What is xUnit?
  • Testing Framework
  • Test Parallelism
  • Shared Test Context
  • Facts vs. Theory
  • Assertions
  • Integration with Visual Studio
  • Debugging Unit Tests in Visual Studio
  • Debugging Unit Tests in Visual Studio Code

ASP.NET Web API Test-Driven Development

  • What Should be Tested on an MVC application?
  • Implementing a REST Service with a Web API
  • Integrate Test Projects into a Solution
  • Testing Controllers
  • Testing APIs
  • Integration Testing of APIs

ASP.NET Blazor Test-Driven Development

  • What Should be Tested on a Razor Component?
  • What is bUnit?
  • Using bUnit with xUnit
  • Setup and define components under tests in C# or Razor syntax
  • Verify outcome using semantic HTML comparer
  • Interact with and inspect components
  • Trigger event handlers
  • Provide cascading values
  • Inject services
  • Mock IJsRuntime
  • Perform snapshot testing
  • Testing Persistent State Components
  • Testing Required Component Parameters

.NET 10 Testing Features

  • Testing WebAuthn/Passkey Authentication Flows
  • Testing Reconnection Scenarios
  • Testing NavigationManager.NotFound() Behavior

Mocking Databases (choose 1)

  • Entity Framework
  • Dapper

JavaScript Test-Driven Development

  • Is JavaScript Unit Testing a Thing?
  • Benefits of Unit Testing JavaScript
  • Challenges of Unit Testing JavaScript
  • Jest Testing Framework
  • Vitest Testing Framework

JavaScript E2E Testing Overview

  • What is End-To-End Testing?
  • Selenium WebDriver
  • Cypress

JavaScript TDD with BDD

  • What is Behavior-Driven Development?
  • Coding Unit Tests around Behavior vs Functions
  • Given-When-Then

JavaScript Unit Testing (will be covered with Jest or Vitest)

  • Test Suites
  • Tests
  • Assertions
  • Mocks and Spies

JavaScript E2E Testing (will be covered with Selenium)

  • Finding Elements in the DOM Tree
  • Page Objects

Testing JavaScript Code Frameworks

  • Plain Vanilla JavaScript (can use Jest or Jasmine)

Code Coverage

  • What is Code Coverage?
  • What can be understood from Code Coverage?
  • What are the limitations of Code Coverage?
  • Generate Code Coverage reports for ASP.NET C# code
  • Generate Code Coverage reports for JavaScript code
  • Integrate code coverage into CI/CD systems (Azure DevOps or GitHub Actions)

Schedule

FAQ

Does the course schedule include a Lunchbreak?

Classes typically include a 1-hour lunch break around midday. However, the exact break times and duration can vary depending on the specific class. Your instructor will provide detailed information at the start of the course.

What languages are used to deliver training?

Most courses are conducted in English, unless otherwise specified. Some courses will have the word "FRENCH" marked in red beside the scheduled date(s) indicating the language of instruction.

What does GTR stand for?

GTR stands for Guaranteed to Run; if you see a course with this status, it means this event is confirmed to run. View our GTR page to see our full list of Guaranteed to Run courses.

Does Ascendient Learning deliver group training?

Yes, we provide training for groups, individuals and private on sites. View our group training page for more information.

What does vendor-authorized training mean?

As a vendor-authorized training partner, we offer a curriculum that our partners have vetted. We use the same course materials and facilitate the same labs as our vendor-delivered training. These courses are considered the gold standard and, as such, are priced accordingly.

Is the training too basic, or will you go deep into technology?

It depends on your requirements, your role in your company, and your depth of knowledge. The good news about many of our learning paths, you can start from the fundamentals to highly specialized training.

How up-to-date are your courses and support materials?

We continuously work with our vendors to evaluate and refresh course material to reflect the latest training courses and best practices.

Are your instructors seasoned trainers who have deep knowledge of the training topic?

Ascendient Learning instructors have an average of 27 years of practical IT experience and have also served as consultants for an average of 15 years. To stay current, instructors spend at least 25 percent of their time learning new, emerging technologies and courses.

Do you provide hands-on training and exercises in an actual lab environment?

Lab access is dependent on the vendor and the type of training you sign up for. However, many of our top vendors will provide lab access to students to test and practice. The course description will specify lab access.

Will you customize the training for our company’s specific needs and goals?

We will work with you to identify training needs and areas of growth.  We offer a variety of training methods, such as private group training, on-site of your choice, and virtually. We provide courses and certifications that are aligned with your business goals.

How do I get started with certification?

Getting started on a certification pathway depends on your goals and the vendor you choose to get certified in. Many vendors offer entry-level IT certification to advanced IT certification that can boost your career. To get access to certification vouchers and discounts, please contact info@ascendientlearning.com.

Will I get access to content after I complete a course?

You will get access to the PDF of course books and guides, but access to the recording and slides will depend on the vendor and type of training you receive.

How do I request a W9 for Ascendient Learning?

View our filing status and how to request a W9.

Reviews

Overall ExitCertified is a great training provider and the remote learning is as effective as in person.

Class was easy to sign up for and ExitCertified provided very good communication

This course is important because we work at CSOC and it's applicable to our daily work.

The class and material is good. I think some of the software needs to be updated.

Course was great and informative. The instructor had a good flow and was very personable.