Skip to content
GitLab
Projects
Groups
Snippets
/
Help
Help
Support
Community forum
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in / Register
Toggle navigation
Menu
Open sidebar
islater
cowboy-cafe
Commits
d249f786
Commit
d249f786
authored
Feb 06, 2020
by
Ian Slater
Browse files
Finshed implimentation of the Entree class
parent
b690faf8
Changes
10
Hide whitespace changes
Inline
Side-by-side
Data/AngryChicken.cs
View file @
d249f786
...
...
@@ -9,7 +9,7 @@ namespace CowboyCafe.Data
/// <summary>
/// The price of the Sandwich
/// </summary>
public
double
Price
public
override
double
Price
{
get
{
...
...
@@ -20,7 +20,7 @@ namespace CowboyCafe.Data
/// <summary>
/// The calories of the sandwich
/// </summary>
public
uint
Calories
public
override
uint
Calories
{
get
{
...
...
@@ -48,7 +48,7 @@ namespace CowboyCafe.Data
set
{
pickle
=
value
;
}
}
public
List
<
string
>
SpecialInstructions
public
override
List
<
string
>
SpecialInstructions
{
get
{
...
...
Data/CowpokeChili.cs
View file @
d249f786
...
...
@@ -51,7 +51,7 @@ namespace CowboyCafe.Data
/// <summary>
/// The price of the chili
/// </summary>
public
double
Price
public
override
double
Price
{
get
{
...
...
@@ -62,7 +62,7 @@ namespace CowboyCafe.Data
/// <summary>
/// The calories of the chili
/// </summary>
public
uint
Calories
public
override
uint
Calories
{
get
{
...
...
@@ -73,7 +73,7 @@ namespace CowboyCafe.Data
/// <summary>
/// Special instructions for the preparation of the chili
/// </summary>
public
List
<
string
>
SpecialInstructions
public
override
List
<
string
>
SpecialInstructions
{
get
{
...
...
Data/DakotaDoubleBurger.cs
View file @
d249f786
...
...
@@ -10,7 +10,7 @@ namespace CowboyCafe.Data
/// <summary>
/// The price of the burger
/// </summary>
public
double
Price
public
override
double
Price
{
get
{
...
...
@@ -21,7 +21,7 @@ namespace CowboyCafe.Data
/// <summary>
/// The calories of the burger
/// </summary>
public
uint
Calories
public
override
uint
Calories
{
get
{
...
...
@@ -110,7 +110,7 @@ namespace CowboyCafe.Data
set
{
mayo
=
value
;
}
}
public
List
<
string
>
SpecialInstructions
public
override
List
<
string
>
SpecialInstructions
{
get
{
...
...
Data/Entree.cs
0 → 100644
View file @
d249f786
using
System
;
using
System.Collections.Generic
;
using
System.Text
;
namespace
CowboyCafe.Data
{
public
abstract
class
Entree
{
/// <summary>
/// skeleton parameter for price variable
/// </summary>
public
abstract
double
Price
{
get
;
}
/// <summary>
/// skeleton parameter for the calories variable
/// </summary>
public
abstract
uint
Calories
{
get
;
}
/// <summary>
/// Skeleton parameter for the special instructions method
/// </summary>
public
abstract
List
<
string
>
SpecialInstructions
{
get
;
}
}
}
Data/Entrees.cs
deleted
100644 → 0
View file @
b690faf8
using
System
;
using
System.Collections.Generic
;
using
System.Text
;
namespace
CowboyCafe.Data
{
public
class
Entree
{
}
}
Data/PecosPulledPork.cs
View file @
d249f786
...
...
@@ -9,7 +9,7 @@ namespace CowboyCafe.Data
/// <summary>
/// The price of the pulled pork
/// </summary>
public
double
Price
public
override
double
Price
{
get
{
...
...
@@ -20,7 +20,7 @@ namespace CowboyCafe.Data
/// <summary>
/// The calories of the sandwich
/// </summary>
public
uint
Calories
public
override
uint
Calories
{
get
{
...
...
@@ -48,7 +48,7 @@ namespace CowboyCafe.Data
set
{
pickle
=
value
;
}
}
public
List
<
string
>
SpecialInstructions
public
override
List
<
string
>
SpecialInstructions
{
get
{
...
...
Data/RustlersRibs.cs
View file @
d249f786
...
...
@@ -10,7 +10,7 @@ namespace CowboyCafe.Data
/// <summary>
/// The price of the ribs
/// </summary>
public
double
Price
public
override
double
Price
{
get
{
...
...
@@ -21,7 +21,7 @@ namespace CowboyCafe.Data
/// <summary>
/// The calories of the ribs
/// </summary>
public
uint
Calories
public
override
uint
Calories
{
get
{
...
...
@@ -29,7 +29,7 @@ namespace CowboyCafe.Data
}
}
public
List
<
string
>
SpecialInstructions
public
override
List
<
string
>
SpecialInstructions
{
get
{
...
...
Data/TexasTripleBurger.cs
View file @
d249f786
...
...
@@ -10,7 +10,7 @@ namespace CowboyCafe.Data
/// <summary>
/// The price of the burger
/// </summary>
public
double
Price
public
override
double
Price
{
get
{
...
...
@@ -21,7 +21,7 @@ namespace CowboyCafe.Data
/// <summary>
/// The calories of the burger
/// </summary>
public
uint
Calories
public
override
uint
Calories
{
get
{
...
...
@@ -133,7 +133,7 @@ namespace CowboyCafe.Data
/// <summary>
///
/// </summary>
public
List
<
string
>
SpecialInstructions
public
override
List
<
string
>
SpecialInstructions
{
get
{
...
...
Data/Trailburger.cs
View file @
d249f786
...
...
@@ -10,7 +10,7 @@ namespace CowboyCafe.Data
/// <summary>
/// The price of the burger
/// </summary>
public
double
Price
public
override
double
Price
{
get
{
...
...
@@ -21,7 +21,7 @@ namespace CowboyCafe.Data
/// <summary>
/// The calories of the burger
/// </summary>
public
uint
Calories
public
override
uint
Calories
{
get
{
...
...
@@ -79,7 +79,7 @@ namespace CowboyCafe.Data
set
{
cheese
=
value
;
}
}
public
List
<
string
>
SpecialInstructions
public
override
List
<
string
>
SpecialInstructions
{
get
{
...
...
DataTests/UnitTests/BakedBeansTest.cs
View file @
d249f786
...
...
@@ -3,7 +3,7 @@ using System.Collections.Generic;
using
System.Text
;
using
Xunit
;
using
CowboyCafe.Data
;
/*
namespace
CowboyCafe.DataTests
{
public
class
BakedBeansTest
...
...
@@ -54,4 +54,3 @@ namespace CowboyCafe.DataTests
}
}
}
*/
\ No newline at end of file
Write
Preview
Supports
Markdown
0%
Try again
or
attach a new file
.
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment