I just published an early relese of my Simulated.FileSystem library. This library makes it easier to separate platform concerns out of my models. It works really well with a hexagonal architecture. This library will define a set of ports for common external dependencies, with multiple adapters for each port. The initial release just includes a [...]
Posts Tagged ‘Simulator’
New Simulators Library
Posted in post, tagged Agile, file system, no mocks, Simulator, tdd on May 3, 2012 | Leave a Comment »
Simulating the File System
Posted in post, tagged design, Simulator, tdd on July 7, 2011 | 1 Comment »
I recently posted an entry about replacing mocks with Simulators. That one used a Simulator from my running example code. Here’s another example, which may make the concept more clear. This is a file system simulator. I’m building it out as a generic simulator, re-usable across projects. Right now, I’m using it
Mock Free Example, part 2: Simulators
Posted in post, tagged design, example, no mocks, Simulator on July 5, 2011 | 4 Comments »
One of the common uses for mocks is to replace expensive or stateful components, such as file systems, networks, GUIs, and databases. However, I also see a cluster of other problems that arise at interfaces with these types of components, especially when they are system-level services: Primitive obsession. Rarely are these APIs written as methods [...]
