Esempio n. 1
0
        public void IsCompleted_should_return_true_after_state_is_marked_as_completed()
        {
            var state = new DummySagaState(Guid.NewGuid());

            state.MarkAsCompleted();
            state.IsCompleted().Should().BeTrue();
        }
Esempio n. 2
0
        public void IsCompleted_should_return_false_when_state_is_initialized_first_time()
        {
            var state = new DummySagaState(Guid.NewGuid());

            state.IsCompleted().Should().BeFalse();
        }