Skip to content

Commit

Permalink
Fix Breaking Changes
Browse files Browse the repository at this point in the history
  • Loading branch information
wbaldoumas committed Jan 21, 2025
1 parent 3c63f1b commit 63fef7b
Show file tree
Hide file tree
Showing 8 changed files with 18 additions and 11 deletions.
7 changes: 7 additions & 0 deletions global.json
Original file line number Diff line number Diff line change
@@ -0,0 +1,7 @@
{
"sdk": {
"version": "9.0.102",
"rollForward": "latestFeature",
"allowPrerelease": false
}
}
2 changes: 1 addition & 1 deletion src/BaroquenMelody.App.Components/Layout/MainLayout.razor
Original file line number Diff line number Diff line change
Expand Up @@ -49,7 +49,7 @@

private void OpenAbout()
{
DialogService.Show<About>(
DialogService.ShowAsync<About>(
"About Baroquen Melody",
new DialogOptions
{
Expand Down
2 changes: 1 addition & 1 deletion src/BaroquenMelody.App.Components/Pages/Home.razor
Original file line number Diff line number Diff line change
Expand Up @@ -121,7 +121,7 @@
case CompositionStep.Complete when _tabs?.ActivePanel != _compositionTab:
Snackbar.Add("Composition complete!", Severity.Success, snackbarOptions =>
{
snackbarOptions.Onclick = _ =>
snackbarOptions.OnClick = _ =>
{
ActivateCompositionTab();

Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -11,7 +11,7 @@
Label="Enable"
Value="IsEnabled"
Color="Color.Tertiary"
LabelPosition="LabelPosition.Start"
LabelPlacement="Placement.Start"
ThumbIcon="@IsEnabledIcon"
Disabled="IsLocked"
ThumbIconColor="Color.Dark"
Expand All @@ -20,7 +20,7 @@
Label="Lock"
Value="IsLocked"
Color="Color.Primary"
LabelPosition="LabelPosition.Start"
LabelPlacement="Placement.Start"
ThumbIconColor="Color.Dark"
ThumbIcon="@IsLockedIcon"
ValueChanged="IsLockedChanged"/>
Expand All @@ -32,7 +32,7 @@
Label="Enable"
Value="IsEnabled"
Color="Color.Tertiary"
LabelPosition="LabelPosition.Start"
LabelPlacement="Placement.Start"
ThumbIconColor="Color.Dark"
Disabled="IsLocked"
ThumbIcon="@IsEnabledIcon"
Expand All @@ -41,7 +41,7 @@
Label="Lock"
Value="IsLocked"
Color="Color.Primary"
LabelPosition="LabelPosition.Start"
LabelPlacement="Placement.Start"
ThumbIconColor="Color.Dark"
ThumbIcon="@IsLockedIcon"
ValueChanged="IsLockedChanged"/>
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -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));

Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -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()
{
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -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)]
Expand All @@ -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]
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -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)
{
Expand Down

0 comments on commit 63fef7b

Please sign in to comment.