Initial commit
This commit is contained in:
commit
dcabbbaf15
26 changed files with 5246 additions and 0 deletions
33
Transport/Model.cs
Normal file
33
Transport/Model.cs
Normal file
|
|
@ -0,0 +1,33 @@
|
|||
namespace Transport;
|
||||
|
||||
/// <summary>
|
||||
/// Possible vehicle colors
|
||||
/// </summary>
|
||||
public enum Color
|
||||
{
|
||||
Red,
|
||||
Blue,
|
||||
White,
|
||||
Grey,
|
||||
Black
|
||||
}
|
||||
|
||||
/// <summary>
|
||||
/// Available car brands
|
||||
/// </summary>
|
||||
public enum CarBrand
|
||||
{
|
||||
AlfaRomeo,
|
||||
BMW,
|
||||
Dacia,
|
||||
VW
|
||||
}
|
||||
|
||||
public sealed record Ride(string CustomerName, Vehicle Vehicle, double StartMileage, double EndMileage)
|
||||
{
|
||||
public double Distance => -1; // TODO
|
||||
public decimal TotalCost => -1; // TODO
|
||||
public decimal TotalPrice => -1; // TODO
|
||||
|
||||
private decimal TotalForDistance(decimal perKm) => -1; // TODO
|
||||
}
|
||||
Loading…
Add table
Add a link
Reference in a new issue