Example #1
0
        private static Product GenerateProduct()
        {
            var name = "GenericProduct";
            var price = rnd.Next(150);
            var newProduct = new Product(name, price);

            return newProduct;
        }
Example #2
0
 public int CompareTo(Product other)
 {
     return this.Price - other.Price;
 }