Beispiel #1
0
        public static void WireupAgentMocks()
        {
            ActorFactory.Called = 0;
            MockActorCache      = new Mock <IActorCache <DummyActor> >();
            ActorCache          = MockActorCache.Object;

            MockActorStore = new Mock <IActorStore <DummyActor> >();
            ActorStore     = MockActorStore.Object;

            Agent = new DefaultAgent <DummyActor>(ActorCache, ActorStore, ActorFactory, new Memoizer());
        }
Beispiel #2
0
        public static void WireupAgentMocks()
        {
            ActorFactory.Called = 0;
            MockActorCache = new Mock<IActorCache<DummyActor>>();
            ActorCache = MockActorCache.Object;

            MockActorStore = new Mock<IActorStore<DummyActor>>();
            ActorStore = MockActorStore.Object;

            Agent = new DefaultAgent<DummyActor>(ActorCache, ActorStore, ActorFactory, new Memoizer());
        }