Dependency Injection and TDD
By Silvano Luciani
Date: Monday, 15 August 2011 12:25
Duration: 45 minutes
Target audience: Advanced
Language:
Tags: design mock tdd
You can find more information on the speaker's site:
- Abstract: https://github.com/silvolu/Talk
- Talk: https://github.com/silvolu/Talk
The aim of this talk is to show how to use the Dependency Injection pattern to write code that is easy to test and build applications whose behaviour can easily change at runtime by defining environments and different sets of configurations.
The source code of an example application will be analysed to show how to apply the Dependency Injection pattern.
The structure of the application will be explained using UML diagrams of the main classes, then the code of the application will be analysed thoroughly to show different approaches to the tests and the relative benefits and drawbacks.
Some of the modules used in the application are:
Moose
Test::More and Tests::Class
Class::Mop and Moose::Meta
Test::Cukes
Bread::Board
- Zbigniew Lukasiak (zby)
- Chad Davis (chadadavis)
- Leon Timmermans (leont)
- Clinton Gormley (DrTech)
- Alexey Surikov (ksurent)
- David Faux
- Bartosz Jakubski (migo)
- Adam Taylor (adam-_-)
- Anatoliy Dmytriyev (tolid)
- Lukáš Rampa
- Gertraud Unterreitmeier (Gertraud)
- Aliaksandr Zahatski (zag)
- Alex Muntada (alexm)
- Nikolay Mishin (mishin)
- marc chantreux (eiro)
- Laurent Dami (dami)
- Ulrich Wisser (wisser)
- Marko Kind
- Alexander Orlovsky (nordicdyno)
- Emil Dragu
- Ben Martin
- Moritz Onken (mo)
- Joni Lappalainen
- Ben Thomas (ozukira)
- Daniel Böhmer
- Karsten Silkenbaeumer (ksi)
- Stephan Hantigk (steppicrew)
- Mårten Svantesson
- Nikolay Morev
- Lars Dɪᴇᴄᴋᴏᴡ (daxim)