public void CreateDependency() { var dependency = _actorGroupFactory.BuildDependency(_contract, Mock.Of <IDependencyEngine>()); dependency.Should().BeOfType <EntityContextDependency <IActorContext> >(); }