Add starter project for Chapter 13

This commit is contained in:
Alvin Ashcraft
2023-09-16 14:46:58 -04:00
parent 48f651f395
commit 5803bc2363
69 changed files with 2906 additions and 0 deletions
@@ -0,0 +1,16 @@
namespace UnoMediaCollection.DataContracts
{
/// <summary>
/// A Weather Forecast for a specific date
/// </summary>
/// <param name="Date">Gets the Date of the Forecast.</param>
/// <param name="TemperatureC">Gets the Forecast Temperature in Celsius.</param>
/// <param name="Summary">Get a description of how the weather will feel.</param>
public record WeatherForecast(DateOnly Date, double TemperatureC, string? Summary)
{
/// <summary>
/// Gets the Forecast Temperature in Fahrenheit
/// </summary>
public double TemperatureF => 32 + (TemperatureC * 9 / 5);
}
}