Feeds:
Posts
Comments

Posts Tagged ‘Simulator’

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 […]

Read Full Post »

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

Read Full Post »

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 […]

Read Full Post »