예제 #1
0
        public void ShouldRetornWhenDoNotFindAObject()
        {
            var queryTest = QueryTodoMock.GetAllTodos()
                            .AsQueryable()
                            .Where(ToDoQueries.GetAllUsers("Matheus Angelo"));


            Assert.AreEqual(queryTest.Count(), 1);
        }
예제 #2
0
        public void ShouldRetornNothingWhenDoNotFindAObject()
        {
            var queryTest = QueryTodoMock.GetAllTodos()
                            .AsQueryable()
                            .Where(ToDoQueries.GetAllUsers("Test"));


            Assert.AreEqual(queryTest.Count(), 0);
        }