Esempio n. 1
0
        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);
        }