public void GetOutputTable_Test() { // Arrange int tablesCountBeforeAct = tablesDbSet.Count(); int id = tablesDbSet.First().OutputTableId; // Act OutputTable outputTable = outRepo.Get(id); // Assert Assert.AreEqual(tablesCountBeforeAct, tablesDbSet.Count()); Assert.AreEqual(id, outputTable.OutputTableId); Assert.AreEqual(outputTable.FileName, tablesDbSet.Find(id).FileName); }
public void GetQueryNameById_Test() { // Arrange int queriesCountBeforeAct = queriesDbSet.Count(); int id = queriesDbSet.First().SqlQueryId; string queryName = queriesDbSet.Find(id).SqlQueryName; // Act string resultName = queryRepo.GetQueryNameById(id); // Arrange Assert.AreEqual(queriesCountBeforeAct, queriesDbSet.Count()); Assert.AreEqual(queryName, resultName); }