示例#1
0
        public void QueryTest_HappyPath()
        {
            var readModelTestForQuery = new ReadModelTestForQuery();

            var guidstring = Guid.NewGuid();

            readModelTestForQuery.Handle(new TestEv(guidstring), 12);

            Assert.AreEqual(guidstring.ToString(), readModelTestForQuery.EntityId);
        }
示例#2
0
        public void QueryTest_Versioned_HappyPath()
        {
            var readModelTestForQuery = new ReadModelTestForQuery();

            var guidstring = Guid.NewGuid();

            readModelTestForQuery.Handle(new TestEv2(guidstring), 14);

            Assert.AreEqual(guidstring.ToString(), readModelTestForQuery.EntityId);
            Assert.AreEqual(14, readModelTestForQuery.InnerVersion);
        }