Commit d593b05d authored by islater's avatar islater
Browse files

asdf

parent a95de5f1
......@@ -53,7 +53,7 @@ namespace CowboyCafe.Data
}
else if (Size == Size.Large)
{
return 610;
return 410;
}
throw new NotImplementedException("unknown size");
}
......@@ -64,23 +64,9 @@ namespace CowboyCafe.Data
/// <returns></returns>
public override string ToString()
{
String title="Baked Beans";
switch (Size)
{
case Size.Small:
title += ", small";
break;
case Size.Medium:
title += ", medium";
break;
case Size.Large:
title += ", large";
break;
default:
throw new NotImplementedException("unknown size");
}
String title = $"{ Enum.GetName(typeof(Size), Size)}";
title += " Baked Beans";
return title;
}
}
......
......@@ -64,25 +64,10 @@ namespace CowboyCafe.Data
/// <returns></returns>
public override string ToString()
{
String title = "Chillie Cheese Fries";
switch (Size)
{
case Size.Small:
title += ", small";
break;
case Size.Medium:
title += ", medium";
break;
case Size.Large:
title += ", large";
break;
default:
throw new NotImplementedException("unknown size");
}
String title = $"{ Enum.GetName(typeof(Size), Size)}";
title += " Chili Cheese Fries";
return title;
}
}
}
}
......@@ -64,22 +64,9 @@ namespace CowboyCafe.Data
/// <returns></returns>
public override string ToString()
{
String title = "Corn Dodger";
switch (Size)
{
case Size.Small:
title += ", small";
break;
case Size.Medium:
title += ", medium";
break;
case Size.Large:
title += ", large";
break;
default:
throw new NotImplementedException("unknown size");
}
String title = $"{ Enum.GetName(typeof(Size), Size)}";
title += " Corn Dodgers";
return title;
return title;
}
......
......@@ -9,7 +9,7 @@ using System.Text;
namespace CowboyCafe.Data
{
public class CowboyCoffe : Drink
public class CowboyCoffee : Drink
{
/// <summary>
/// Determines the size of the drink
......@@ -19,7 +19,7 @@ namespace CowboyCafe.Data
/// <summary>
/// Determines wether or not there is ice in the drink
/// </summary>
public override bool Ice { get; set; } = true;
public override bool Ice { get; set; } = false;
/// <summary>
/// determins if the coffe will have cream or not
......@@ -90,26 +90,12 @@ namespace CowboyCafe.Data
/// <returns></returns>
public override string ToString()
{
String title = "Cowboy Coffe";
String title = $"{ Enum.GetName(typeof(Size), Size)} ";
if (Decaf)
{
title += ", Decaf";
}
switch (Size)
{
case Size.Small:
title += ", small";
break;
case Size.Medium:
title += ", medium";
break;
case Size.Large:
title += ", large";
break;
default:
throw new NotImplementedException("unknown size");
title += "Decaf ";
}
title += "Cowboy Coffee";
return title;
}
......
......@@ -99,7 +99,7 @@ namespace CowboyCafe.Data
/// <returns></returns>
public override string ToString()
{
return "Cowpoke Chilli";
return "Cowpoke Chili";
}
}
......
<Project Sdk="Microsoft.NET.Sdk">
<PropertyGroup>
<TargetFramework>netcoreapp2.2</TargetFramework>
<TargetFramework>netcoreapp3.1</TargetFramework>
<AssemblyName>CowboyCafe.Data</AssemblyName>
<RootNamespace>CowboyCafe.Data</RootNamespace>
</PropertyGroup>
......
......@@ -33,7 +33,7 @@ namespace CowboyCafe.Data
switch (Size)
{
case (Size.Small):
return 2.10;
return 1.59;
case (Size.Medium):
return 2.10;
case (Size.Large):
......@@ -60,30 +60,53 @@ namespace CowboyCafe.Data
}
}
public override List<string> SpecialInstructions
{
get
{
List<string> instructions = new List<string>();
if (!Ice)
{
instructions.Add("Hold Ice");
}
return instructions;
}
}
/// <summary>
/// To string method tickets
/// </summary>
/// <returns></returns>
public override string ToString()
{
String title = "Jerked Soda";
title += $", { Enum.GetName(typeof(SodaFlavor), Flavor)}";
switch (Size)
String title = $"{ Enum.GetName(typeof(Size), Size)} ";
string flavorname = "";
switch (Flavor)
{
case Size.Small:
title += ", small";
case SodaFlavor.CreamSoda:
flavorname = "Cream Soda";
break;
case Size.Medium:
title += ", medium";
case SodaFlavor.BirchBeer:
flavorname = "Birch Beer";
break;
case Size.Large:
title += ", large";
case SodaFlavor.OrangeSoda:
flavorname = "Orange Soda";
break;
case SodaFlavor.RootBeer:
flavorname = "Root Beer";
break;
case SodaFlavor.Sarsparilla:
flavorname = "Sarsparilla";
break;
default:
throw new NotImplementedException("unknown size");
throw new InvalidOperationException("Unkown flavor");
}
title += $"{flavorname}";
title += " Jerked Soda";
return title;
}
......
......@@ -64,8 +64,8 @@ namespace CowboyCafe.Data
/// <returns></returns>
public override string ToString()
{
String title = "Pan de Campo";
title += $", { Enum.GetName(typeof(Size), Size)}";
String title = $"{ Enum.GetName(typeof(Size), Size)}";
title += " Pan de Campo";
return title;
}
......
......@@ -47,7 +47,7 @@ namespace CowboyCafe.Data
/// <returns></returns>
public override string ToString()
{
String title = "Rustlers Ribs";
String title = "Rustler's Ribs";
return title;
}
}
......
......@@ -13,7 +13,7 @@ namespace CowboyCafe.Data
{
CreamSoda,
OrangeSoda,
Sasparilla,
Sarsparilla,
BirchBeer,
RootBeer
}
......
......@@ -92,7 +92,7 @@ namespace CowboyCafe.Data
get
{
List<string> instructions = new List<string>();
if (Ice)
if (!Ice)
{
instructions.Add("Hold Ice");
}
......@@ -111,6 +111,15 @@ namespace CowboyCafe.Data
public override string ToString()
{
String title = $"{ Enum.GetName(typeof(Size), Size)}";
title += " Texas";
if (Sweet)
{
title += " Sweet";
}
else
{
title += " Plain";
}
title += " Tea";
return title;
}
......
......@@ -61,7 +61,7 @@ namespace CowboyCafe.Data
}
if (Lemon)
{
instructions.Add("Lemon");
instructions.Add("Add Lemon");
}
return instructions;
......
<Project Sdk="Microsoft.NET.Sdk">
<PropertyGroup>
<TargetFramework>netcoreapp2.2</TargetFramework>
<TargetFramework>netcoreapp3.1</TargetFramework>
<IsPackable>false</IsPackable>
......@@ -19,6 +19,7 @@
<ItemGroup>
<ProjectReference Include="..\Data\Data.csproj" />
<ProjectReference Include="..\PointOfSale\PointOfSale.csproj" />
</ItemGroup>
</Project>
......@@ -3,7 +3,7 @@ using System.Collections.Generic;
using System.Text;
using Xunit;
using CowboyCafe.Data;
/*
namespace CowboyCafe.DataTests
{
public class CowboyCoffeeTest
......@@ -125,4 +125,3 @@ namespace CowboyCafe.DataTests
}
}
}
*/
\ No newline at end of file
......@@ -6,7 +6,7 @@ using CowboyCafe.Data;
namespace CowboyCafe.DataTests
{
/*
public class DrinkTests
{
[Theory]
......@@ -20,6 +20,6 @@ namespace CowboyCafe.DataTests
Assert.IsAssignableFrom<Drink>(drink);
}
}
*/
}
......@@ -3,7 +3,7 @@ using System.Collections.Generic;
using System.Text;
using Xunit;
using CowboyCafe.Data;
/*
namespace CowboyCafe.DataTests
{
public class JerkedSodaTest
......@@ -119,4 +119,3 @@ namespace CowboyCafe.DataTests
}
}
}
*/
\ No newline at end of file
......@@ -3,7 +3,7 @@ using System.Collections.Generic;
using System.Text;
using Xunit;
using CowboyCafe.Data;
/*
namespace CowboyCafe.DataTests
{
public class SideTests
......@@ -21,4 +21,4 @@ namespace CowboyCafe.DataTests
}
}
}
*/
......@@ -3,7 +3,7 @@ using System.Collections.Generic;
using System.Text;
using Xunit;
using CowboyCafe.Data;
/*
namespace CowboyCafe.DataTests
{
public class TexasTeaTest
......@@ -128,4 +128,3 @@ namespace CowboyCafe.DataTests
}
}
}
*/
\ No newline at end of file
......@@ -3,7 +3,7 @@ using System.Collections.Generic;
using System.Text;
using Xunit;
using CowboyCafe.Data;
/*
namespace CowboyCafe.DataTests
{
public class ToStringTests
......@@ -117,4 +117,4 @@ namespace CowboyCafe.DataTests
}
}
*/
......@@ -3,7 +3,7 @@ using System.Collections.Generic;
using System.Text;
using Xunit;
using CowboyCafe.Data;
/*
namespace CowboyCafe.DataTests
{
public class WaterTest
......@@ -107,4 +107,3 @@ namespace CowboyCafe.DataTests
}
}
}
*/
\ No newline at end of file
Supports Markdown
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment