Advertisement
Guest User

Untitled

a guest
Aug 22nd, 2017
121
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 2.32 KB | None | 0 0
  1. public class MockProduct : IProductRepository
  2. {
  3. public IEnumerable<Product> Products
  4. {
  5. get {
  6. return new List<Product>
  7. {
  8. new Product { ProductName="Kayak", Description="A boat for one person", Price=275.00m, Category="Watersports"},
  9. new Product { ProductName="Unsteady Chair", Description="Secretly give your opponent a disadvantage", Price=29.95m, Category="Chess"},
  10. new Product { ProductName="Lifejacket", Description="Protective and fashionable", Price=48.95m, Category="Watersports"},
  11. new Product { ProductName="Spalding Ball", Description="NBA official Basketball", Price=160.00m, Category="Basketball"},
  12. new Product { ProductName="Corner flags", Description="Give your playing field that professional touch", Price=34.95m, Category="Soccer"},
  13. new Product { ProductName="Stadium", Description="Flat-packed 35,000-seat stadium", Price=79500.00m, Category="Soccer"},
  14. new Product { ProductName="Ring Net", Description="NBA size ring nets", Price=60.00m, Category="Basketball"},
  15. new Product { ProductName="Human Chess", Description="A fun game for the whole family", Price=75.00m, Category="Chess"},
  16. new Product { ProductName="Bling-bling King", Description="Gold-plated, diamond-studded King", Price=1200.00m, Category="Chess"},
  17. new Product { ProductName="Dark Night", Description="Titanium-plated Knight", Price=800.00m, Category="Chess"},
  18. new Product { ProductName="Shoe", Description="Studded shoes", Price=950.00m, Category="Soccer"},
  19. new Product { ProductName="Jersey", Description="Air Jersey", Price=1200.00m, Category="Soccer"}
  20. };
  21. }
  22. }
  23. public Product AddProduct(Product product)
  24. {
  25. throw new NotImplementedException();
  26. }
  27.  
  28. public Product DeleteProduct(int productId)
  29. {
  30. throw new NotImplementedException();
  31. }
  32.  
  33. public Product GetProduct(int productId)
  34. {
  35. throw new NotImplementedException();
  36. }
  37.  
  38. public Product UpdateProduct(Product product)
  39. {
  40. throw new NotImplementedException();
  41. }
  42. }
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement