Initial commit

This commit is contained in:
github-classroom[bot] 2025-02-25 17:10:54 +00:00 committed by GitHub
commit dcabbbaf15
No known key found for this signature in database
GPG key ID: B5690EEEBB952194
26 changed files with 5246 additions and 0 deletions

32
Transport/Rickshaw.cs Normal file
View file

@ -0,0 +1,32 @@
namespace Transport;
/// <summary>
/// Represents a rickshaw which can be rented for a ride
/// </summary>
/// <inheritdoc cref="Vehicle" />
public sealed class Rickshaw : Vehicle
{
/// <summary>
/// Name of the worksheet which contains the basic information of all rickshaws
/// </summary>
public const string WorksheetName = $"{nameof(Rickshaw)}s";
private Rickshaw(int id, Color color, int weight, double initialMileage)
: base(id, color, weight, initialMileage) { }
public override decimal BasePrice => -1; // TODO
public override decimal PricePerKM => -1; // TODO
public override decimal CostPerKM => -1; // TODO
/// <summary>
/// Creates a list of rickshaws by parsing the data from the given worksheet.
/// Invalid rows are skipped.
/// </summary>
/// <param name="worksheet">Worksheet to process</param>
/// <returns>A list of rickshaws</returns>
public static List<Rickshaw> CreateFromWorksheet(IXLWorksheet worksheet)
{
// TODO
return null!;
}
}