using System.Collections.Generic; namespace StoreData { public interface IShoppingCart { /// /// This method adds a product to the shopping cart /// /// The product to add void AddProduct(Product p); /// /// Remove product by number /// /// The index of the product to remove void RemoveProductByNumber(int index); /// /// Clears the entire shopping cart /// void Clear(); /// /// Calculate the sum of the cost of all products /// /// decimal TotalSum(); /// /// Returns true if cart is empty, otherwise false /// bool CartIsEmpty(); List Products { get; } } }