These are chat archives for akkadotnet/akka.net
I am trying to test an actor that is using PubSub; _mediator = DistributedPubSub.Get(Context.System).Mediator.
But when I run my test I get a "System.NullReferenceException: 'Object reference not set to an instance of an object.'"
The DistributedPubSub doesn't seem to get initialized and not sure how or what I need to to do.
The website, https://getakka.net/articles/actors/testing-actor-systems.html#configuration, has a todo on it: TODO describe how to pass custom config as I figure I need the config.
Within the [Setup] of the test I tried adding the following with no luck.
I doesn't even want to test the actual PubSub part... Are there any examples on this?