~/talk

Testing .NET Web APIs from A to Z

Talkat Øredev 2023 · 2023-11-08..11-10· [testing]
slides:none on file

Concrete recipe and results: a minimal .NET Todo API is built and tested end to end against a real SQL Server instance, tests run sequentially with the DB reset before each test, time is controlled with a manual TimeProvider so timestamps are deterministic, and an Alba host (WebApplicationFactory) plus Verify and a JSON diff library enable semantic JSON comparison and snapshot testing. Testcontainers and Respawn appear as options for external deps, and the demo tests run fast and catch contract and behavioral regressions.

AI-written summary · about

  1. 0:00Introduction
  2. 1:47Valuable API tests
  3. 8:04Four pillars of tests
  4. 10:56API testing toolbox
  5. 17:17Demo solution
  6. 23:35Contract testing with snapshots
  7. 27:26Verifying API behavior
  8. 34:31Implementation vs public API
  9. 38:04Controlling time in tests
  10. 40:09Summary
~/search
type to search 6,249 conferences, 138,987 speakers and 185,172 talks
~/help
cmdctrl k
search every conference, speaker and series
/
focus the filter search
h
home
c
conferences
s
speakers
e
series
t
light / dark — the status bar button does the same
?
this help
esc
close this, then clear every filter — or just the search, while you are typing in it

Ignored while you are typing. Pages without a filter rail have no search to focus.