You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
I 'am trying to test a DomainService eventhandler, it has an external dependency which I mock with nSubstitute, the thing is the event is being called by another service, and ABP under the hud is building up the Domain service with the unmocked dependency.
Any idea on how I can change this behaviour? I'am kinda new to ABP. I tried to replace it by getting the ServiceConfigurationContext in the test base class and then replacing the service before publishing the event but it is not working.
reacted with thumbs up emoji reacted with thumbs down emoji reacted with laugh emoji reacted with hooray emoji reacted with confused emoji reacted with heart emoji reacted with rocket emoji reacted with eyes emoji
-
Hi guys,
I 'am trying to test a DomainService eventhandler, it has an external dependency which I mock with nSubstitute, the thing is the event is being called by another service, and ABP under the hud is building up the Domain service with the unmocked dependency.
Any idea on how I can change this behaviour? I'am kinda new to ABP. I tried to replace it by getting the ServiceConfigurationContext in the test base class and then replacing the service before publishing the event but it is not working.
this is the test
Beta Was this translation helpful? Give feedback.
All reactions