forked from MachOneSoftware/PizzaBuddy
-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathRepo.cs
125 lines (119 loc) · 5.83 KB
/
Repo.cs
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
116
117
118
119
120
121
122
123
124
125
using System;
using System.Collections.Generic;
using System.Linq;
namespace MachOneSoftware.PizzaBuddy
{
static class Repo
{
private static Lazy<Dictionary<string, string[]>> _meatPizzas = new Lazy<Dictionary<string, string[]>>(() =>
new Dictionary<string, string[]>()
{
{ "Barbeque Chicken", new[] { "onion", "chicken", "bbq sauce"}},
{ "Beef Lovers", new[] { "pepperoni", "beef" } },
{ "Breakfast", new[] { "bacon", "boiled egg" } },
{ "Buffalo Chicken", new[] { "chicken", "buffalo sauce" } },
{ "Cheesesteak", new[] { "beef", "green pepper", "onion", "mushroom" } },
{ "Chicken Bacon Alfredo", new[] { "mushroom", "onion", "chicken", "bacon"} },
{ "Chicken Feast", new[] { "chicken", "mushroom", "sweetcorn" } },
{ "Deluxe Hawaiian", new[] { "ham", "bacon", "pineapple" } },
{ "Diavolo", new[] { "pepperoni", "salami", "onion" } },
{ "Four Seasons", new[] {"tomato", "mozzarella cheese", "basil leaves", "artichoke",
"fontina cheese", "mushroom", "red pepper", "provolone cheese", "potato",
"pecorino cheese" } },
{ "Hawaiian", new[] { "ham", "pineapple" } },
{ "Hawaiian Elvis", new[] { "canadian bacon", "pineapple", "sauerkraut" } },
{ "Meat Lovers", new[] { "pepperoni", "beef", "sausage", "ham" } },
{ "New York Classic", new[] { "double cheese", "pepperoni", "hot chorizo sausage"} },
{ "Pepperoni Bacon", new[] { "pepperoni", "bacon" } },
{ "Pepperoni Passion", new[] { "pepperoni" } },
{ "Pepperoni Veggie", new[] { "pepperoni", "onion", "green pepper" } },
{ "Philly Cheesesteak", new[] { "mozzarella cheese", "seasoned steak", "bell peppers"} },
{ "Prosciutto and Arugula", new[] { "mozzarella chesse", "parmesan", "prosciutto", "arugula" } },
{ "Ranch BBQ", new[] { "chicken", "pepperoni", "beef", "bacon"} },
{ "Regina", new[] { "ham", "artichoke", "mozzarella", "olive" } },
{ "Seafood", new[] { "shrimp", "anchovy" , "basil" } },
{ "Supreme", new[] { "pepperoni", "sausage", "mushroom", "green pepper", "onion" } },
{ "Texas BBQ", new[] { "chicken", "bacon", "onion", "red pepper", "green pepper" } },
{ "Tuna Supreme", new[] { "tuna", "sweetcorn", "onion" } }
}
);
private static Lazy<Dictionary<string, string[]>> _veggiePizzas = new Lazy<Dictionary<string, string[]>>(() =>
new Dictionary<string, string[]>()
{
{ "Balkan", new[] {"goat cheese", "cherry tomato", "black olive" }},
{ "Four cheese", new[] {"riccota", "parmigian", "mozzarella","gorgonzola" } },
{ "Margherita", new[] {"basil", "tomato", "garlic" } },
{ "Mushroom Broccoli", new[] {"mushroom", "broccoli" } },
{ "Neopolitan", new[] { "basil leaves", "tomato", "mozarella cheese"} },
{ "Parmigiana", new[] {"tomato", "eggplant" } },
{ "Spice Garden", new[] {"green pepper", "banana pepper", "jalapeño pepper" } },
{ "Spinach Delight", new[] {"spinach", "tomato" } },
{ "Veggie Lovers", new[] {"tomato", "olive", "spinach", "mushroom", "onion" } }
}
);
private static Lazy<string[]> _meats = new Lazy<string[]>(() =>
new[]
{
"anchovy",
"bacon",
"beef",
"boiled egg",
"canadian bacon",
"chicken",
"ham",
"hot chorizo sausage",
"pepperoni",
"prosciutto",
"salami",
"sausage",
"shrimp",
"steak",
"tuna"
}
);
private static Lazy<string[]> _veggies = new Lazy<string[]>(() =>
new[]
{
"artichoke",
"arugula",
"banana pepper",
"basil",
"basil leaves",
"bell peppers",
"black olive",
"broccoli",
"cherry tomato",
"eggplant",
"garlic",
"goat cheese",
"gorgonzola",
"green pepper",
"jalapeño pepper",
"mozzarella",
"mushroom",
"olive",
"onion",
"parmigian",
"pineapple",
"potato",
"red onion",
"red pepper",
"riccota",
"sauerkraut",
"spinach",
"sweetcorn",
"tomato"
}
);
public static IEnumerable<KeyValuePair<string, string[]>> MeatPizzas { get => _meatPizzas.Value; }
public static IEnumerable<KeyValuePair<string, string[]>> VeggiePizzas { get => _veggiePizzas.Value; }
public static IEnumerable<KeyValuePair<string, string[]>> AllPizzas { get => _meatPizzas.Value.Concat(_veggiePizzas.Value); }
public static string[] Meats { get => _meats.Value; }
public static string[] Veggies { get => _veggies.Value; }
public static string[] AllToppings { get => _veggies.Value.Concat(_meats.Value).ToArray(); }
}
enum PizzaType
{
Meat, Veggie, All
}
}