Helix.Examples
Helix.Examples copied to clipboard
Remove FakeDb nuget package reference
In SC9+ unit testing goes better without FakeDb (yep, that's me saying that)... Just get rid of this NuGet package.
@sshushliapin Last I looked, mocking a tree of items was still a pain. I've even considered a project to back the FakeDb tree format with a mocking framework, but for the time stuck with it as-is.
Do you have an example of mocking something like this? Care to submit a PR if it's still readable?
Sure. The issue as I see it is that existing services are a bit overloaded (even in such a simplified model). The HeaderBuilder
class deals with both data model and presentation model. Splitting this things should make code more testable.
I'll come up with a PR, hope it'll make it more clear.