Skip to content

Commit

Permalink
Finished Website Milestone 3
Browse files Browse the repository at this point in the history
  • Loading branch information
matthewfschwartz committed Nov 12, 2020
1 parent ba2a564 commit 833b471
Show file tree
Hide file tree
Showing 40 changed files with 322 additions and 26 deletions.
4 changes: 4 additions & 0 deletions Data/ComboMeal.cs
Original file line number Diff line number Diff line change
Expand Up @@ -23,6 +23,10 @@ public class ComboMeal : IOrderItem, INotifyPropertyChanged
/// </summary>
public string Name { get { return "Combo Meal"; } }

public string ItemCategory { get; } = "Combo Meal";

public string Description { get; } = "A Combo Meal is composed of an Entree, Side, and Drink of choice. These options are listed below. Each Combo Meal comes with a discount of $1.00 off the total cost of their Combo Items.";

/// <summary>
/// Constructor for Combo meal. Attaches listeners for the current drink, side, and entree
/// </summary>
Expand Down
4 changes: 4 additions & 0 deletions Data/Drinks/AretinoAppleJuice.cs
Original file line number Diff line number Diff line change
Expand Up @@ -29,6 +29,10 @@ public class AretinoAppleJuice : Drink, IOrderItem
/// </summary>
public string Name { get { return this.ToString(); } }

public string Description { get; } = "Fresh squeezed apple juice.";

public string ItemCategory { get; } = "Drink";

private new Size size = Size.Small;
public override Size Size
{
Expand Down
4 changes: 4 additions & 0 deletions Data/Drinks/CandlehearthCoffee.cs
Original file line number Diff line number Diff line change
Expand Up @@ -29,6 +29,10 @@ public class CandlehearthCoffee : Drink, IOrderItem, INotifyPropertyChanged
/// </summary>
public string Name { get { return this.ToString(); } }

public string Description { get; } = "Fair trade, fresh ground dark roast coffee.";

public string ItemCategory { get; } = "Drink";

private new Size size = Size.Small;
public override Size Size
{
Expand Down
4 changes: 4 additions & 0 deletions Data/Drinks/MarkarthMilk.cs
Original file line number Diff line number Diff line change
Expand Up @@ -29,6 +29,10 @@ public class MarkarthMilk : Drink, IOrderItem, INotifyPropertyChanged
/// </summary>
public string Name { get { return this.ToString(); } }

public string Description { get; } = "Hormone-free organic 2% milk.";

public string ItemCategory { get; } = "Drink";

private new Size size = Size.Small;
public override Size Size
{
Expand Down
4 changes: 4 additions & 0 deletions Data/Drinks/SailorSoda.cs
Original file line number Diff line number Diff line change
Expand Up @@ -29,6 +29,10 @@ public class SailorSoda : Drink, IOrderItem, INotifyPropertyChanged
/// </summary>
public string Name { get { return this.ToString(); } }

public string Description { get; } = "An old-fashioned jerked soda, carbonated water and flavored syrup poured over a bed of crushed ice.";

public string ItemCategory { get; } = "Drink";

private new Size size = Size.Small;
public override Size Size
{
Expand Down
4 changes: 4 additions & 0 deletions Data/Drinks/WarriorWater.cs
Original file line number Diff line number Diff line change
Expand Up @@ -25,6 +25,10 @@ public class WarriorWater : Drink, IOrderItem, INotifyPropertyChanged
/// </summary>
public string Name { get { return this.ToString(); } }

public string Description { get; } = "It’s water. Just water.";

public string ItemCategory { get; } = "Drink";

private new Size size = Size.Small;
public override Size Size
{
Expand Down
4 changes: 4 additions & 0 deletions Data/Entrees/BriarheartBurger.cs
Original file line number Diff line number Diff line change
Expand Up @@ -24,6 +24,10 @@ public class BriarheartBurger : Entree, IOrderItem, INotifyPropertyChanged
/// </summary>
public string Name { get { return this.ToString(); } }

public string Description { get; } = "Single patty burger on a brioche bun. Comes with ketchup, mustard, pickle, and cheese.";

public string ItemCategory { get; } = "Entree";

/// <summary>
/// Gets the price of the burger
/// </summary>
Expand Down
4 changes: 4 additions & 0 deletions Data/Entrees/DoubleDraugr.cs
Original file line number Diff line number Diff line change
Expand Up @@ -24,6 +24,10 @@ public class DoubleDraugr : Entree, IOrderItem, INotifyPropertyChanged
/// </summary>
public string Name { get { return this.ToString(); } }

public string Description { get; } = "Double patty burger on a brioche bun. Comes with ketchup, mustard, pickle, cheese, tomato, lettuce, and mayo.";

public string ItemCategory { get; } = "Entree";

/// <summary>
/// Gets the price of the burger
/// </summary>
Expand Down
2 changes: 1 addition & 1 deletion Data/Entrees/Entree.cs
Original file line number Diff line number Diff line change
Expand Up @@ -18,7 +18,7 @@ public abstract class Entree
{
public event PropertyChangedEventHandler PropertyChanged;

public string ItemCategory = "Entree";


/// <summary>
/// Property invokation method for this class and derived classes to use
Expand Down
4 changes: 4 additions & 0 deletions Data/Entrees/GardenOrcOmelette.cs
Original file line number Diff line number Diff line change
Expand Up @@ -24,6 +24,10 @@ public class GardenOrcOmelette : Entree, IOrderItem, INotifyPropertyChanged
/// </summary>
public string Name { get { return this.ToString(); } }

public string Description { get; } = "Vegetarian. Two egg omelette packed with a mix of broccoli, mushrooms, and tomatoes. Topped with cheddar cheese.";

public string ItemCategory { get; } = "Entree";

/// <summary>
/// Gets the price of the omelette
/// </summary>
Expand Down
4 changes: 4 additions & 0 deletions Data/Entrees/PhillyPoacher.cs
Original file line number Diff line number Diff line change
Expand Up @@ -24,6 +24,10 @@ public class PhillyPoacher : Entree, IOrderItem, INotifyPropertyChanged
/// </summary>
public string Name { get { return this.ToString(); } }

public string Description { get; } = "Cheesesteak sandwich made from grilled sirloin, topped with onions on a fried roll.";

public string ItemCategory { get; } = "Entree";

/// <summary>
/// Gets the price of the sandwich
/// </summary>
Expand Down
4 changes: 4 additions & 0 deletions Data/Entrees/SmokehouseSkeleton.cs
Original file line number Diff line number Diff line change
Expand Up @@ -24,6 +24,10 @@ public class SmokehouseSkeleton : Entree, IOrderItem, INotifyPropertyChanged
/// </summary>
public string Name { get { return this.ToString(); } }

public string Description { get; } = "Put some meat on those bones with a small stack of pancakes. Includes sausage links, eggs, and hash browns on the side. Topped with the syrup of your choice.";

public string ItemCategory { get; } = "Entree";

/// <summary>
/// Gets the price of the combo
/// </summary>
Expand Down
4 changes: 4 additions & 0 deletions Data/Entrees/ThalmorTriple.cs
Original file line number Diff line number Diff line change
Expand Up @@ -24,6 +24,10 @@ public class ThalmorTriple : Entree, IOrderItem, INotifyPropertyChanged
/// </summary>
public string Name { get { return this.ToString(); } }

public string Description { get; } = "Think you are strong enough to take on the Thalmor? Inlcudes two 1/4lb patties with a 1/2lb patty inbetween with ketchup, mustard, pickle, cheese, tomato, lettuce, mayo, bacon, and an egg.";

public string ItemCategory { get; } = "Entree";

/// <summary>
/// Gets the price of the burger
/// </summary>
Expand Down
4 changes: 4 additions & 0 deletions Data/Entrees/ThugsTBone.cs
Original file line number Diff line number Diff line change
Expand Up @@ -26,6 +26,10 @@ public class ThugsTBone : Entree, IOrderItem, INotifyPropertyChanged
/// </summary>
public string Name { get { return this.ToString(); } }

public string Description { get; } = "Juicy T-Bone, not much else to say.";

public string ItemCategory { get; } = "Entree";

/// <summary>
/// Gets the price of the t-bone
/// </summary>
Expand Down
4 changes: 4 additions & 0 deletions Data/IOrderItem.cs
Original file line number Diff line number Diff line change
Expand Up @@ -16,6 +16,10 @@ namespace BleakwindBuffet.Data
/// </summary>
public interface IOrderItem : INotifyPropertyChanged
{
string ItemCategory { get; }

string Description { get; }

/// <summary>
/// Price of an order item
/// </summary>
Expand Down
4 changes: 4 additions & 0 deletions Data/Sides/DragonbornWaffleFries.cs
Original file line number Diff line number Diff line change
Expand Up @@ -29,6 +29,10 @@ public class DragonbornWaffleFries : Side, IOrderItem, INotifyPropertyChanged
/// </summary>
public string Name { get { return this.ToString(); } }

public string Description { get; } = "Crispy fried potato waffle fries.";

public string ItemCategory { get; } = "Side";

private new Size size = Size.Small;
public override Size Size
{
Expand Down
4 changes: 4 additions & 0 deletions Data/Sides/FriedMiraak.cs
Original file line number Diff line number Diff line change
Expand Up @@ -29,6 +29,10 @@ public class FriedMiraak : Side, IOrderItem, INotifyPropertyChanged
/// </summary>
public string Name { get { return this.ToString(); } }

public string Description { get; } = "Perfectly prepared hash brown pancakes.";

public string ItemCategory { get; } = "Side";

private new Size size = Size.Small;
public override Size Size
{
Expand Down
4 changes: 4 additions & 0 deletions Data/Sides/MadOtarGrits.cs
Original file line number Diff line number Diff line change
Expand Up @@ -29,6 +29,10 @@ public class MadOtarGrits : Side, IOrderItem, INotifyPropertyChanged
/// </summary>
public string Name { get { return this.ToString(); } }

public string Description { get; } = "Cheesey Grits.";

public string ItemCategory { get; } = "Side";

private new Size size = Size.Small;
public override Size Size
{
Expand Down
4 changes: 4 additions & 0 deletions Data/Sides/VokunSalad.cs
Original file line number Diff line number Diff line change
Expand Up @@ -29,6 +29,10 @@ public class VokunSalad : Side, IOrderItem, INotifyPropertyChanged
/// </summary>
public string Name { get { return this.ToString(); } }

public string Description { get; } = "A seasonal fruit salad of mellons, berries, mango, grape, apple, and oranges.";

public string ItemCategory { get; } = "Side";

private new Size size = Size.Small;
public override Size Size
{
Expand Down
10 changes: 10 additions & 0 deletions DataTests/UnitTests/DrinkTests/AretinoAppleJuiceTests.cs
Original file line number Diff line number Diff line change
Expand Up @@ -235,5 +235,15 @@ public void ShouldImplementINotifyPropertyChanged()
{
Assert.IsAssignableFrom<INotifyPropertyChanged>(new AretinoAppleJuice());
}

/// <summary>
/// Makes sure Description getter returns the correct description
/// </summary>
[Fact]
public void ShouldHaveCorrectDescription()
{
AretinoAppleJuice a = new AretinoAppleJuice();
Assert.Equal("Fresh squeezed apple juice.", a.Description);
}
}
}
10 changes: 10 additions & 0 deletions DataTests/UnitTests/DrinkTests/CandlehearthCoffeeTests.cs
Original file line number Diff line number Diff line change
Expand Up @@ -323,5 +323,15 @@ public void ShouldImplementINotifyPropertyChanged()
{
Assert.IsAssignableFrom<INotifyPropertyChanged>(new CandlehearthCoffee());
}

/// <summary>
/// Makes sure Description getter returns the correct description
/// </summary>
[Fact]
public void ShouldHaveCorrectDescription()
{
CandlehearthCoffee c = new CandlehearthCoffee();
Assert.Equal("Fair trade, fresh ground dark roast coffee.", c.Description);
}
}
}
10 changes: 10 additions & 0 deletions DataTests/UnitTests/DrinkTests/MarkarthMilkTests.cs
Original file line number Diff line number Diff line change
Expand Up @@ -235,5 +235,15 @@ public void ShouldImplementINotifyPropertyChanged()
{
Assert.IsAssignableFrom<INotifyPropertyChanged>(new MarkarthMilk());
}

/// <summary>
/// Makes sure Description getter returns the correct description
/// </summary>
[Fact]
public void ShouldHaveCorrectDescription()
{
MarkarthMilk m = new MarkarthMilk();
Assert.Equal("Hormone-free organic 2% milk.", m.Description);
}
}
}
10 changes: 10 additions & 0 deletions DataTests/UnitTests/DrinkTests/SailorSodaTests.cs
Original file line number Diff line number Diff line change
Expand Up @@ -306,5 +306,15 @@ public void ShouldImplementINotifyPropertyChanged()
{
Assert.IsAssignableFrom<INotifyPropertyChanged>(new SailorSoda());
}

/// <summary>
/// Makes sure Description getter returns the correct description
/// </summary>
[Fact]
public void ShouldHaveCorrectDescription()
{
SailorSoda s = new SailorSoda();
Assert.Equal("An old-fashioned jerked soda, carbonated water and flavored syrup poured over a bed of crushed ice.", s.Description);
}
}
}
10 changes: 10 additions & 0 deletions DataTests/UnitTests/DrinkTests/WarriorWaterTests.cs
Original file line number Diff line number Diff line change
Expand Up @@ -282,5 +282,15 @@ public void ShouldImplementINotifyPropertyChanged()
{
Assert.IsAssignableFrom<INotifyPropertyChanged>(new WarriorWater());
}

/// <summary>
/// Makes sure Description getter returns the correct description
/// </summary>
[Fact]
public void ShouldHaveCorrectDescription()
{
WarriorWater w = new WarriorWater();
Assert.Equal("It’s water. Just water.", w.Description);
}
}
}
10 changes: 10 additions & 0 deletions DataTests/UnitTests/EntreeTests/BriarheartBurgerTests.cs
Original file line number Diff line number Diff line change
Expand Up @@ -381,5 +381,15 @@ public void ShouldImplementINotifyPropertyChanged()
{
Assert.IsAssignableFrom<INotifyPropertyChanged>(new BriarheartBurger());
}

/// <summary>
/// Makes sure Description getter returns the correct description
/// </summary>
[Fact]
public void ShouldHaveCorrectDescription()
{
BriarheartBurger b = new BriarheartBurger();
Assert.Equal("Single patty burger on a brioche bun. Comes with ketchup, mustard, pickle, and cheese.", b.Description);
}
}
}
10 changes: 10 additions & 0 deletions DataTests/UnitTests/EntreeTests/DoubleDraugrTests.cs
Original file line number Diff line number Diff line change
Expand Up @@ -556,5 +556,15 @@ public void ShouldImplementINotifyPropertyChanged()
{
Assert.IsAssignableFrom<INotifyPropertyChanged>(new DoubleDraugr());
}

/// <summary>
/// Makes sure Description getter returns the correct description
/// </summary>
[Fact]
public void ShouldHaveCorrectDescription()
{
DoubleDraugr d = new DoubleDraugr();
Assert.Equal("Double patty burger on a brioche bun. Comes with ketchup, mustard, pickle, cheese, tomato, lettuce, and mayo.", d.Description);
}
}
}
10 changes: 10 additions & 0 deletions DataTests/UnitTests/EntreeTests/GardenOrcOmeletteTests.cs
Original file line number Diff line number Diff line change
Expand Up @@ -325,5 +325,15 @@ public void ShouldImplementINotifyPropertyChanged()
{
Assert.IsAssignableFrom<INotifyPropertyChanged>(new GardenOrcOmelette());
}

/// <summary>
/// Makes sure Description getter returns the correct description
/// </summary>
[Fact]
public void ShouldHaveCorrectDescription()
{
GardenOrcOmelette g = new GardenOrcOmelette();
Assert.Equal("Vegetarian. Two egg omelette packed with a mix of broccoli, mushrooms, and tomatoes. Topped with cheddar cheese.", g.Description);
}
}
}
10 changes: 10 additions & 0 deletions DataTests/UnitTests/EntreeTests/PhillyPoacherTests.cs
Original file line number Diff line number Diff line change
Expand Up @@ -267,5 +267,15 @@ public void ShouldImplementINotifyPropertyChanged()
{
Assert.IsAssignableFrom<INotifyPropertyChanged>(new PhillyPoacher());
}

/// <summary>
/// Makes sure Description getter returns the correct description
/// </summary>
[Fact]
public void ShouldHaveCorrectDescription()
{
PhillyPoacher p = new PhillyPoacher();
Assert.Equal("Cheesesteak sandwich made from grilled sirloin, topped with onions on a fried roll.", p.Description);
}
}
}
10 changes: 10 additions & 0 deletions DataTests/UnitTests/EntreeTests/SmokehouseSkeletonTests.cs
Original file line number Diff line number Diff line change
Expand Up @@ -325,5 +325,15 @@ public void ShouldImplementINotifyPropertyChanged()
{
Assert.IsAssignableFrom<INotifyPropertyChanged>(new SmokehouseSkeleton());
}

/// <summary>
/// Makes sure Description getter returns the correct description
/// </summary>
[Fact]
public void ShouldHaveCorrectDescription()
{
SmokehouseSkeleton s = new SmokehouseSkeleton();
Assert.Equal("Put some meat on those bones with a small stack of pancakes. Includes sausage links, eggs, and hash browns on the side. Topped with the syrup of your choice.", s.Description);
}
}
}
10 changes: 10 additions & 0 deletions DataTests/UnitTests/EntreeTests/ThalmorTripleTests.cs
Original file line number Diff line number Diff line change
Expand Up @@ -670,5 +670,15 @@ public void ShouldImplementINotifyPropertyChanged()
{
Assert.IsAssignableFrom<INotifyPropertyChanged>(new ThalmorTriple());
}

/// <summary>
/// Makes sure Description getter returns the correct description
/// </summary>
[Fact]
public void ShouldHaveCorrectDescription()
{
ThalmorTriple t = new ThalmorTriple();
Assert.Equal("Think you are strong enough to take on the Thalmor? Inlcudes two 1/4lb patties with a 1/2lb patty inbetween with ketchup, mustard, pickle, cheese, tomato, lettuce, mayo, bacon, and an egg.", t.Description);
}
}
}
Loading

0 comments on commit 833b471

Please sign in to comment.