Testing and Service Dependence

Does anyone have any suggestion that ActorProxy.ActorProxyFactory is a read-only internal static member?

This post helped me get started, but proxy factory is still a problem. Unit Testing and Dependence on Use

I could just add a test constructor to introduce the mock factory, but that means that all the code should use the input element, and not the standard ActorProxy.Create.

Thank!

+4
source share
2 answers

nuget , . . , / .

, new ActorProxyFactory().CreateActorProxy ActorProxy ActorProxy.Create, factory.

+1

Source: https://habr.com/ru/post/1655984/


All Articles