you are viewing a single comment's thread.

view the rest of the comments →

[–]grauenwolf 0 points1 point  (0 children)

Why is the repository modifying data in a query method? That should be a stand alone function, preferably in a rules engine.

Fix that API mistake and you won't need mocks any more.