Ejemplo n.º 1
0
        public StateFactoryTests()
        {
            A.CallTo(() => services.GetService(typeof(MyStatefulObject)))
            .Returns(statefulObject);

            sut = new StateFactory(pubSub, cache, services);
            sut.Initialize();
        }
Ejemplo n.º 2
0
        public PersistenceSnapshotTests()
        {
            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.Initialize();
        }