From a6a6ac038f04c866bb7243beaef11d57c23aa8c0 Mon Sep 17 00:00:00 2001 From: Ashley Strahle Date: Sat, 27 Aug 2022 11:01:56 +1000 Subject: [PATCH] Clean up --- PowerShellBlazor/Data/WeatherForecast.cs | 13 ------------ .../Data/WeatherForecastService.cs | 20 ------------------- 2 files changed, 33 deletions(-) delete mode 100644 PowerShellBlazor/Data/WeatherForecast.cs delete mode 100644 PowerShellBlazor/Data/WeatherForecastService.cs diff --git a/PowerShellBlazor/Data/WeatherForecast.cs b/PowerShellBlazor/Data/WeatherForecast.cs deleted file mode 100644 index 68c9921..0000000 --- a/PowerShellBlazor/Data/WeatherForecast.cs +++ /dev/null @@ -1,13 +0,0 @@ -namespace PowerShellBlazor.Data; - -public class WeatherForecast -{ - public DateTime Date { get; set; } - - public int TemperatureC { get; set; } - - public int TemperatureF => 32 + (int)(TemperatureC / 0.5556); - - public string? Summary { get; set; } -} - diff --git a/PowerShellBlazor/Data/WeatherForecastService.cs b/PowerShellBlazor/Data/WeatherForecastService.cs deleted file mode 100644 index 8fbb68c..0000000 --- a/PowerShellBlazor/Data/WeatherForecastService.cs +++ /dev/null @@ -1,20 +0,0 @@ -namespace PowerShellBlazor.Data; - -public class WeatherForecastService -{ - private static readonly string[] Summaries = new[] - { - "Freezing", "Bracing", "Chilly", "Cool", "Mild", "Warm", "Balmy", "Hot", "Sweltering", "Scorching" - }; - - public Task GetForecastAsync(DateTime startDate) - { - return Task.FromResult(Enumerable.Range(1, 5).Select(index => new WeatherForecast - { - Date = startDate.AddDays(index), - TemperatureC = Random.Shared.Next(-20, 55), - Summary = Summaries[Random.Shared.Next(Summaries.Length)] - }).ToArray()); - } -} -