From cc4487abbfa3550df1eb62199b21714ef6c6a61c Mon Sep 17 00:00:00 2001
From: "renovate[bot]" <29139614+renovate[bot]@users.noreply.github.com>
Date: Mon, 20 Jan 2025 18:06:49 -0800
Subject: [PATCH] Update NuGet Packages - Major Updates (major) (#231)
---
global.json | 7 +++++++
.../BaroquenMelody.App.Components.csproj | 4 ++--
src/BaroquenMelody.App.Components/Layout/MainLayout.razor | 2 +-
src/BaroquenMelody.App.Components/Pages/Home.razor | 2 +-
.../Shared/CardHeaderSwitch.razor | 8 ++++----
.../Shared/ConfirmCompositionDialogue.razor | 2 +-
.../Shared/SaveCompositionConfigurationDialog.razor | 2 +-
src/BaroquenMelody.App/BaroquenMelody.App.csproj | 2 +-
.../BaroquenMelody.Infrastructure.Tests.csproj | 2 +-
.../Random/ThreadLocalRandomTests.cs | 4 ++--
.../BaroquenMelody.Library.Tests.csproj | 2 +-
.../Composers/ComposerTests.cs | 2 +-
12 files changed, 23 insertions(+), 16 deletions(-)
create mode 100644 global.json
diff --git a/global.json b/global.json
new file mode 100644
index 00000000..d82ced93
--- /dev/null
+++ b/global.json
@@ -0,0 +1,7 @@
+{
+ "sdk": {
+ "version": "9.0.102",
+ "rollForward": "latestFeature",
+ "allowPrerelease": false
+ }
+}
diff --git a/src/BaroquenMelody.App.Components/BaroquenMelody.App.Components.csproj b/src/BaroquenMelody.App.Components/BaroquenMelody.App.Components.csproj
index c89cbded..71f4c160 100644
--- a/src/BaroquenMelody.App.Components/BaroquenMelody.App.Components.csproj
+++ b/src/BaroquenMelody.App.Components/BaroquenMelody.App.Components.csproj
@@ -16,14 +16,14 @@
-
+
all
runtime; build; native; contentfiles; analyzers; buildtransitive
-
+
all
runtime; build; native; contentfiles; analyzers; buildtransitive
diff --git a/src/BaroquenMelody.App.Components/Layout/MainLayout.razor b/src/BaroquenMelody.App.Components/Layout/MainLayout.razor
index 50b358df..bcf90864 100644
--- a/src/BaroquenMelody.App.Components/Layout/MainLayout.razor
+++ b/src/BaroquenMelody.App.Components/Layout/MainLayout.razor
@@ -49,7 +49,7 @@
private void OpenAbout()
{
- DialogService.Show(
+ DialogService.ShowAsync(
"About Baroquen Melody",
new DialogOptions
{
diff --git a/src/BaroquenMelody.App.Components/Pages/Home.razor b/src/BaroquenMelody.App.Components/Pages/Home.razor
index 04153443..df28ec68 100644
--- a/src/BaroquenMelody.App.Components/Pages/Home.razor
+++ b/src/BaroquenMelody.App.Components/Pages/Home.razor
@@ -121,7 +121,7 @@
case CompositionStep.Complete when _tabs?.ActivePanel != _compositionTab:
Snackbar.Add("Composition complete!", Severity.Success, snackbarOptions =>
{
- snackbarOptions.Onclick = _ =>
+ snackbarOptions.OnClick = _ =>
{
ActivateCompositionTab();
diff --git a/src/BaroquenMelody.App.Components/Shared/CardHeaderSwitch.razor b/src/BaroquenMelody.App.Components/Shared/CardHeaderSwitch.razor
index c4e1d2a4..f5536262 100644
--- a/src/BaroquenMelody.App.Components/Shared/CardHeaderSwitch.razor
+++ b/src/BaroquenMelody.App.Components/Shared/CardHeaderSwitch.razor
@@ -11,7 +11,7 @@
Label="Enable"
Value="IsEnabled"
Color="Color.Tertiary"
- LabelPosition="LabelPosition.Start"
+ LabelPlacement="Placement.Start"
ThumbIcon="@IsEnabledIcon"
Disabled="IsLocked"
ThumbIconColor="Color.Dark"
@@ -20,7 +20,7 @@
Label="Lock"
Value="IsLocked"
Color="Color.Primary"
- LabelPosition="LabelPosition.Start"
+ LabelPlacement="Placement.Start"
ThumbIconColor="Color.Dark"
ThumbIcon="@IsLockedIcon"
ValueChanged="IsLockedChanged"/>
@@ -32,7 +32,7 @@
Label="Enable"
Value="IsEnabled"
Color="Color.Tertiary"
- LabelPosition="LabelPosition.Start"
+ LabelPlacement="Placement.Start"
ThumbIconColor="Color.Dark"
Disabled="IsLocked"
ThumbIcon="@IsEnabledIcon"
@@ -41,7 +41,7 @@
Label="Lock"
Value="IsLocked"
Color="Color.Primary"
- LabelPosition="LabelPosition.Start"
+ LabelPlacement="Placement.Start"
ThumbIconColor="Color.Dark"
ThumbIcon="@IsLockedIcon"
ValueChanged="IsLockedChanged"/>
diff --git a/src/BaroquenMelody.App.Components/Shared/ConfirmCompositionDialogue.razor b/src/BaroquenMelody.App.Components/Shared/ConfirmCompositionDialogue.razor
index cb27044f..0a2d9cf8 100644
--- a/src/BaroquenMelody.App.Components/Shared/ConfirmCompositionDialogue.razor
+++ b/src/BaroquenMelody.App.Components/Shared/ConfirmCompositionDialogue.razor
@@ -19,7 +19,7 @@
@code {
- [CascadingParameter] private MudDialogInstance? MudDialog { get; set; }
+ [CascadingParameter] private IMudDialogInstance? MudDialog { get; set; }
private void SaveComposition() => MudDialog?.Close(DialogResult.Ok(true));
diff --git a/src/BaroquenMelody.App.Components/Shared/SaveCompositionConfigurationDialog.razor b/src/BaroquenMelody.App.Components/Shared/SaveCompositionConfigurationDialog.razor
index a2313e0c..423e4abd 100644
--- a/src/BaroquenMelody.App.Components/Shared/SaveCompositionConfigurationDialog.razor
+++ b/src/BaroquenMelody.App.Components/Shared/SaveCompositionConfigurationDialog.razor
@@ -27,7 +27,7 @@
@code {
private string ConfigurationName { get; set; } = string.Empty;
- [CascadingParameter] private MudDialogInstance? MudDialog { get; set; }
+ [CascadingParameter] private IMudDialogInstance? MudDialog { get; set; }
protected override void OnInitialized()
{
diff --git a/src/BaroquenMelody.App/BaroquenMelody.App.csproj b/src/BaroquenMelody.App/BaroquenMelody.App.csproj
index 86333f37..a3a59cfd 100644
--- a/src/BaroquenMelody.App/BaroquenMelody.App.csproj
+++ b/src/BaroquenMelody.App/BaroquenMelody.App.csproj
@@ -74,7 +74,7 @@
-
+
all
runtime; build; native; contentfiles; analyzers; buildtransitive
diff --git a/tests/BaroquenMelody.Infrastructure.Tests/BaroquenMelody.Infrastructure.Tests.csproj b/tests/BaroquenMelody.Infrastructure.Tests/BaroquenMelody.Infrastructure.Tests.csproj
index c1e9b917..5a5a3575 100644
--- a/tests/BaroquenMelody.Infrastructure.Tests/BaroquenMelody.Infrastructure.Tests.csproj
+++ b/tests/BaroquenMelody.Infrastructure.Tests/BaroquenMelody.Infrastructure.Tests.csproj
@@ -16,7 +16,7 @@
all
runtime; build; native; contentfiles; analyzers; buildtransitive
-
+
all
runtime; build; native; contentfiles; analyzers; buildtransitive
diff --git a/tests/BaroquenMelody.Infrastructure.Tests/Random/ThreadLocalRandomTests.cs b/tests/BaroquenMelody.Infrastructure.Tests/Random/ThreadLocalRandomTests.cs
index f6523a2c..541966f5 100644
--- a/tests/BaroquenMelody.Infrastructure.Tests/Random/ThreadLocalRandomTests.cs
+++ b/tests/BaroquenMelody.Infrastructure.Tests/Random/ThreadLocalRandomTests.cs
@@ -16,7 +16,7 @@ public void Next_ShouldReturnNumberInRange(int maxValue)
var result = ThreadLocalRandom.Next(maxValue);
// assert
- result.Should().BeGreaterOrEqualTo(0).And.BeLessThan(maxValue);
+ result.Should().BeGreaterThanOrEqualTo(0).And.BeLessThan(maxValue);
}
[TestCase(10, 20)]
@@ -28,7 +28,7 @@ public void Next_ShouldReturnNumberInRange(int minValue, int maxValue)
var result = ThreadLocalRandom.Next(minValue, maxValue);
// assert
- result.Should().BeGreaterOrEqualTo(minValue).And.BeLessThan(maxValue);
+ result.Should().BeGreaterThanOrEqualTo(minValue).And.BeLessThan(maxValue);
}
[Test]
diff --git a/tests/BaroquenMelody.Library.Tests/BaroquenMelody.Library.Tests.csproj b/tests/BaroquenMelody.Library.Tests/BaroquenMelody.Library.Tests.csproj
index ab44c45a..01c010a8 100644
--- a/tests/BaroquenMelody.Library.Tests/BaroquenMelody.Library.Tests.csproj
+++ b/tests/BaroquenMelody.Library.Tests/BaroquenMelody.Library.Tests.csproj
@@ -20,7 +20,7 @@
all
runtime; build; native; contentfiles; analyzers; buildtransitive
-
+
all
runtime; build; native; contentfiles; analyzers; buildtransitive
diff --git a/tests/BaroquenMelody.Library.Tests/Composers/ComposerTests.cs b/tests/BaroquenMelody.Library.Tests/Composers/ComposerTests.cs
index 7daa6b75..b14686ff 100644
--- a/tests/BaroquenMelody.Library.Tests/Composers/ComposerTests.cs
+++ b/tests/BaroquenMelody.Library.Tests/Composers/ComposerTests.cs
@@ -119,7 +119,7 @@ public void WhenComposeIsInvoked_ThenCompositionIsReturned()
// assert
composition.Should().NotBeNull();
- composition.Measures.Should().HaveCountGreaterOrEqualTo(_compositionConfiguration.MinimumMeasures);
+ composition.Measures.Should().HaveCountGreaterThanOrEqualTo(_compositionConfiguration.MinimumMeasures);
foreach (var measure in composition.Measures)
{