public StatesTests() { A.CallTo(() => services.GetService(typeof(MyStatefulObject))) .Returns(state); sut = new StateFactory(pubSub, services, store, cache); sut.Connect(); }
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(); }