public List <Restaurant> Get(string orderPredicate)
        {
            var allRestaurants = _restaurantRepository.Get();

            var query = new RestaurantOrderQuery(orderPredicate, allRestaurants);

            return(query.AsExpression());
        }
        public void AsExpression_Default_ReturnsCorrectOrder()
        {
            var query = new RestaurantOrderQuery("junk", _restaurants);

            var result = query.AsExpression();

            Assert.IsTrue(result.First().Name == "Blah");
        }
        public void AsExpression_OnState_ReturnsCorrectOrder()
        {
            var query = new RestaurantOrderQuery("state", _restaurants);

            var result = query.AsExpression();

            Assert.IsTrue(result.First().State == "FL");
        }
        public void AsExpression_OnRating_ReturnsCorrectOrder()
        {
            var query = new RestaurantOrderQuery("rating", _restaurants);

            var result = query.AsExpression();

            Assert.IsTrue(result.First().Name == "NAA");
        }
        public void AsExpression_OnCity_ReturnsCorrectOrder()
        {
            var query = new RestaurantOrderQuery("city", _restaurants);

            var result = query.AsExpression();

            Assert.IsTrue(result.First().City == "Kansas City");
        }