public void SqlSysDatabase_SqlSysDatabaseTest() { using (var sut = new SqlSysUtiltiy()) { sut.TransConnection = new SqlTransConnection(TestCfg.Get().ConnectionString); sut.Dispose(); } }
public void SqlSysDatabase_ReadColumnsTest() { using (var sut = new SqlSysUtiltiy()) { sut.TransConnection = new SqlTransConnection(TestCfg.Get().ConnectionString); var act = sut.ReadColumns(); Assert.True(act.Count >= 1); } }
public void SqlSysDatabase_ReadServerTest() { using (var sut = new SqlSysUtiltiy()) { sut.TransConnection = new SqlTransConnection(TestCfg.Get().ConnectionString); var act = sut.ReadServer(); Assert.NotNull(act); } }
public void SqlSysDatabase_ReadAllTest() { using (var sut = new SqlSysUtiltiy()) { sut.TransConnection = new SqlTransConnection(TestCfg.Get().ConnectionString); var act = sut.ReadAllFromDatabase(null); Assert.True(act.AllObjectsById.Count > 0); Assert.True(act.GetTables().Count > 0); Assert.True(act.GetViews().Count > 0); } }