English | MP4 | AVC 1920×1080 | AAC 44KHz 2ch | 44 Lessons (4h 30m) | 1.44 GB
Learn how to write testable C# code using modern coding practices
Everyone knows by now that testing is a mandatory part of software development, but it’s very easy to make it hard for yourself to write tests for the code you just wrote. Writing testable code is a craft practised by the most seasoned software engineers, and it is usually a sign of a clean codebase that uses modern practices. Nowadays, it is pretty easy to use AI coding assistants to write tests for you, but true engineers develop a deep understanding of how you can write testable code. In this course, Gui Ferreira will walk you through why writing testable code using C# is so important and show you step-by-step how you can learn this art and follow it for the code you write.
Table of Contents
1 Welcome
2 What will you learn in this course?
3 Who is the course for and prerequisites
4 The Cost of Untestable Code
5 What makes Code “Testable Code”
6 What is Unit Testing
7 How to approach Testable Code
8 Introduction
9 Clear Inputs and Outputs
10 Explicit Error Handling
11 Separation of Construction and Logic
12 Visible State Changes
13 Exercise
14 Section Recap
15 Introduction
16 Identifying and Extracting Responsibilities
17 Dealing with Constructor Bloat
18 Creating Effective Injection Points
19 Injectable vs. Newable Objects
20 Composition of Narrow Components
21 Exercise
22 Section Recap
23 Introduction
24 Working with Static Dependencies
25 Breaking Dependency Chains
26 Creating Abstractions for External Services
27 Isolating Framework Code
28 Exercise
29 Section Recap
30 Introduction
31 Avoiding Test Interference
32 Converting Static Dependencies to Testable Code
33 Implementing Pure Functions
34 Replacing Traditional Singletons
35 Exercise
36 Section Recap
37 Introduction
38 Writing Testable ASP.NET Core Controllers
39 Designing Entity Framework Code for Testability
40 Making Time-Dependent Code Testable
41 Creating Testable External Dependencies
42 Implementing Testable Authentication and Authorization
43 Section Recap
44 Conclusion
Resolve the captcha to access the links!