Example #1
0
        public void GetQueriesFromListById_Test()
        {
            // Arrange
            List <int> identifiers = new List <int>()
            {
                0, 1
            };

            // Act
            IEnumerable <SqlQuery> queries = queryRepo.GetQueriesFromListById(identifiers);

            // Assert
            foreach (SqlQuery query in queries)
            {
                Assert.IsTrue(identifiers.Contains(query.SqlQueryId));
            }
            Assert.AreEqual(queries.Count(), queriesDbSet.Count());
        }