diff options
| author | marcinzelent <marcin@zelent.net> | 2021-02-21 14:13:49 +0100 |
|---|---|---|
| committer | marcinzelent <marcin@zelent.net> | 2019-12-20 14:21:37 +0100 |
| commit | b1eb36d3fbc5012b07489454a7452e8488507f6a (patch) | |
| tree | f6a9e6e561eabde5b06366a6aeac78df123ca917 /Models | |
Diffstat (limited to 'Models')
| -rw-r--r-- | Models/Pizza.cs | 36 | ||||
| -rw-r--r-- | Models/PizzaOrder.cs | 43 | ||||
| -rw-r--r-- | Models/Topping.cs | 29 |
3 files changed, 108 insertions, 0 deletions
diff --git a/Models/Pizza.cs b/Models/Pizza.cs new file mode 100644 index 0000000..6cc053c --- /dev/null +++ b/Models/Pizza.cs @@ -0,0 +1,36 @@ +using System.Collections.Generic; + +namespace KukaPizza.Models +{ + public class Pizza + { + private string _name; + private List<Topping> _toppings; + private double _price; + + public Pizza(string name, List<Topping> toppings, double price) + { + _name = name; + _toppings = toppings; + _price = price; + } + + public string Name { get { return _name; } } + public List<Topping> Toppings { get { return _toppi |