public void TestStartWorldWithDefaultConfiguration() { var worldDefaultConfig = World.Start("defaults"); var testResults = new WorldTest.TestResults(1); var simple = worldDefaultConfig.ActorFor <ISimpleWorldForDefaultConfig>( Definition.Has <SimpleActor>( Definition.Parameters(testResults))); simple.SimplySay(); Assert.True(testResults.Invoked); }
public SimpleActor(WorldTest.TestResults testResults) { _testResults = testResults; }