using SportsStore.Domain.Abstract;
using System.Linq;
using SportsStore.Domain.Entities;
using System.Collections.Generic;
namespace SportsStore.Domain.Concrete
{
    public class FakeProductsRepository : IProductsRepository
    {
        // Zakodowana na stałe lista produktów 
        private static IQueryable<Product> fakeProducts = new List<Product> { 
            new Product { Name = "Piłka nożna", Price = 25 }, 
            new Product { Name = "Deska surfingowa", Price = 179 }, 
            new Product { Name = "Buty do biegania", Price = 95 } 
        }.AsQueryable();

        public IQueryable<Product> Products
        {
            get { return fakeProducts; }
        }


        public void SaveProduct(Product product)
        {
            throw new System.NotImplementedException();
        }


        public void DeleteProduct(Product product)
        {
            throw new System.NotImplementedException();
        }
    }
} 

