public void QueryTest_HappyPath() { var readModelTestForQuery = new ReadModelTestForQuery(); var guidstring = Guid.NewGuid(); readModelTestForQuery.Handle(new TestEv(guidstring), 12); Assert.AreEqual(guidstring.ToString(), readModelTestForQuery.EntityId); }
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); }