c# - Akka.net testing actor using Context.DI() -


i think should "easy" one. i'm trying test behavior of actor performs child actor creation when receiving message. i'm using context.di().props<childactor>() create , that's fine there exception being thrown when try run tests:

cause: system.nullreferenceexception: object reference not set instance of object.    @ akka.di.core.diactorcontextadapter.props[tactor]() 

and have installed akka.testkit, akka.di.testkit, etc. there need configure/set in test "mock" context.di()?

thanks!

akka.di.testkit used test custom ioc container plugins (like autofac, ninject etc.) compatibility akka. not used testing custom code.

if want mock context.di() need supply container , register mocks in it.


Comments

Popular posts from this blog

Is there a better way to structure post methods in Class Based Views -

performance - Why is XCHG reg, reg a 3 micro-op instruction on modern Intel architectures? -

jquery - Responsive Navbar with Sub Navbar -