From Zero to Hero: Integration testing in ASP.NET Core

From Zero to Hero: Integration testing in ASP.NET Core

English | MP4 | AVC 1920×1080 | AAC 44KHz 2ch | 77 Lessons (4h 15m) | 1.08 GB

Make sure your services are bullet proof
Integration testing has quickly become one of the most used and most important types of testing for modern .NET and ASP.NET Core applications. This is mainly due to how much value a single Integration test can add and how easy it has become nowadays to write Integration Tests due to advancements in tooling. In this course, Nick Chapsas will introduce you to the beautiful world of modern integration testing and how you can ensure that your services behave as expected.

Table of Contents

1 Welcome
2 What will you learn in this course_
3 Who is the course for and prerequisites
4 The types of testing
5 The testing pyramid
6 Why are integration tests so important_
7 Why should you write integration tests_
8 What is in scope for integration testing
9 The project we will be working with
10 The 5 core integration testing steps
11 Project separation
12 Why xUnit_
13 Writing your first integration test
14 Naming in integration tests
15 Arrange, Act, Assert
16 xUnit’s test execution model
17 Test setup
18 Test cleanup
19 Parameterizing tests
20 Ignoring tests
21 Section recap
22 What this section is about
23 Writing fluent assertions
24 Testing strings
25 Testing numbers
26 Testing dates
27 Testing objects
28 Testing enumerables
29 Testing methods that throw Exceptions
30 Testing for raised events
31 Testing private methods (members)
32 Testing internal methods (members)
33 Section recap
34 The problem with integration tests
35 Introducing the WebApplicationFactory
36 Testing status codes
37 Testing text responses
38 Testing JSON responses
39 Testing response headers
40 Creating realistic test data
41 Cleaning up the test data
42 Sharing a single application for multiple test classes
43 Section recap
44 The project we will be writing integration tests for
45 Creating the WebApplicationFactory
46 The problem with data store dependencies
47 Introducing Docker
48 Taking a look at docker compose files
49 Creating a test container for our database
50 The problem with third party API dependencies
51 Introducing WireMock
52 Creating a mocked API server with WireMock
53 Testing Create a resource
54 Your turn to practice
55 Testing Getting a resource
56 Testing Getting all resources
57 Testing Updating a resource
58 Testing Deleting resource
59 Testing API Dependency Is Unavailable
60 Dealing with requests requiring auth
61 Dealing with background services
62 Integration testing Minimal APIs
63 Dealing with Entity Framework
64 Section recap
65 The project we will be writing UI integration tests for
66 What we need to do to test the UI
67 Introducing Playwright
68 How our Docker strategy changes
69 Bootstraping the test project
70 Testing Create a resource
71 Testing Get a resource
72 Your turn to practice
73 Testing Getting all the resources
74 Testing Update a resource
75 Testing Delete a resource
76 Section recap
77 Course conclusion

Homepage