SepiaGroup/Neo4jRestNet — Issue #6: Make the API testable
Author: promontis
Created: 2012-01-05 11:01:55+00:00
State: open

Hi guys,

Currently, I'm in the planning phase to make the API more testable. This will probably be by introducing an IStore interface, which will be injected by a DI container. There will be a Neo4jRestStore implementation, making use of the Neo4RestApi classes, and an InMemoryStore implementation, allowing to test without persistence.

The problem I'm facing is how to inject the IStore. I think the best option will be to use the ctor, but then we have a problem with the static methods. My solution would be to make all static methods, non-static. What do you think? Also, do you prefer a specific DI container?