public void ShouldRetornWhenDoNotFindAObject() { var queryTest = QueryTodoMock.GetAllTodos() .AsQueryable() .Where(ToDoQueries.GetAllUsers("Matheus Angelo")); Assert.AreEqual(queryTest.Count(), 1); }
public void ShouldRetornNothingWhenDoNotFindAObject() { var queryTest = QueryTodoMock.GetAllTodos() .AsQueryable() .Where(ToDoQueries.GetAllUsers("Test")); Assert.AreEqual(queryTest.Count(), 0); }