Skip to content

Conversation

JakeGinnivan
Copy link
Member

No description provided.

some refactoring to make the code a bit more readable
step one - removing static dependency
So we're shifting the balance a bit here.
ConventionResult is really becoming a conventionContext which will act as a context object gluing together all various pieces of the pipeline, isolating all the statics etc. Kind of like HttpContext or OperationContext in WCF

we're changing the interface to IConventionResultContext. While it's not the best name it's the best I could come up with, without calling it factory (which it's not, since it doesn't return anything) or calling it provider which is just wrong
All it took was two refactorings:
- move method to another type
- make method non-static
that's it - no extra manual work, it even folded the ConventionContext parameter and replaced it with 'this' where required. Respect
so we keep them separate and don't pollute the Intellisense
kkozmic added a commit that referenced this pull request Aug 14, 2013
@kkozmic kkozmic merged commit 924c46e into TestStack:master Aug 14, 2013
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants