public void ConfigureActor() { const int actorId = 25; var actor = _actorFactory.Configure() .AddComponent(Mock.Of <IComponent>()) .AddComponent(new TestComponent1()) .AddComponent(new TestComponent2()) .SetId(actorId) .Build(); actor.Id.Should().Be(actorId); actor.ContainsComponents <TestComponent1, TestComponent2>().Should().BeTrue(); }