~/talk

Unit-Testing With Ease

Talkat Build Stuff 2020 · 2020-11-11..11-15· [testing, developer-experience]
links:none on file
slides:none on file

Builds and ships an open‑source test helper called Ease that wires Moq into IoC containers (DryIoc and Unity) and test frameworks (NUnit/xUnit/MSTest) so each test gets a fresh container and per‑test mock setup. Shows concrete examples: register a mock factory, override behavior for a specific id (update product id 2 returns null), verify calls like DisplayAlertAsync and UpdateProduct, and use multicast setup to change behavior only for one test. Demonstrates faster, less brittle unit tests for Prism/Xamarin scenarios.

AI-written summary · about

  1. 0:00Intro
  2. 1:15Overview
  3. 1:37UnitTesting Challenges
  4. 3:26Dependencies
  5. 4:11Focus on Testing
  6. 4:47Mocking
  7. 6:45Mock
  8. 12:33Demo
  9. 13:55Functionality
  10. 17:00APIs
  11. 19:55Dependency
  12. 21:05Duanes journey
  13. 22:57Fixing duplication
  14. 24:44Refactoring dependencies
  15. 27:00Creating tests
  16. 28:54The Ease Library
  17. 35:04Test Setup
  18. 37:50Default Functionality
  19. 39:14Abstracting
  20. 40:17Setup attribute
  21. 42:12Overwriting test
  22. 43:39Ease Library
  23. 44:26Conclusion
  24. 45:33Questions
~/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.