private IMyActor CreateMyActor(IDictionary <ActorId, IMyActor> actors, IMyActorFactory actorFactory) { var actorId = new ActorId(Guid.NewGuid()); var actor = A.Fake <IMyActor>(); actors[actorId] = actor; A.CallTo(() => actorFactory.Create(actorId)).Returns(actor); return(actor); }
private IMyActor GetActor(ActorId actorId) => _actorFactory.Create(actorId);