Skip to content

Commit

Permalink
fix tests
Browse files Browse the repository at this point in the history
  • Loading branch information
ardalis committed Sep 11, 2024
1 parent ed54e92 commit 67d9f10
Showing 1 changed file with 5 additions and 0 deletions.
5 changes: 5 additions & 0 deletions sample/Ardalis.Result.Sample.Core/Model/WeatherForecast.cs
Original file line number Diff line number Diff line change
@@ -1,15 +1,20 @@
using System;
using System.Text.Json.Serialization;

namespace Ardalis.Result.Sample.Core.Model
{
public class WeatherForecast
{
[JsonPropertyName("date")]
public DateTime Date { get; set; }

[JsonPropertyName("temperatureC")]
public int TemperatureC { get; set; }

[JsonPropertyName("temperatureF")]
public int TemperatureF => 32 + (int)(TemperatureC / 0.5556);

[JsonPropertyName("summary")]
public string Summary { get; set; } = String.Empty;
}
}

0 comments on commit 67d9f10

Please sign in to comment.