Пример #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);
        }