예제 #1
0
        public StatesTests()
        {
            A.CallTo(() => services.GetService(typeof(MyStatefulObject)))
            .Returns(state);

            sut = new StateFactory(pubSub, services, store, cache);
            sut.Connect();
        }
예제 #2
0
        public StateSnapshotTests()
        {
            A.CallTo(() => services.GetService(typeof(MyStatefulObject)))
            .Returns(statefulObject);
            A.CallTo(() => services.GetService(typeof(ISnapshotStore <int, string>)))
            .Returns(snapshotStore);

            sut = new StateFactory(pubSub, cache, eventStore, eventDataFormatter, services, streamNameResolver);
            sut.Connect();
        }