Skip to content

Commit

Permalink
Bump bunit, Microsoft.AspNetCore.Components.WebAssembly, Microsoft.Ex…
Browse files Browse the repository at this point in the history
…tensions.Configuration.Binder, Microsoft.Extensions.Configuration.Json, Microsoft.Extensions.Configuration and Microsoft.AspNetCore.Components.WebAssembly.Authentication in /src (#2950)

* Bump bunit, Microsoft.AspNetCore.Components.WebAssembly, Microsoft.Extensions.Configuration.Binder, Microsoft.Extensions.Configuration.Json, Microsoft.Extensions.Configuration and Microsoft.AspNetCore.Components.WebAssembly.Authentication

Bumps [bunit](https://github.com/bUnit-dev/bUnit), [Microsoft.AspNetCore.Components.WebAssembly](https://github.com/dotnet/aspnetcore), [Microsoft.Extensions.Configuration.Binder](https://github.com/dotnet/runtime), [Microsoft.Extensions.Configuration.Json](https://github.com/dotnet/runtime), [Microsoft.Extensions.Configuration](https://github.com/dotnet/runtime) and [Microsoft.AspNetCore.Components.WebAssembly.Authentication](https://github.com/dotnet/aspnetcore). These dependencies needed to be updated together.

Updates `bunit` from 1.25.3 to 1.28.9
- [Release notes](https://github.com/bUnit-dev/bUnit/releases)
- [Changelog](https://github.com/bUnit-dev/bUnit/blob/main/CHANGELOG.md)
- [Commits](bUnit-dev/bUnit@v1.25.3...v1.28.9)

Updates `Microsoft.AspNetCore.Components.WebAssembly` from 8.0.2 to 9.0.0-preview.3.24172.13
- [Release notes](https://github.com/dotnet/aspnetcore/releases)
- [Changelog](https://github.com/dotnet/aspnetcore/blob/main/docs/ReleasePlanning.md)
- [Commits](dotnet/aspnetcore@v8.0.2...v9.0.0-preview.3.24172.13)

Updates `Microsoft.Extensions.Configuration.Binder` from 7.0.4 to 9.0.0-preview.3.24172.9
- [Release notes](https://github.com/dotnet/runtime/releases)
- [Commits](dotnet/runtime@v7.0.4...v9.0.0-preview.3.24172.9)

Updates `Microsoft.Extensions.Configuration.Json` from 8.0.0 to 9.0.0-preview.3.24172.9
- [Release notes](https://github.com/dotnet/runtime/releases)
- [Commits](dotnet/runtime@v8.0.0...v9.0.0-preview.3.24172.9)

Updates `Microsoft.Extensions.Configuration` from 8.0.0 to 9.0.0-preview.3.24172.9
- [Release notes](https://github.com/dotnet/runtime/releases)
- [Commits](dotnet/runtime@v8.0.0...v9.0.0-preview.3.24172.9)

Updates `Microsoft.AspNetCore.Components.WebAssembly.Authentication` from 8.0.2 to 9.0.0-preview.3.24172.13
- [Release notes](https://github.com/dotnet/aspnetcore/releases)
- [Changelog](https://github.com/dotnet/aspnetcore/blob/main/docs/ReleasePlanning.md)
- [Commits](dotnet/aspnetcore@v8.0.2...v9.0.0-preview.3.24172.13)

---
updated-dependencies:
- dependency-name: bunit
  dependency-type: direct:production
  update-type: version-update:semver-minor
- dependency-name: Microsoft.AspNetCore.Components.WebAssembly
  dependency-type: direct:production
  update-type: version-update:semver-major
- dependency-name: Microsoft.Extensions.Configuration.Binder
  dependency-type: direct:production
  update-type: version-update:semver-major
- dependency-name: Microsoft.Extensions.Configuration.Json
  dependency-type: direct:production
  update-type: version-update:semver-major
- dependency-name: Microsoft.Extensions.Configuration
  dependency-type: direct:production
  update-type: version-update:semver-major
- dependency-name: Microsoft.AspNetCore.Components.WebAssembly.Authentication
  dependency-type: direct:production
  update-type: version-update:semver-major
...

Signed-off-by: dependabot[bot] <support@github.com>

* Add discard variable sot all unused returns

---------

Signed-off-by: dependabot[bot] <support@github.com>
Co-authored-by: dependabot[bot] <49699333+dependabot[bot]@users.noreply.github.com>
Co-authored-by: Kevin BEAUGRAND <contact@kbeaugrand.fr>
  • Loading branch information
dependabot[bot] and kbeaugrand authored Apr 21, 2024
1 parent b881ff6 commit b5b7fb5
Show file tree
Hide file tree
Showing 17 changed files with 49 additions and 49 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -40,7 +40,7 @@ public async Task AwsGreengrassComponentDialog_ClickOnCancel_DialogCanceled()
};

IDialogReference dialogReference = null;
await cut.InvokeAsync(() => dialogReference = service?.Show<AwsGreengrassComponentDialog>(string.Empty, parameters));
_ = await cut.InvokeAsync(() => dialogReference = service?.Show<AwsGreengrassComponentDialog>(string.Empty, parameters));

// Act
cut.Find("#greengrass-component-cancel").Click();
Expand Down Expand Up @@ -76,7 +76,7 @@ public async Task AwsGreengrassComponentDialog_CreateAWSComponentAndSubmit_EdgeM
};

IDialogReference dialogReference = null;
await cut.InvokeAsync(() => dialogReference = service?.Show<AwsGreengrassComponentDialog>(string.Empty, parameters));
_ = await cut.InvokeAsync(() => dialogReference = service?.Show<AwsGreengrassComponentDialog>(string.Empty, parameters));

// Act
cut.WaitForElement("#greengrass-component-recipe-json").Change(inputJsonRecipe);
Expand Down Expand Up @@ -128,7 +128,7 @@ public async Task AwsGreengrassComponentDialog_EditAWSComponentAndSubmit_EdgeMod
};

IDialogReference dialogReference = null;
await cut.InvokeAsync(() => dialogReference = service?.Show<AwsGreengrassComponentDialog>(string.Empty, parameters));
_ = await cut.InvokeAsync(() => dialogReference = service?.Show<AwsGreengrassComponentDialog>(string.Empty, parameters));

// Act
cut.WaitForElement("#greengrass-component-recipe-json").Change(newJsonRecipe);
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -51,7 +51,7 @@ public async Task AwsGreengrassPublicComponentsDialog_AfterOnInitializedAsync_Pu
};

// Act
await cut.InvokeAsync(() => service?.Show<AwsGreengrassPublicComponentsDialog>(string.Empty, parameters));
_ = await cut.InvokeAsync(() => service?.Show<AwsGreengrassPublicComponentsDialog>(string.Empty, parameters));
cut.WaitForAssertion(() => cut.FindAll("table tbody tr").Count.Should().Be(10));

// Assert
Expand All @@ -77,7 +77,7 @@ public async Task AwsGreengrassPublicComponentsDialog_ClickOnCancel_DialogCancel
};

IDialogReference dialogReference = null;
await cut.InvokeAsync(() => dialogReference = service?.Show<AwsGreengrassPublicComponentsDialog>(string.Empty, parameters));
_ = await cut.InvokeAsync(() => dialogReference = service?.Show<AwsGreengrassPublicComponentsDialog>(string.Empty, parameters));
cut.WaitForAssertion(() => cut.FindAll("table tbody tr").Count.Should().Be(10));

// Act
Expand Down Expand Up @@ -110,7 +110,7 @@ public async Task AwsGreengrassPublicComponentsDialog_ClickOnSubmitWithoutSelect
};

IDialogReference dialogReference = null;
await cut.InvokeAsync(() => dialogReference = service?.Show<AwsGreengrassPublicComponentsDialog>(string.Empty, parameters));
_ = await cut.InvokeAsync(() => dialogReference = service?.Show<AwsGreengrassPublicComponentsDialog>(string.Empty, parameters));
cut.WaitForAssertion(() => cut.FindAll("table tbody tr").Count.Should().Be(10));

// Act
Expand Down Expand Up @@ -143,7 +143,7 @@ public async Task AwsGreengrassPublicComponentsDialog_ClickOnSubmitAfterSelectin
};

IDialogReference dialogReference = null;
await cut.InvokeAsync(() => dialogReference = service?.Show<AwsGreengrassPublicComponentsDialog>(string.Empty, parameters));
_ = await cut.InvokeAsync(() => dialogReference = service?.Show<AwsGreengrassPublicComponentsDialog>(string.Empty, parameters));
cut.WaitForAssertion(() => cut.FindAll("table tbody tr").Count.Should().Be(10));

// Act
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -50,7 +50,7 @@ public async Task ModuleDialogTestMustBeRenderedOnShow()
};

// Act
await cut.InvokeAsync(() => service?.Show<ModuleDialog>(string.Empty, parameters));
_ = await cut.InvokeAsync(() => service?.Show<ModuleDialog>(string.Empty, parameters));

cut.WaitForAssertion(() => cut.Find("div.mud-dialog-container").Should().NotBeNull());
cut.WaitForAssertion(() => cut.Find($"#{nameof(IoTEdgeModule.ModuleName)}").OuterHtml.Should().Contain(moduleName));
Expand Down Expand Up @@ -94,7 +94,7 @@ public async Task ClickOnSubmitShouldUpdateModuleValues()
};

// Act
await cut.InvokeAsync(() => service?.Show<ModuleDialog>(string.Empty, parameters));
_ = await cut.InvokeAsync(() => service?.Show<ModuleDialog>(string.Empty, parameters));

cut.WaitForAssertion(() => cut.Find("div.mud-dialog-container").Should().NotBeNull());

Expand Down Expand Up @@ -138,7 +138,7 @@ public async Task ForAWSModuleDialogTestMustBeRenderedOnShow()
};

// Act
await cut.InvokeAsync(() => service?.Show<ModuleDialog>(string.Empty, parameters));
_ = await cut.InvokeAsync(() => service?.Show<ModuleDialog>(string.Empty, parameters));

cut.WaitForAssertion(() => cut.Find("div.mud-dialog-container").Should().NotBeNull());
cut.WaitForAssertion(() => cut.Find($"#{nameof(IoTEdgeModule.ModuleName)}").OuterHtml.Should().Contain(moduleName));
Expand Down Expand Up @@ -179,7 +179,7 @@ public async Task ForAWSClickOnSubmitShouldUpdateModuleValues()
};

// Act
await cut.InvokeAsync(() => service?.Show<ModuleDialog>(string.Empty, parameters));
_ = await cut.InvokeAsync(() => service?.Show<ModuleDialog>(string.Empty, parameters));

cut.WaitForAssertion(() => cut.Find("div.mud-dialog-container").Should().NotBeNull());

Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -66,7 +66,7 @@ public async Task DeleteDeviceConfigurationShouldDeleteConfiguration()

IDialogReference dialogReference = null;

await cut.InvokeAsync(() => dialogReference = this.dialogService?.Show<DeleteDeviceConfiguration>(string.Empty, parameters));
_ = await cut.InvokeAsync(() => dialogReference = this.dialogService?.Show<DeleteDeviceConfiguration>(string.Empty, parameters));
cut.WaitForAssertion(() => cut.Find("#delete-device-configuration"));

// Act
Expand Down Expand Up @@ -101,7 +101,7 @@ public async Task DeleteConcentratorPageShouldProcessProblemDetailsExceptionWhen
}
};

await cut.InvokeAsync(() => this.dialogService?.Show<DeleteDeviceConfiguration>(string.Empty, parameters));
_ = await cut.InvokeAsync(() => this.dialogService?.Show<DeleteDeviceConfiguration>(string.Empty, parameters));
cut.WaitForAssertion(() => cut.Find("#delete-device-configuration"));

// Act
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -53,7 +53,7 @@ public async Task ConnectionStringDialogMustBeRenderedOnShow()
};

// Act
await cut.InvokeAsync(() => service?.Show<ConnectionStringDialog>(string.Empty, parameters));
_ = await cut.InvokeAsync(() => service?.Show<ConnectionStringDialog>(string.Empty, parameters));

// Assert
cut.WaitForAssertion(() => cut.Find("div.mud-dialog-container").Should().NotBeNull());
Expand Down Expand Up @@ -82,7 +82,7 @@ public async Task OnInitializedAsyncShouldProcessProblemDetailsExceptionWhenIssu
IDialogReference dialogReference = null;

// Act
await cut.InvokeAsync(() => dialogReference = service?.Show<ConnectionStringDialog>(string.Empty, parameters));
_ = await cut.InvokeAsync(() => dialogReference = service?.Show<ConnectionStringDialog>(string.Empty, parameters));

var result = await dialogReference.Result;

Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -55,7 +55,7 @@ public async Task DeleteDevice_NonLoRaDevice_DeviceDeleted()
};

// Act
await cut.InvokeAsync(() => service?.Show<DeleteDevicePage>(string.Empty, parameters));
_ = await cut.InvokeAsync(() => service?.Show<DeleteDevicePage>(string.Empty, parameters));
cut.WaitForElement("#delete-device").Click();

// Assert
Expand All @@ -81,7 +81,7 @@ public async Task DeleteDevice_LoRaDevice_LoRaDeviceDeleted()
};

// Act
await cut.InvokeAsync(() => service?.Show<DeleteDevicePage>(string.Empty, parameters));
_ = await cut.InvokeAsync(() => service?.Show<DeleteDevicePage>(string.Empty, parameters));
cut.WaitForElement("#delete-device").Click();

// Assert
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -61,7 +61,7 @@ public async Task ImportShouldDisplayLoadingDuringProcess()
};

// Act
await cut.InvokeAsync(() => this.dialogService?.Show<ImportReportDialog>(string.Empty, parameters));
_ = await cut.InvokeAsync(() => this.dialogService?.Show<ImportReportDialog>(string.Empty, parameters));

// Assert
cut.WaitForState(() => cut.HasComponent<MudProgressCircular>());
Expand All @@ -88,7 +88,7 @@ public async Task WhenNoErrorsDuringImportShouldDisplaySuccessMessage()
};

// Act
await cut.InvokeAsync(() => this.dialogService?.Show<ImportReportDialog>(string.Empty, parameters));
_ = await cut.InvokeAsync(() => this.dialogService?.Show<ImportReportDialog>(string.Empty, parameters));
cut.WaitForState(() => !cut.HasComponent<MudProgressCircular>());

// Assert
Expand Down Expand Up @@ -120,7 +120,7 @@ public async Task WhenExceptionOccuresShouldCloseThePopup()
// Act
IDialogReference dialogReference = null;

await cut.InvokeAsync(() => dialogReference = this.dialogService?.Show<ImportReportDialog>(string.Empty, parameters));
_ = await cut.InvokeAsync(() => dialogReference = this.dialogService?.Show<ImportReportDialog>(string.Empty, parameters));

// Assert
_ = dialogReference.Should().NotBeNull();
Expand Down Expand Up @@ -166,7 +166,7 @@ public async Task WhenErrorsDuringImportShouldDisplayErrorMessages()
};

// Act
await cut.InvokeAsync(() => this.dialogService?.Show<ImportReportDialog>(string.Empty, parameters));
_ = await cut.InvokeAsync(() => this.dialogService?.Show<ImportReportDialog>(string.Empty, parameters));
cut.WaitForState(() => !cut.HasComponent<MudProgressCircular>());

// Assert
Expand Down Expand Up @@ -213,7 +213,7 @@ public async Task ClickOnCloseShouldCloseTheDialog()

IDialogReference dialogReference = null;

await cut.InvokeAsync(() => dialogReference = this.dialogService?.Show<ImportReportDialog>(string.Empty, parameters));
_ = await cut.InvokeAsync(() => dialogReference = this.dialogService?.Show<ImportReportDialog>(string.Empty, parameters));

_ = dialogReference.Result.Should().NotBeNull()
.And.BeOfType<Task<DialogResult>>()
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -55,7 +55,7 @@ public async Task Show_TelemetryLoaded_CanvasIsRendered()
};

// Act
await cut.InvokeAsync(() => service?.Show<LoRaDeviceTelemetryDialog>(string.Empty, parameters));
_ = await cut.InvokeAsync(() => service?.Show<LoRaDeviceTelemetryDialog>(string.Empty, parameters));
_ = cut.WaitForElement("canvas");

// Assert
Expand Down Expand Up @@ -84,7 +84,7 @@ public async Task Show_CancelDialog_DialogIsCancelled()
IDialogReference dialogReference = null;

// Act
await cut.InvokeAsync(() => dialogReference = service?.Show<LoRaDeviceTelemetryDialog>(string.Empty, parameters));
_ = await cut.InvokeAsync(() => dialogReference = service?.Show<LoRaDeviceTelemetryDialog>(string.Empty, parameters));
_ = cut.WaitForElement("canvas");
var deleteBtn = cut.Find("#cancel-telemetry-dialog");
deleteBtn.Click();
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -60,7 +60,7 @@ public async Task ConnectionStringDialogMustShowEnrollmentCredentials()
};

// Act
await cut.InvokeAsync(() => this.dialogService?.Show<ConnectionStringDialog>(string.Empty, parameters));
_ = await cut.InvokeAsync(() => this.dialogService?.Show<ConnectionStringDialog>(string.Empty, parameters));
_ = cut.WaitForElement("div.mud-paper");

// Assert
Expand Down Expand Up @@ -89,7 +89,7 @@ public async Task ConnectionStringDialogMustBeCancelledWhenProblemDetailsOccurs(
IDialogReference dialogReference = null;

// Act
await cut.InvokeAsync(() => dialogReference = this.dialogService?.Show<ConnectionStringDialog>(string.Empty, parameters));
_ = await cut.InvokeAsync(() => dialogReference = this.dialogService?.Show<ConnectionStringDialog>(string.Empty, parameters));
var result = await dialogReference.Result;

// Assert
Expand Down Expand Up @@ -118,7 +118,7 @@ public async Task ConnectionStringDialogMustBeClosedOnClickOnOk()
IDialogReference dialogReference = null;

// Act
await cut.InvokeAsync(() => dialogReference = this.dialogService?.Show<ConnectionStringDialog>(string.Empty, parameters));
_ = await cut.InvokeAsync(() => dialogReference = this.dialogService?.Show<ConnectionStringDialog>(string.Empty, parameters));
cut.WaitForElement("#ok").Click();

var result = await dialogReference.Result;
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -57,7 +57,7 @@ public async Task EdgeDeviceDeleteConfirmationDialogMustDeleteDevice()
IDialogReference dialogReference = null;

// Act
await cut.InvokeAsync(() => dialogReference = this.dialogService?.Show<EdgeDeviceDeleteConfirmationDialog>(string.Empty, parameters));
_ = await cut.InvokeAsync(() => dialogReference = this.dialogService?.Show<EdgeDeviceDeleteConfirmationDialog>(string.Empty, parameters));
cut.Find("#delete").Click();
var result = await dialogReference.GetReturnValueAsync<bool>();

Expand Down Expand Up @@ -85,7 +85,7 @@ public async Task EdgeDeviceDeleteConfirmationDialogShouldProcessProblemDetailsE
};

// Act
await cut.InvokeAsync(() => this.dialogService?.Show<EdgeDeviceDeleteConfirmationDialog>(string.Empty, parameters));
_ = await cut.InvokeAsync(() => this.dialogService?.Show<EdgeDeviceDeleteConfirmationDialog>(string.Empty, parameters));
cut.Find("#delete").Click();

// Assert
Expand All @@ -111,7 +111,7 @@ public async Task EdgeDeviceDeleteConfirmationDialogMustBeCanceledOnClickOnCance
IDialogReference dialogReference = null;

// Act
await cut.InvokeAsync(() => dialogReference = this.dialogService?.Show<EdgeDeviceDeleteConfirmationDialog>(string.Empty, parameters));
_ = await cut.InvokeAsync(() => dialogReference = this.dialogService?.Show<EdgeDeviceDeleteConfirmationDialog>(string.Empty, parameters));
cut.Find("#cancel").Click();
var result = await dialogReference.Result;

Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -68,7 +68,7 @@ public async Task ModuleLogsDialogParametersMustBeCorrect()
};

// Act
await cut.InvokeAsync(() => service?.Show<ModuleLogsDialog>(string.Empty, parameters));
_ = await cut.InvokeAsync(() => service?.Show<ModuleLogsDialog>(string.Empty, parameters));

// Assert
_ = cut.FindAll("tr").Count.Should().Be(4);
Expand Down Expand Up @@ -103,7 +103,7 @@ public async Task ModuleLogsShouldProcessProblemDetailsExceptionWhenIssueOccursO
};

// Act
await cut.InvokeAsync(() => service?.Show<ModuleLogsDialog>(string.Empty, parameters));
_ = await cut.InvokeAsync(() => service?.Show<ModuleLogsDialog>(string.Empty, parameters));

// Assert
_ = cut.FindAll("tr").Count.Should().Be(2);
Expand Down Expand Up @@ -145,7 +145,7 @@ public async Task ModuleLogsMustCloseOnCLickOnCloseButton()
IDialogReference dialogReference = null;

// Act
await cut.InvokeAsync(() => dialogReference = service?.Show<ModuleLogsDialog>(string.Empty, parameters));
_ = await cut.InvokeAsync(() => dialogReference = service?.Show<ModuleLogsDialog>(string.Empty, parameters));
cut.Find("#close").Click();
var result = await dialogReference.Result;

Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -64,7 +64,7 @@ public async Task ClickOnDeleteButtonShouldCloseDialog()
IDialogReference dialogReference = null;

// Act
await cut.InvokeAsync(() => dialogReference = service?.Show<DeleteEdgeModelDialog>(string.Empty, parameters));
_ = await cut.InvokeAsync(() => dialogReference = service?.Show<DeleteEdgeModelDialog>(string.Empty, parameters));

var deleteBtn = cut.Find("#deleteButton");
deleteBtn.Click();
Expand Down Expand Up @@ -103,7 +103,7 @@ public async Task ClickOnDeleteButtonShouldProssessProblemDetailsException()
IDialogReference dialogReference = null;

// Act
await cut.InvokeAsync(() => dialogReference = service?.Show<DeleteEdgeModelDialog>(string.Empty, parameters));
_ = await cut.InvokeAsync(() => dialogReference = service?.Show<DeleteEdgeModelDialog>(string.Empty, parameters));

var deleteBtn = cut.Find("#deleteButton");
deleteBtn.Click();
Expand Down Expand Up @@ -135,7 +135,7 @@ public async Task ClickOnCancelButtonShouldCloseDialog()
IDialogReference dialogReference = null;

// Act
await cut.InvokeAsync(() => dialogReference = service?.Show<DeleteEdgeModelDialog>(string.Empty, parameters));
_ = await cut.InvokeAsync(() => dialogReference = service?.Show<DeleteEdgeModelDialog>(string.Empty, parameters));

var deleteBtn = cut.Find("#cancelButton");
deleteBtn.Click();
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -54,7 +54,7 @@ public async Task SystemModuleDialogMustCloseOnCLickOnCloseButton()
IDialogReference dialogReference = null;

// Act
await cut.InvokeAsync(() => dialogReference = service?.Show<SystemModuleDialog>(string.Empty, parameters));
_ = await cut.InvokeAsync(() => dialogReference = service?.Show<SystemModuleDialog>(string.Empty, parameters));

cut.Find("#SubmitButton").Click();
var result = await dialogReference.Result;
Expand Down
Loading

0 comments on commit b5b7fb5

Please sign in to comment.