This repository has been archived on 2023-10-28. You can view files and clone it, but cannot push or open issues or pull requests.
pwt-0x01-ng/Models/Database/ProductHelper.cs
surtur aa0196d168
All checks were successful
continuous-integration/drone/push Build is passing
chore: add "Similar" to mock product init
2021-02-13 17:37:23 +01:00

20 lines
789 B
C#

using System.Collections.Generic;
namespace pwt_0x01_ng.Models.Database
{
public static class ProductHelper
{
public static IList<Product> GenerateProduct()
{
IList<Product> products = new List<Product>()
{
new Product() { Name="a", Price=0, Description="aaaa", ImageSrc = "/images/banner1.svg", ImageAlt = "ASP.NET", Similar = {}},
new Product() { Name="b", Price=1, Description="bbbb", ImageSrc = "/images/banner2.svg", ImageAlt = "ASP.NET", Similar = {}},
new Product() { Name="c", Price=2, Description="cccc", ImageSrc = "/images/banner3.svg", ImageAlt = "ASP.NET", Similar = {}},
new Product() { Name="d", Price=3, Description="dddd", ImageSrc = "/images/ms_loves_linux.jpeg", ImageAlt = "msloveslinux", Similar = {}}
};
return products;
}
}
}