Exemple #1
0
            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);
            }
Exemple #2
0
 private IMyActor GetActor(ActorId actorId)
 => _actorFactory.Create(actorId);