public void TestAddDataToSharedFolderDb() { foreach (var e in _entitiy1000) { _sharedFolderRepository.Save(e); } using var dbContext = new NetCoreSqliteDB.SqliteDBContext(_sharedFolderDbFilePath); var addedRowCount = dbContext.Table1.Count(); Assert.AreEqual(1000, addedRowCount); }
public void TestUpdateDataToSharedDB() { foreach (var e in _entitiy1000) { _sharedFolderRepository.Save(e); } using var dbContext = new NetCoreSqliteDB.SqliteDBContext(_sharedFolderDbFilePath); var updateedRowCount = (from e in dbContext.Table1 where e.P3 == "Edited" select e).Count(); Assert.AreEqual(1000, updateedRowCount); }