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








