|
1 |
| -using Cosmetics.Contracts; |
2 |
| -using System; |
3 |
| -using System.Collections.Generic; |
4 |
| -using System.Linq; |
5 |
| -using System.Text; |
6 |
| -using System.Threading.Tasks; |
7 |
| - |
8 |
| -namespace Cosmetics.Cart |
9 |
| -{ |
10 |
| - public class ShoppingCart |
11 |
| - { |
12 |
| - private ICollection<IProduct> productList; |
13 |
| - |
14 |
| - public ShoppingCart() |
15 |
| - { |
16 |
| - this.ProductList = null; |
17 |
| - } |
18 |
| - |
19 |
| - public ICollection<IProduct> ProductList |
20 |
| - { |
21 |
| - get { return this.productList; } |
22 |
| - set { productList = value; } |
23 |
| - } |
24 |
| - |
25 |
| - public void AddProduct(IProduct product) |
26 |
| - { |
27 |
| - throw new NotImplementedException(); |
28 |
| - } |
29 |
| - |
30 |
| - public void RemoveProduct(IProduct product) |
31 |
| - { |
32 |
| - throw new NotImplementedException(); |
33 |
| - } |
34 |
| - |
35 |
| - public bool ContainsProduct(IProduct product) |
36 |
| - { |
37 |
| - throw new NotImplementedException(); |
38 |
| - } |
39 |
| - |
40 |
| - public decimal TotalPrice() |
41 |
| - { |
42 |
| - throw new NotImplementedException(); |
43 |
| - } |
44 |
| - } |
45 |
| -} |
| 1 | +using Cosmetics.Contracts; |
| 2 | +using System; |
| 3 | +using System.Collections.Generic; |
| 4 | +using System.Linq; |
| 5 | +using System.Text; |
| 6 | +using System.Threading.Tasks; |
| 7 | + |
| 8 | +namespace Cosmetics.Cart |
| 9 | +{ |
| 10 | + public class ShoppingCart |
| 11 | + { |
| 12 | + private ICollection<IProduct> productList; |
| 13 | + |
| 14 | + public ShoppingCart() |
| 15 | + { |
| 16 | + this.ProductList = null; |
| 17 | + } |
| 18 | + |
| 19 | + public ICollection<IProduct> ProductList |
| 20 | + { |
| 21 | + get { return this.productList; } |
| 22 | + set { productList = value; } |
| 23 | + } |
| 24 | + |
| 25 | + public void AddProduct(IProduct product) |
| 26 | + { |
| 27 | + throw new NotImplementedException(); |
| 28 | + } |
| 29 | + |
| 30 | + public void RemoveProduct(IProduct product) |
| 31 | + { |
| 32 | + throw new NotImplementedException(); |
| 33 | + } |
| 34 | + |
| 35 | + public bool ContainsProduct(IProduct product) |
| 36 | + { |
| 37 | + throw new NotImplementedException(); |
| 38 | + } |
| 39 | + |
| 40 | + public decimal TotalPrice() |
| 41 | + { |
| 42 | + throw new NotImplementedException(); |
| 43 | + } |
| 44 | + } |
| 45 | +} |
0 commit comments