public void verify_basic_delete()
        {
            var rm = new SampleReadModelTestId();

            rm.Id    = new TestId(1);
            rm.Value = "test";
            sut.Insert(new SampleAggregateCreated(), rm);
            var all = sut.All.ToList();

            Assert.That(all, Has.Count.EqualTo(1));

            sut.Delete(new SampleAggregateInvalidated(), rm.Id);
            all = sut.All.ToList();
            Assert.That(all, Has.Count.EqualTo(0));
        }
        public void verify_basic_update()
        {
            var rm = new SampleReadModelTestId();

            rm.Id    = new TestId(1);
            rm.Value = "test";
            sut.Insert(new SampleAggregateCreated(), rm);
            rm.Value = "test2";
            sut.Save(new SampleAggregateTouched(), rm);
            var all = sut.All.ToList();

            Assert.That(all, Has.Count.EqualTo(1));
            var loaded = all.First();

            Assert.That(loaded.Value, Is.EqualTo("test2"));
        }