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); }
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); }