public void save_get()
        {
            _sut.Save(new MySaga(), "id", true);
            var data = _sut.GetSaga("id", typeof(MySaga)) as MySaga;

            data.RawData["hi"].Should().Be("world");
        }
Esempio n. 2
0
        private void Setup()
        {
            _di.BeginLifetimeScope().Returns(_di);
            _di.Resolve <IStoreSagaState>().Returns(_storage);
            _di.Resolve(typeof(MySagaState)).Returns(_saga);

            _storage.GetSaga(Arg.Any <string>(), typeof(MySagaState)).Returns(_saga);
            _invoker.HandlerType.Returns(typeof(Handler));
            _invoker.InstantiateHandler(_di).Returns(_handler);
        }