Replies: 1 comment 1 reply
-
My current strategy is to change the I{ModuleName}Startup interface to
So that you can change a module (example: email) with one that registers mocks when testing. Would love some criticism and also other alternatives to solve this. Still not quite sure how to test InternalCommands other than seeding the database with an |
Beta Was this translation helpful? Give feedback.
1 reply
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
-
Hi,
What would be the recommended approach to
Injecting a stub to replace the default implementation of a service. My concrete use case is a Mixpanel service that connects to the outside world.
How do you test InternalCommands? (your System Under Test inherits from
InternalCommandBase
).I understand and appreciate the fact that the module can only be accessed though its facade that allows
ExecuteCommandAsync
ExecuteQueryAsync
. But I wonder what can be done to enable a more whitebox approach for testing, that would allow to see and manipule what's inside the module.Beta Was this translation helpful? Give feedback.
All reactions