YAPC::Europe 2011 in Riga

YAPC::Europe 2011 “Modern Perl”

Twitter #ye2011    RSS       Log in

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:


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

Attended by: