A TDD kata for using design-by-test to intuitively generate Strategy Pattern.
dgadd/TDD-Kata--Strategy-Pattern-for-Domain-Model
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Folders and files
Name | Name | Last commit message | Last commit date | |
---|---|---|---|---|
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 0
No packages published