示例#1
0
        public void TestGetNextId()
        {
            JsonRepository <TestEntity> repo = new JsonRepository <TestEntity>();
            int        id = 7;
            TestEntity te = new TestEntity(id);

            repo.Save(te);

            Assert.IsTrue(repo.GetNextId() == id + 1);

            Directory.Delete(repo.FolderPath, true);
        }
示例#2
0
        public void TestGetNextId()
        {
            JsonRepository<TestEntity> repo = new JsonRepository<TestEntity>();
            int id = 7;
            TestEntity te = new TestEntity(id);
            repo.Save(te);

            Assert.IsTrue(repo.GetNextId() == id + 1);

            Directory.Delete(repo.FolderPath, true);
        }