Skip to content

dgadd/TDD-Kata--Strategy-Pattern-for-Domain-Model

Repository files navigation

This project demonstrates a TDD kata for building Strategy Pattern in a domain model.

The TDD kata is located here: 

http://codingsolutions.blogspot.com/2010/05/tdd-kata-for-building-strategy-pattern.html

The final test, which demonstrates the complete, encapsulated Strategy Pattern, is this:

var sut = new Treatment(Treatment.TreatmentEnum.Dietary);
sut.TreatmentType.CourseOfAction.ShouldEqual("Give dietary advice.");

About

A TDD kata for using design-by-test to intuitively generate Strategy Pattern.

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published