Weather Forecast
-
-
-
-
- @context.Date.ToShortDateString()
-
-
- @context.Temperatures.Average(temperature => temperature.Value).ToString("0")
-
-
-
+
+
+
@{
if (_weatherData.Any())
{
- The weather forecast shows the next @_weatherData.Count() days.
+ The weather forecast shows the next @_weatherData.Count days.
}
else
{
@@ -39,13 +33,7 @@
@code
{
- private IEnumerable> _weatherDataColumnDefinitions = new[]
- {
- new ColumnDefinition("Date", _ => _),
- new ColumnDefinition("Avg °C", _ => _)
- };
-
- private IEnumerable _weatherData = Array.Empty();
+ private ImmutableList _weatherData = ImmutableList.Empty;
protected override void OnInitialized()
{
@@ -62,7 +50,7 @@
{
if (result.IsSuccessful)
{
- _weatherData = result.Value;
+ _weatherData = ImmutableList.Empty.AddRange(result.Value);
}
}
}
diff --git a/examples/WeatherForecast/tests/WeatherForecast.InProcess.Tests/WeatherForecast.InProcess.Tests.csproj b/examples/WeatherForecast/tests/WeatherForecast.InProcess.Tests/WeatherForecast.InProcess.Tests.csproj
index 4a81ac8ae..f7905a324 100644
--- a/examples/WeatherForecast/tests/WeatherForecast.InProcess.Tests/WeatherForecast.InProcess.Tests.csproj
+++ b/examples/WeatherForecast/tests/WeatherForecast.InProcess.Tests/WeatherForecast.InProcess.Tests.csproj
@@ -11,7 +11,6 @@
-
-
+
diff --git a/examples/WeatherForecast/tests/WeatherForecast.Tests/WeatherForecast.Tests.csproj b/examples/WeatherForecast/tests/WeatherForecast.Tests/WeatherForecast.Tests.csproj
index d1405ee88..83a00bb66 100644
--- a/examples/WeatherForecast/tests/WeatherForecast.Tests/WeatherForecast.Tests.csproj
+++ b/examples/WeatherForecast/tests/WeatherForecast.Tests/WeatherForecast.Tests.csproj
@@ -12,7 +12,6 @@
-
-
+
diff --git a/src/Testcontainers/Testcontainers.csproj b/src/Testcontainers/Testcontainers.csproj
index abb2e8592..863c85ad1 100644
--- a/src/Testcontainers/Testcontainers.csproj
+++ b/src/Testcontainers/Testcontainers.csproj
@@ -3,13 +3,13 @@
netstandard2.0;netstandard2.1
Debug;Release
- AnyCPU
DotNet.Testcontainers
+
diff --git a/tests/Testcontainers.Commons/Testcontainers.Commons.csproj b/tests/Testcontainers.Commons/Testcontainers.Commons.csproj
index 659ae622e..f20f75262 100644
--- a/tests/Testcontainers.Commons/Testcontainers.Commons.csproj
+++ b/tests/Testcontainers.Commons/Testcontainers.Commons.csproj
@@ -3,7 +3,6 @@
netstandard2.0;netstandard2.1
Debug;Release
- AnyCPU
DotNet.Testcontainers.Commons
diff --git a/tests/Testcontainers.Platform.Linux.Tests/Testcontainers.Platform.Linux.Tests.csproj b/tests/Testcontainers.Platform.Linux.Tests/Testcontainers.Platform.Linux.Tests.csproj
index 7f7bf6d95..a05fe4237 100644
--- a/tests/Testcontainers.Platform.Linux.Tests/Testcontainers.Platform.Linux.Tests.csproj
+++ b/tests/Testcontainers.Platform.Linux.Tests/Testcontainers.Platform.Linux.Tests.csproj
@@ -5,7 +5,6 @@
false
false
Debug;Release
- AnyCPU
@@ -14,7 +13,6 @@
-
diff --git a/tests/Testcontainers.Platform.Windows.Tests/Testcontainers.Platform.Windows.Tests.csproj b/tests/Testcontainers.Platform.Windows.Tests/Testcontainers.Platform.Windows.Tests.csproj
index 7f7bf6d95..a05fe4237 100644
--- a/tests/Testcontainers.Platform.Windows.Tests/Testcontainers.Platform.Windows.Tests.csproj
+++ b/tests/Testcontainers.Platform.Windows.Tests/Testcontainers.Platform.Windows.Tests.csproj
@@ -5,7 +5,6 @@
false
false
Debug;Release
- AnyCPU
@@ -14,7 +13,6 @@
-
diff --git a/tests/Testcontainers.ResourceReaper.Tests/Testcontainers.ResourceReaper.Tests.csproj b/tests/Testcontainers.ResourceReaper.Tests/Testcontainers.ResourceReaper.Tests.csproj
index 3f5a9eeef..86dca3c52 100644
--- a/tests/Testcontainers.ResourceReaper.Tests/Testcontainers.ResourceReaper.Tests.csproj
+++ b/tests/Testcontainers.ResourceReaper.Tests/Testcontainers.ResourceReaper.Tests.csproj
@@ -5,7 +5,6 @@
false
false
Debug;Release
- AnyCPU
DotNet.Testcontainers.ResourceReaper.Tests
@@ -15,7 +14,6 @@
-
diff --git a/tests/Testcontainers.Tests/Testcontainers.Tests.csproj b/tests/Testcontainers.Tests/Testcontainers.Tests.csproj
index 0f61fee94..e82d1c1fb 100644
--- a/tests/Testcontainers.Tests/Testcontainers.Tests.csproj
+++ b/tests/Testcontainers.Tests/Testcontainers.Tests.csproj
@@ -5,7 +5,6 @@
false
false
Debug;Release
- AnyCPU
DotNet.Testcontainers.Tests
@@ -32,7 +31,6 @@
-