Download presentation
Presentation is loading. Please wait.
Published byBetty Anthony Modified over 9 years ago
1
Secrets of an Umbraco Ninja Presented by : Aaron Powell me@aaron-powell.com @slace www.aaron- powell.com
2
Not Test Driven Development Separation of logic from UI Ability to create reusable components Reduced errors by repeatable tests in controlled environments Better API design
3
UmbracoUI
4
CodeBuildDeployTest
5
Umbraco Logic UI Tests
6
CodeTestBuildDeployTest
7
Stub is an instance which wont break your test –Stubs can be implementations of a class created purely for testing purposes Mocks –Less common in current unit testing –Type instances where nothing is defined –Can be very brittle
8
Do you need a mocking framework? –Short answer is no –Can create your own stub types –Gives you greater control Why to use one? –Easy expectation setup –Using stubs on less accessible types Set-less properties
9
WebForms MVP to abstract away ASP.NET WebForms features Dependency Injection to simplify the creation of factory types Factory Pattern for data access
10
Heavy reliance of HttpContext –Hard to Mock –Requires a web context Lots of static –Hard to mock Changing data –What are we working against?
12
Thank you for coming
Similar presentations
© 2025 SlidePlayer.com. Inc.
All rights reserved.