Every story and comment from the Hacker News API, in a layout borrowed from 2001.
A comment on Write tests. Not too many. Mostly integration. Parent comment
Usually that's a single responsibility class:
interface IGraphParser { Graph Parse(Request request); }
There are no comments on this comment yet.
Usually that's a single responsibility class:
Inject that into the caller via the container then you can mock the thing that calls it and just return a static Graph object, which you can't do with a simple extension method (which is why it sucks).