Example #1
0
        public void CheckWasProcessed_should_return_true_if_message_processed()
        {
            var sut     = new DummySagaState(Guid.NewGuid());
            var message = new StartDummySaga(Guid.NewGuid(), sut.Id);

            sut.SetAsProcessed(message);
            sut.CheckWasProcessed(message).Should().BeTrue();
        }
Example #2
0
        public void CheckWasProcessed_should_throw_ArgumentNullException_if_message_null()
        {
            var sut = new DummySagaState(Guid.NewGuid());

            Assert.Throws <ArgumentNullException>(() => sut.CheckWasProcessed((IMessage)null));
        }