Exemple #1
0
        public void store_and_retrieve()
        {
            var intVersion    = Guid.NewGuid();
            var stringVersion = Guid.NewGuid();

            theTracker.StoreVersion <IntDoc, int>(intDoc.Id, intVersion);
            theTracker.StoreVersion <StringDoc, string>(stringDoc.Id, stringVersion);

            theTracker.VersionFor <IntDoc, int>(intDoc.Id)
            .ShouldBe(intVersion);

            theTracker.VersionFor <StringDoc, string>(stringDoc.Id)
            .ShouldBe(stringVersion);
        }