From d97a77b8f7b897b240101d5fbce17749e24abad5 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?J=C3=A9r=C3=A9my=20TREMBLAY?= <86004426+JeremyTremblay2@users.noreply.github.com> Date: Tue, 27 Jun 2023 14:45:34 +0200 Subject: [PATCH] #2234 Feature: move dialogs to dialogs folder (#2270) * Move edgemodels and ideas dialogs * Refactor edge devices dialogs * Refactor device dialogs * Move ProblemDetailsDialog into the DIalog folder --- src/IoTHub.Portal.Client/Components/Devices/EditDevice.razor | 1 + .../{Pages => Dialogs}/Devices/ConnectionStringDialog.razor | 0 .../{Pages => Dialogs}/Devices/ImportReportDialog.razor | 0 .../Devices/LoRaDeviceTelemetryDialog.razor | 0 .../EdgeDevices/ConnectionStringDialog.razor | 0 .../EdgeDevices/EdgeDeviceDeleteConfirmationDialog.razor | 0 .../{Pages => Dialogs}/EdgeDevices/ModuleLogsDialog.razor | 0 .../EdgeModels/DeleteEdgeModelDialog.razor | 0 .../EdgeModels/EdgeModule/ModuleDialog.razor | 0 .../EdgeModels/EdgeModule/ModuleDialogTab1.razor | 0 .../EdgeModels/EdgeModule/ModuleDialogTab2.razor | 0 .../EdgeModels/EdgeModule/ModuleDialogTab3.razor | 0 .../EdgeModels/EdgeModule/SystemModuleDialog.razor | 0 .../{Pages => Dialogs}/Ideas/SubmitIdeaDialog.razor | 0 .../{ => Dialogs}/Shared/ProblemDetailsDialog.razor | 0 src/IoTHub.Portal.Client/Pages/Devices/DeviceListPage.razor | 1 + .../Pages/EdgeDevices/EdgeDeviceDetailPage.razor | 1 + .../Pages/EdgeDevices/EdgeDeviceListPage.razor | 1 + .../Pages/EdgeModels/CreateEdgeModelsPage.razor | 2 +- .../Pages/EdgeModels/EdgeModelDetailPage.razor | 3 ++- .../Pages/EdgeModels/EdgeModelListPage.razor | 1 + src/IoTHub.Portal.Client/Shared/Appbar.razor | 2 +- src/IoTHub.Portal.Client/Shared/Error.razor | 2 ++ .../Client/Components/Devices/EditDeviceTests.cs | 1 + .../Pages/Configurations/EdgeModule/ModuleDialogTab1Tests.cs | 2 +- .../Pages/Configurations/EdgeModule/ModuleDialogTab2Tests.cs | 2 +- .../Pages/Configurations/EdgeModule/ModuleDialogTab3Tests.cs | 2 +- .../Pages/Configurations/EdgeModule/ModuleDialogTests.cs | 2 +- .../Client/Pages/Devices/ConnectionStringDialogTests.cs | 2 +- .../Client/Pages/Devices/DevicesListPageTests.cs | 1 + .../Client/Pages/Devices/ImportReportDialogTests.cs | 2 +- .../Client/Pages/Devices/LoRaDeviceTelemetryDialogTests.cs | 1 + .../Client/Pages/EdgeDevices/ConnectionStringDialogTests.cs | 1 + .../EdgeDevices/EdgeDeviceDeleteConfirmationDialogTests.cs | 2 +- .../Client/Pages/EdgeDevices/EdgeDeviceDetailPageTests.cs | 1 + .../Client/Pages/EdgeDevices/EdgeDeviceListPageTests.cs | 1 + .../Client/Pages/EdgeDevices/ModuleLogsDialogTests.cs | 2 +- .../Client/Pages/EdgeModels/CreateEdgeModelsPageTest.cs | 2 +- .../Client/Pages/EdgeModels/DeleteEdgeModelDialogTest.cs | 2 +- .../Client/Pages/EdgeModels/EdgeModelDetailPageTest.cs | 2 +- .../Client/Pages/EdgeModels/EdgeModelsListPageTest.cs | 5 +++-- .../Client/Pages/EdgeModels/SystemModuleDialogTest.cs | 2 +- .../Client/Pages/Ideas/SubmitIdeaDialogTests.cs | 2 +- .../Client/Pages/Shared/AppbarTests.cs | 2 +- .../Client/Pages/Shared/ProblemDetailsDialogTests.cs | 1 + 45 files changed, 35 insertions(+), 19 deletions(-) rename src/IoTHub.Portal.Client/{Pages => Dialogs}/Devices/ConnectionStringDialog.razor (100%) rename src/IoTHub.Portal.Client/{Pages => Dialogs}/Devices/ImportReportDialog.razor (100%) rename src/IoTHub.Portal.Client/{Pages => Dialogs}/Devices/LoRaDeviceTelemetryDialog.razor (100%) rename src/IoTHub.Portal.Client/{Pages => Dialogs}/EdgeDevices/ConnectionStringDialog.razor (100%) rename src/IoTHub.Portal.Client/{Pages => Dialogs}/EdgeDevices/EdgeDeviceDeleteConfirmationDialog.razor (100%) rename src/IoTHub.Portal.Client/{Pages => Dialogs}/EdgeDevices/ModuleLogsDialog.razor (100%) rename src/IoTHub.Portal.Client/{Pages => Dialogs}/EdgeModels/DeleteEdgeModelDialog.razor (100%) rename src/IoTHub.Portal.Client/{Pages => Dialogs}/EdgeModels/EdgeModule/ModuleDialog.razor (100%) rename src/IoTHub.Portal.Client/{Pages => Dialogs}/EdgeModels/EdgeModule/ModuleDialogTab1.razor (100%) rename src/IoTHub.Portal.Client/{Pages => Dialogs}/EdgeModels/EdgeModule/ModuleDialogTab2.razor (100%) rename src/IoTHub.Portal.Client/{Pages => Dialogs}/EdgeModels/EdgeModule/ModuleDialogTab3.razor (100%) rename src/IoTHub.Portal.Client/{Pages => Dialogs}/EdgeModels/EdgeModule/SystemModuleDialog.razor (100%) rename src/IoTHub.Portal.Client/{Pages => Dialogs}/Ideas/SubmitIdeaDialog.razor (100%) rename src/IoTHub.Portal.Client/{ => Dialogs}/Shared/ProblemDetailsDialog.razor (100%) diff --git a/src/IoTHub.Portal.Client/Components/Devices/EditDevice.razor b/src/IoTHub.Portal.Client/Components/Devices/EditDevice.razor index 7b9929ab7..edcf1b909 100644 --- a/src/IoTHub.Portal.Client/Components/Devices/EditDevice.razor +++ b/src/IoTHub.Portal.Client/Components/Devices/EditDevice.razor @@ -1,5 +1,6 @@ @using IoTHub.Portal.Client.Enums; @using IoTHub.Portal.Client.Pages.Devices +@using IoTHub.Portal.Client.Dialogs.Devices @using IoTHub.Portal.Client.Validators @using IoTHub.Portal.Shared.Constants; @using IoTHub.Portal.Shared.Models diff --git a/src/IoTHub.Portal.Client/Pages/Devices/ConnectionStringDialog.razor b/src/IoTHub.Portal.Client/Dialogs/Devices/ConnectionStringDialog.razor similarity index 100% rename from src/IoTHub.Portal.Client/Pages/Devices/ConnectionStringDialog.razor rename to src/IoTHub.Portal.Client/Dialogs/Devices/ConnectionStringDialog.razor diff --git a/src/IoTHub.Portal.Client/Pages/Devices/ImportReportDialog.razor b/src/IoTHub.Portal.Client/Dialogs/Devices/ImportReportDialog.razor similarity index 100% rename from src/IoTHub.Portal.Client/Pages/Devices/ImportReportDialog.razor rename to src/IoTHub.Portal.Client/Dialogs/Devices/ImportReportDialog.razor diff --git a/src/IoTHub.Portal.Client/Pages/Devices/LoRaDeviceTelemetryDialog.razor b/src/IoTHub.Portal.Client/Dialogs/Devices/LoRaDeviceTelemetryDialog.razor similarity index 100% rename from src/IoTHub.Portal.Client/Pages/Devices/LoRaDeviceTelemetryDialog.razor rename to src/IoTHub.Portal.Client/Dialogs/Devices/LoRaDeviceTelemetryDialog.razor diff --git a/src/IoTHub.Portal.Client/Pages/EdgeDevices/ConnectionStringDialog.razor b/src/IoTHub.Portal.Client/Dialogs/EdgeDevices/ConnectionStringDialog.razor similarity index 100% rename from src/IoTHub.Portal.Client/Pages/EdgeDevices/ConnectionStringDialog.razor rename to src/IoTHub.Portal.Client/Dialogs/EdgeDevices/ConnectionStringDialog.razor diff --git a/src/IoTHub.Portal.Client/Pages/EdgeDevices/EdgeDeviceDeleteConfirmationDialog.razor b/src/IoTHub.Portal.Client/Dialogs/EdgeDevices/EdgeDeviceDeleteConfirmationDialog.razor similarity index 100% rename from src/IoTHub.Portal.Client/Pages/EdgeDevices/EdgeDeviceDeleteConfirmationDialog.razor rename to src/IoTHub.Portal.Client/Dialogs/EdgeDevices/EdgeDeviceDeleteConfirmationDialog.razor diff --git a/src/IoTHub.Portal.Client/Pages/EdgeDevices/ModuleLogsDialog.razor b/src/IoTHub.Portal.Client/Dialogs/EdgeDevices/ModuleLogsDialog.razor similarity index 100% rename from src/IoTHub.Portal.Client/Pages/EdgeDevices/ModuleLogsDialog.razor rename to src/IoTHub.Portal.Client/Dialogs/EdgeDevices/ModuleLogsDialog.razor diff --git a/src/IoTHub.Portal.Client/Pages/EdgeModels/DeleteEdgeModelDialog.razor b/src/IoTHub.Portal.Client/Dialogs/EdgeModels/DeleteEdgeModelDialog.razor similarity index 100% rename from src/IoTHub.Portal.Client/Pages/EdgeModels/DeleteEdgeModelDialog.razor rename to src/IoTHub.Portal.Client/Dialogs/EdgeModels/DeleteEdgeModelDialog.razor diff --git a/src/IoTHub.Portal.Client/Pages/EdgeModels/EdgeModule/ModuleDialog.razor b/src/IoTHub.Portal.Client/Dialogs/EdgeModels/EdgeModule/ModuleDialog.razor similarity index 100% rename from src/IoTHub.Portal.Client/Pages/EdgeModels/EdgeModule/ModuleDialog.razor rename to src/IoTHub.Portal.Client/Dialogs/EdgeModels/EdgeModule/ModuleDialog.razor diff --git a/src/IoTHub.Portal.Client/Pages/EdgeModels/EdgeModule/ModuleDialogTab1.razor b/src/IoTHub.Portal.Client/Dialogs/EdgeModels/EdgeModule/ModuleDialogTab1.razor similarity index 100% rename from src/IoTHub.Portal.Client/Pages/EdgeModels/EdgeModule/ModuleDialogTab1.razor rename to src/IoTHub.Portal.Client/Dialogs/EdgeModels/EdgeModule/ModuleDialogTab1.razor diff --git a/src/IoTHub.Portal.Client/Pages/EdgeModels/EdgeModule/ModuleDialogTab2.razor b/src/IoTHub.Portal.Client/Dialogs/EdgeModels/EdgeModule/ModuleDialogTab2.razor similarity index 100% rename from src/IoTHub.Portal.Client/Pages/EdgeModels/EdgeModule/ModuleDialogTab2.razor rename to src/IoTHub.Portal.Client/Dialogs/EdgeModels/EdgeModule/ModuleDialogTab2.razor diff --git a/src/IoTHub.Portal.Client/Pages/EdgeModels/EdgeModule/ModuleDialogTab3.razor b/src/IoTHub.Portal.Client/Dialogs/EdgeModels/EdgeModule/ModuleDialogTab3.razor similarity index 100% rename from src/IoTHub.Portal.Client/Pages/EdgeModels/EdgeModule/ModuleDialogTab3.razor rename to src/IoTHub.Portal.Client/Dialogs/EdgeModels/EdgeModule/ModuleDialogTab3.razor diff --git a/src/IoTHub.Portal.Client/Pages/EdgeModels/EdgeModule/SystemModuleDialog.razor b/src/IoTHub.Portal.Client/Dialogs/EdgeModels/EdgeModule/SystemModuleDialog.razor similarity index 100% rename from src/IoTHub.Portal.Client/Pages/EdgeModels/EdgeModule/SystemModuleDialog.razor rename to src/IoTHub.Portal.Client/Dialogs/EdgeModels/EdgeModule/SystemModuleDialog.razor diff --git a/src/IoTHub.Portal.Client/Pages/Ideas/SubmitIdeaDialog.razor b/src/IoTHub.Portal.Client/Dialogs/Ideas/SubmitIdeaDialog.razor similarity index 100% rename from src/IoTHub.Portal.Client/Pages/Ideas/SubmitIdeaDialog.razor rename to src/IoTHub.Portal.Client/Dialogs/Ideas/SubmitIdeaDialog.razor diff --git a/src/IoTHub.Portal.Client/Shared/ProblemDetailsDialog.razor b/src/IoTHub.Portal.Client/Dialogs/Shared/ProblemDetailsDialog.razor similarity index 100% rename from src/IoTHub.Portal.Client/Shared/ProblemDetailsDialog.razor rename to src/IoTHub.Portal.Client/Dialogs/Shared/ProblemDetailsDialog.razor diff --git a/src/IoTHub.Portal.Client/Pages/Devices/DeviceListPage.razor b/src/IoTHub.Portal.Client/Pages/Devices/DeviceListPage.razor index 5980b046f..895afc725 100644 --- a/src/IoTHub.Portal.Client/Pages/Devices/DeviceListPage.razor +++ b/src/IoTHub.Portal.Client/Pages/Devices/DeviceListPage.razor @@ -2,6 +2,7 @@ @using IoTHub.Portal @using IoTHub.Portal.Models.v10 @using IoTHub.Portal.Shared.Models.v10; +@using IoTHub.Portal.Client.Dialogs.Devices @using System.Web @using System.IO @using System.Text.RegularExpressions diff --git a/src/IoTHub.Portal.Client/Pages/EdgeDevices/EdgeDeviceDetailPage.razor b/src/IoTHub.Portal.Client/Pages/EdgeDevices/EdgeDeviceDetailPage.razor index 94fdb560e..b6b5ef36c 100644 --- a/src/IoTHub.Portal.Client/Pages/EdgeDevices/EdgeDeviceDetailPage.razor +++ b/src/IoTHub.Portal.Client/Pages/EdgeDevices/EdgeDeviceDetailPage.razor @@ -3,6 +3,7 @@ @using IoTHub.Portal.Models.v10 @using IoTHub.Portal.Shared.Models.v10 @using IoTHub.Portal.Shared.Constants +@using IoTHub.Portal.Client.Dialogs.EdgeDevices; @attribute [Authorize] @inject PortalSettings Portal diff --git a/src/IoTHub.Portal.Client/Pages/EdgeDevices/EdgeDeviceListPage.razor b/src/IoTHub.Portal.Client/Pages/EdgeDevices/EdgeDeviceListPage.razor index fc9730fd0..c7f517c76 100644 --- a/src/IoTHub.Portal.Client/Pages/EdgeDevices/EdgeDeviceListPage.razor +++ b/src/IoTHub.Portal.Client/Pages/EdgeDevices/EdgeDeviceListPage.razor @@ -3,6 +3,7 @@ @using IoTHub.Portal.Models.v10 @using System.Web @using IoTHub.Portal.Shared.Models.v10; +@using IoTHub.Portal.Client.Dialogs.EdgeDevices; @attribute [Authorize] @inject PortalSettings Portal diff --git a/src/IoTHub.Portal.Client/Pages/EdgeModels/CreateEdgeModelsPage.razor b/src/IoTHub.Portal.Client/Pages/EdgeModels/CreateEdgeModelsPage.razor index 2c3a4d255..9eac4b5d8 100644 --- a/src/IoTHub.Portal.Client/Pages/EdgeModels/CreateEdgeModelsPage.razor +++ b/src/IoTHub.Portal.Client/Pages/EdgeModels/CreateEdgeModelsPage.razor @@ -1,6 +1,6 @@ @page "/edge/models/new" -@using IoTHub.Portal.Client.Pages.EdgeModels.EdgeModule +@using IoTHub.Portal.Client.Dialogs.EdgeModels.EdgeModule @using IoTHub.Portal.Models @using IoTHub.Portal.Models.v10 @using IoTHub.Portal.Shared.Models.v10 diff --git a/src/IoTHub.Portal.Client/Pages/EdgeModels/EdgeModelDetailPage.razor b/src/IoTHub.Portal.Client/Pages/EdgeModels/EdgeModelDetailPage.razor index 16027fb70..6b1aa5586 100644 --- a/src/IoTHub.Portal.Client/Pages/EdgeModels/EdgeModelDetailPage.razor +++ b/src/IoTHub.Portal.Client/Pages/EdgeModels/EdgeModelDetailPage.razor @@ -1,11 +1,12 @@ @page "/edge/models/{ModelID}" @using Microsoft.AspNetCore.Authorization -@using IoTHub.Portal.Client.Pages.EdgeModels.EdgeModule +@using IoTHub.Portal.Client.Dialogs.EdgeModels.EdgeModule @using System.Net.Http.Headers @using IoTHub.Portal.Models.v10 @using IoTHub.Portal.Shared.Models.v10 @using IoTHub.Portal.Client.Validators +@using IoTHub.Portal.Client.Dialogs.EdgeModels.EdgeModule @using Microsoft.AspNetCore.Components.WebAssembly.Authentication @using IoTHub.Portal.Shared.Constants diff --git a/src/IoTHub.Portal.Client/Pages/EdgeModels/EdgeModelListPage.razor b/src/IoTHub.Portal.Client/Pages/EdgeModels/EdgeModelListPage.razor index f1dfa8139..2ecec3dbb 100644 --- a/src/IoTHub.Portal.Client/Pages/EdgeModels/EdgeModelListPage.razor +++ b/src/IoTHub.Portal.Client/Pages/EdgeModels/EdgeModelListPage.razor @@ -3,6 +3,7 @@ @using IoTHub.Portal.Shared.Models.v10.Filters; @using Microsoft.AspNetCore.Authorization @using IoTHub.Portal.Models.v10 +@using IoTHub.Portal.Client.Dialogs.EdgeModels.EdgeModule @using Microsoft.AspNetCore.Components.WebAssembly.Authentication @attribute [Authorize] diff --git a/src/IoTHub.Portal.Client/Shared/Appbar.razor b/src/IoTHub.Portal.Client/Shared/Appbar.razor index 7bc25a79e..b1eb0d634 100644 --- a/src/IoTHub.Portal.Client/Shared/Appbar.razor +++ b/src/IoTHub.Portal.Client/Shared/Appbar.razor @@ -1,6 +1,6 @@ @using IoTHub.Portal.Models.v10 @using Microsoft.AspNetCore.Components.WebAssembly.Authentication -@using IoTHub.Portal.Client.Pages.Ideas +@using IoTHub.Portal.Client.Dialogs.Ideas @inject PortalSettings Portal @inject NavigationManager Navigation diff --git a/src/IoTHub.Portal.Client/Shared/Error.razor b/src/IoTHub.Portal.Client/Shared/Error.razor index 34032bce7..860e1344e 100644 --- a/src/IoTHub.Portal.Client/Shared/Error.razor +++ b/src/IoTHub.Portal.Client/Shared/Error.razor @@ -1,6 +1,8 @@ @inject ISnackbar Snackbar; @inject IDialogService DialogService +@using IoTHub.Portal.Client.Dialogs.Shared + @ChildContent diff --git a/src/IoTHub.Portal.Tests.Unit/Client/Components/Devices/EditDeviceTests.cs b/src/IoTHub.Portal.Tests.Unit/Client/Components/Devices/EditDeviceTests.cs index 2c0126220..6b407a104 100644 --- a/src/IoTHub.Portal.Tests.Unit/Client/Components/Devices/EditDeviceTests.cs +++ b/src/IoTHub.Portal.Tests.Unit/Client/Components/Devices/EditDeviceTests.cs @@ -25,6 +25,7 @@ namespace AzureIoTHub.Portal.Tests.Unit.Client.Components.Devices using IoTHub.Portal.Shared.Models; using IoTHub.Portal.Shared.Models.v1._0; using IoTHub.Portal.Shared.Models.v10.Filters; + using IoTHub.Portal.Client.Dialogs.Devices; using IoTHub.Portal.Tests.Unit.UnitTests.Bases; using IoTHub.Portal.Tests.Unit.UnitTests.Mocks; using Microsoft.Extensions.DependencyInjection; diff --git a/src/IoTHub.Portal.Tests.Unit/Client/Pages/Configurations/EdgeModule/ModuleDialogTab1Tests.cs b/src/IoTHub.Portal.Tests.Unit/Client/Pages/Configurations/EdgeModule/ModuleDialogTab1Tests.cs index 6b1aacc81..f5f44172b 100644 --- a/src/IoTHub.Portal.Tests.Unit/Client/Pages/Configurations/EdgeModule/ModuleDialogTab1Tests.cs +++ b/src/IoTHub.Portal.Tests.Unit/Client/Pages/Configurations/EdgeModule/ModuleDialogTab1Tests.cs @@ -5,7 +5,7 @@ namespace IoTHub.Portal.Tests.Unit.Client.Pages.Configurations.EdgeModule { using System; using System.Collections.Generic; - using IoTHub.Portal.Client.Pages.EdgeModels.EdgeModule; + using IoTHub.Portal.Client.Dialogs.EdgeModels.EdgeModule; using Models.v10; using IoTHub.Portal.Shared.Models.v10; using UnitTests.Bases; diff --git a/src/IoTHub.Portal.Tests.Unit/Client/Pages/Configurations/EdgeModule/ModuleDialogTab2Tests.cs b/src/IoTHub.Portal.Tests.Unit/Client/Pages/Configurations/EdgeModule/ModuleDialogTab2Tests.cs index 3d3e2fa58..1f3250340 100644 --- a/src/IoTHub.Portal.Tests.Unit/Client/Pages/Configurations/EdgeModule/ModuleDialogTab2Tests.cs +++ b/src/IoTHub.Portal.Tests.Unit/Client/Pages/Configurations/EdgeModule/ModuleDialogTab2Tests.cs @@ -5,7 +5,7 @@ namespace IoTHub.Portal.Tests.Unit.Client.Pages.Configurations.EdgeModule { using System; using System.Collections.Generic; - using IoTHub.Portal.Client.Pages.EdgeModels.EdgeModule; + using IoTHub.Portal.Client.Dialogs.EdgeModels.EdgeModule; using Models.v10; using IoTHub.Portal.Shared.Models.v10; using UnitTests.Bases; diff --git a/src/IoTHub.Portal.Tests.Unit/Client/Pages/Configurations/EdgeModule/ModuleDialogTab3Tests.cs b/src/IoTHub.Portal.Tests.Unit/Client/Pages/Configurations/EdgeModule/ModuleDialogTab3Tests.cs index 895821ab5..f467c0d26 100644 --- a/src/IoTHub.Portal.Tests.Unit/Client/Pages/Configurations/EdgeModule/ModuleDialogTab3Tests.cs +++ b/src/IoTHub.Portal.Tests.Unit/Client/Pages/Configurations/EdgeModule/ModuleDialogTab3Tests.cs @@ -5,7 +5,7 @@ namespace IoTHub.Portal.Tests.Unit.Client.Pages.Configurations.EdgeModule { using System; using System.Collections.Generic; - using IoTHub.Portal.Client.Pages.EdgeModels.EdgeModule; + using IoTHub.Portal.Client.Dialogs.EdgeModels.EdgeModule; using Models.v10; using IoTHub.Portal.Shared.Models.v10; using UnitTests.Bases; diff --git a/src/IoTHub.Portal.Tests.Unit/Client/Pages/Configurations/EdgeModule/ModuleDialogTests.cs b/src/IoTHub.Portal.Tests.Unit/Client/Pages/Configurations/EdgeModule/ModuleDialogTests.cs index 4a6a4f1d8..e311c9f39 100644 --- a/src/IoTHub.Portal.Tests.Unit/Client/Pages/Configurations/EdgeModule/ModuleDialogTests.cs +++ b/src/IoTHub.Portal.Tests.Unit/Client/Pages/Configurations/EdgeModule/ModuleDialogTests.cs @@ -6,7 +6,7 @@ namespace IoTHub.Portal.Tests.Unit.Client.Pages.Configurations.EdgeModule using System; using System.Collections.Generic; using System.Threading.Tasks; - using IoTHub.Portal.Client.Pages.EdgeModels.EdgeModule; + using IoTHub.Portal.Client.Dialogs.EdgeModels.EdgeModule; using Models.v10; using IoTHub.Portal.Shared.Models.v10; using UnitTests.Bases; diff --git a/src/IoTHub.Portal.Tests.Unit/Client/Pages/Devices/ConnectionStringDialogTests.cs b/src/IoTHub.Portal.Tests.Unit/Client/Pages/Devices/ConnectionStringDialogTests.cs index 27f4f9166..89f0b38df 100644 --- a/src/IoTHub.Portal.Tests.Unit/Client/Pages/Devices/ConnectionStringDialogTests.cs +++ b/src/IoTHub.Portal.Tests.Unit/Client/Pages/Devices/ConnectionStringDialogTests.cs @@ -7,7 +7,7 @@ namespace IoTHub.Portal.Tests.Unit.Client.Pages.Devices using System.Threading.Tasks; using IoTHub.Portal.Client.Exceptions; using IoTHub.Portal.Client.Models; - using IoTHub.Portal.Client.Pages.Devices; + using IoTHub.Portal.Client.Dialogs.Devices; using IoTHub.Portal.Client.Services; using UnitTests.Bases; using Bunit; diff --git a/src/IoTHub.Portal.Tests.Unit/Client/Pages/Devices/DevicesListPageTests.cs b/src/IoTHub.Portal.Tests.Unit/Client/Pages/Devices/DevicesListPageTests.cs index 0c9f74b20..332a82c91 100644 --- a/src/IoTHub.Portal.Tests.Unit/Client/Pages/Devices/DevicesListPageTests.cs +++ b/src/IoTHub.Portal.Tests.Unit/Client/Pages/Devices/DevicesListPageTests.cs @@ -11,6 +11,7 @@ namespace IoTHub.Portal.Tests.Unit.Client.Pages.Devices using IoTHub.Portal.Client.Exceptions; using IoTHub.Portal.Client.Models; using IoTHub.Portal.Client.Pages.Devices; + using IoTHub.Portal.Client.Dialogs.Devices; using IoTHub.Portal.Client.Services; using IoTHub.Portal.Shared.Models.v10; using Bunit; diff --git a/src/IoTHub.Portal.Tests.Unit/Client/Pages/Devices/ImportReportDialogTests.cs b/src/IoTHub.Portal.Tests.Unit/Client/Pages/Devices/ImportReportDialogTests.cs index 32c089054..12cfbb7a6 100644 --- a/src/IoTHub.Portal.Tests.Unit/Client/Pages/Devices/ImportReportDialogTests.cs +++ b/src/IoTHub.Portal.Tests.Unit/Client/Pages/Devices/ImportReportDialogTests.cs @@ -9,7 +9,7 @@ namespace IoTHub.Portal.Tests.Unit.Client.Pages.Devices using System.Threading.Tasks; using IoTHub.Portal.Client.Exceptions; using IoTHub.Portal.Client.Models; - using IoTHub.Portal.Client.Pages.Devices; + using IoTHub.Portal.Client.Dialogs.Devices; using IoTHub.Portal.Client.Services; using IoTHub.Portal.Shared.Models.v10; using IoTHub.Portal.Tests.Unit.UnitTests.Bases; diff --git a/src/IoTHub.Portal.Tests.Unit/Client/Pages/Devices/LoRaDeviceTelemetryDialogTests.cs b/src/IoTHub.Portal.Tests.Unit/Client/Pages/Devices/LoRaDeviceTelemetryDialogTests.cs index 23fb1d655..1171f5dc2 100644 --- a/src/IoTHub.Portal.Tests.Unit/Client/Pages/Devices/LoRaDeviceTelemetryDialogTests.cs +++ b/src/IoTHub.Portal.Tests.Unit/Client/Pages/Devices/LoRaDeviceTelemetryDialogTests.cs @@ -7,6 +7,7 @@ namespace IoTHub.Portal.Tests.Unit.Client.Pages.Devices using System.Threading.Tasks; using IoTHub.Portal.Client.Pages.Devices; using IoTHub.Portal.Client.Services; + using IoTHub.Portal.Client.Dialogs.Devices; using UnitTests.Bases; using Bunit; using Microsoft.Extensions.DependencyInjection; diff --git a/src/IoTHub.Portal.Tests.Unit/Client/Pages/EdgeDevices/ConnectionStringDialogTests.cs b/src/IoTHub.Portal.Tests.Unit/Client/Pages/EdgeDevices/ConnectionStringDialogTests.cs index 1d94533f4..a152e66b5 100644 --- a/src/IoTHub.Portal.Tests.Unit/Client/Pages/EdgeDevices/ConnectionStringDialogTests.cs +++ b/src/IoTHub.Portal.Tests.Unit/Client/Pages/EdgeDevices/ConnectionStringDialogTests.cs @@ -8,6 +8,7 @@ namespace IoTHub.Portal.Tests.Unit.Client.Pages.EdgeDevices using IoTHub.Portal.Client.Exceptions; using IoTHub.Portal.Client.Models; using IoTHub.Portal.Client.Pages.EdgeDevices; + using IoTHub.Portal.Client.Dialogs.EdgeDevices; using IoTHub.Portal.Client.Services; using Models.v10; using UnitTests.Bases; diff --git a/src/IoTHub.Portal.Tests.Unit/Client/Pages/EdgeDevices/EdgeDeviceDeleteConfirmationDialogTests.cs b/src/IoTHub.Portal.Tests.Unit/Client/Pages/EdgeDevices/EdgeDeviceDeleteConfirmationDialogTests.cs index 9d165f8f6..73e82e592 100644 --- a/src/IoTHub.Portal.Tests.Unit/Client/Pages/EdgeDevices/EdgeDeviceDeleteConfirmationDialogTests.cs +++ b/src/IoTHub.Portal.Tests.Unit/Client/Pages/EdgeDevices/EdgeDeviceDeleteConfirmationDialogTests.cs @@ -7,7 +7,7 @@ namespace IoTHub.Portal.Tests.Unit.Client.Pages.EdgeDevices using System.Threading.Tasks; using IoTHub.Portal.Client.Exceptions; using IoTHub.Portal.Client.Models; - using IoTHub.Portal.Client.Pages.EdgeDevices; + using IoTHub.Portal.Client.Dialogs.EdgeDevices; using IoTHub.Portal.Client.Services; using Models.v10; using UnitTests.Bases; diff --git a/src/IoTHub.Portal.Tests.Unit/Client/Pages/EdgeDevices/EdgeDeviceDetailPageTests.cs b/src/IoTHub.Portal.Tests.Unit/Client/Pages/EdgeDevices/EdgeDeviceDetailPageTests.cs index 9c12513c4..684c2c429 100644 --- a/src/IoTHub.Portal.Tests.Unit/Client/Pages/EdgeDevices/EdgeDeviceDetailPageTests.cs +++ b/src/IoTHub.Portal.Tests.Unit/Client/Pages/EdgeDevices/EdgeDeviceDetailPageTests.cs @@ -9,6 +9,7 @@ namespace IoTHub.Portal.Tests.Unit.Client.Pages.EdgeDevices using IoTHub.Portal.Client.Exceptions; using IoTHub.Portal.Client.Models; using IoTHub.Portal.Client.Pages.EdgeDevices; + using IoTHub.Portal.Client.Dialogs.EdgeDevices; using IoTHub.Portal.Client.Services; using Models.v10; using UnitTests.Bases; diff --git a/src/IoTHub.Portal.Tests.Unit/Client/Pages/EdgeDevices/EdgeDeviceListPageTests.cs b/src/IoTHub.Portal.Tests.Unit/Client/Pages/EdgeDevices/EdgeDeviceListPageTests.cs index 0ea03a83f..daa9f994c 100644 --- a/src/IoTHub.Portal.Tests.Unit/Client/Pages/EdgeDevices/EdgeDeviceListPageTests.cs +++ b/src/IoTHub.Portal.Tests.Unit/Client/Pages/EdgeDevices/EdgeDeviceListPageTests.cs @@ -9,6 +9,7 @@ namespace IoTHub.Portal.Tests.Unit.Client.Pages.EdgeDevices using IoTHub.Portal.Client.Models; using IoTHub.Portal.Shared.Models.v10; using IoTHub.Portal.Client.Pages.EdgeDevices; + using IoTHub.Portal.Client.Dialogs.EdgeDevices; using IoTHub.Portal.Client.Services; using Models.v10; using UnitTests.Bases; diff --git a/src/IoTHub.Portal.Tests.Unit/Client/Pages/EdgeDevices/ModuleLogsDialogTests.cs b/src/IoTHub.Portal.Tests.Unit/Client/Pages/EdgeDevices/ModuleLogsDialogTests.cs index 27e3f15d9..e7a1ad777 100644 --- a/src/IoTHub.Portal.Tests.Unit/Client/Pages/EdgeDevices/ModuleLogsDialogTests.cs +++ b/src/IoTHub.Portal.Tests.Unit/Client/Pages/EdgeDevices/ModuleLogsDialogTests.cs @@ -8,7 +8,7 @@ namespace IoTHub.Portal.Tests.Unit.Client.Pages.EdgeDevices using System.Threading.Tasks; using IoTHub.Portal.Client.Exceptions; using IoTHub.Portal.Client.Models; - using IoTHub.Portal.Client.Pages.EdgeDevices; + using IoTHub.Portal.Client.Dialogs.EdgeDevices; using IoTHub.Portal.Client.Services; using Models.v10; using UnitTests.Bases; diff --git a/src/IoTHub.Portal.Tests.Unit/Client/Pages/EdgeModels/CreateEdgeModelsPageTest.cs b/src/IoTHub.Portal.Tests.Unit/Client/Pages/EdgeModels/CreateEdgeModelsPageTest.cs index 02aa18f05..517e6f964 100644 --- a/src/IoTHub.Portal.Tests.Unit/Client/Pages/EdgeModels/CreateEdgeModelsPageTest.cs +++ b/src/IoTHub.Portal.Tests.Unit/Client/Pages/EdgeModels/CreateEdgeModelsPageTest.cs @@ -9,7 +9,7 @@ namespace IoTHub.Portal.Tests.Unit.Client.Pages.EdgeModels using IoTHub.Portal.Client.Exceptions; using IoTHub.Portal.Client.Models; using IoTHub.Portal.Client.Pages.EdgeModels; - using IoTHub.Portal.Client.Pages.EdgeModels.EdgeModule; + using IoTHub.Portal.Client.Dialogs.EdgeModels.EdgeModule; using IoTHub.Portal.Client.Services; using IoTHub.Portal.Models.v10; using IoTHub.Portal.Shared.Models.v10; diff --git a/src/IoTHub.Portal.Tests.Unit/Client/Pages/EdgeModels/DeleteEdgeModelDialogTest.cs b/src/IoTHub.Portal.Tests.Unit/Client/Pages/EdgeModels/DeleteEdgeModelDialogTest.cs index 48a265909..a0826a51b 100644 --- a/src/IoTHub.Portal.Tests.Unit/Client/Pages/EdgeModels/DeleteEdgeModelDialogTest.cs +++ b/src/IoTHub.Portal.Tests.Unit/Client/Pages/EdgeModels/DeleteEdgeModelDialogTest.cs @@ -7,7 +7,7 @@ namespace IoTHub.Portal.Tests.Unit.Client.Pages.EdgeModels using System.Threading.Tasks; using IoTHub.Portal.Client.Exceptions; using IoTHub.Portal.Client.Models; - using IoTHub.Portal.Client.Pages.EdgeModels; + using IoTHub.Portal.Client.Dialogs.EdgeModels; using IoTHub.Portal.Client.Services; using IoTHub.Portal.Tests.Unit.UnitTests.Bases; using Bunit; diff --git a/src/IoTHub.Portal.Tests.Unit/Client/Pages/EdgeModels/EdgeModelDetailPageTest.cs b/src/IoTHub.Portal.Tests.Unit/Client/Pages/EdgeModels/EdgeModelDetailPageTest.cs index 3de7c3bbd..780e3b434 100644 --- a/src/IoTHub.Portal.Tests.Unit/Client/Pages/EdgeModels/EdgeModelDetailPageTest.cs +++ b/src/IoTHub.Portal.Tests.Unit/Client/Pages/EdgeModels/EdgeModelDetailPageTest.cs @@ -10,7 +10,7 @@ namespace IoTHub.Portal.Tests.Unit.Client.Pages.EdgeModels using IoTHub.Portal.Client.Exceptions; using IoTHub.Portal.Client.Models; using IoTHub.Portal.Client.Pages.EdgeModels; - using IoTHub.Portal.Client.Pages.EdgeModels.EdgeModule; + using IoTHub.Portal.Client.Dialogs.EdgeModels.EdgeModule; using IoTHub.Portal.Client.Services; using IoTHub.Portal.Models.v10; using IoTHub.Portal.Shared.Models.v10; diff --git a/src/IoTHub.Portal.Tests.Unit/Client/Pages/EdgeModels/EdgeModelsListPageTest.cs b/src/IoTHub.Portal.Tests.Unit/Client/Pages/EdgeModels/EdgeModelsListPageTest.cs index 128ce0d00..1f4b60c2c 100644 --- a/src/IoTHub.Portal.Tests.Unit/Client/Pages/EdgeModels/EdgeModelsListPageTest.cs +++ b/src/IoTHub.Portal.Tests.Unit/Client/Pages/EdgeModels/EdgeModelsListPageTest.cs @@ -4,12 +4,13 @@ namespace IoTHub.Portal.Tests.Unit.Client.Pages.EdgeModels { using System; - using System.Collections.Generic; - using System.Linq; + using System.Collections.Generic; + using System.Linq; using AutoFixture; using IoTHub.Portal.Client.Exceptions; using IoTHub.Portal.Client.Models; using IoTHub.Portal.Client.Pages.EdgeModels; + using IoTHub.Portal.Client.Dialogs.EdgeModels; using IoTHub.Portal.Client.Services; using IoTHub.Portal.Models.v10; using IoTHub.Portal.Shared.Models.v10.Filters; diff --git a/src/IoTHub.Portal.Tests.Unit/Client/Pages/EdgeModels/SystemModuleDialogTest.cs b/src/IoTHub.Portal.Tests.Unit/Client/Pages/EdgeModels/SystemModuleDialogTest.cs index ef6e3ecac..3fbb73045 100644 --- a/src/IoTHub.Portal.Tests.Unit/Client/Pages/EdgeModels/SystemModuleDialogTest.cs +++ b/src/IoTHub.Portal.Tests.Unit/Client/Pages/EdgeModels/SystemModuleDialogTest.cs @@ -6,7 +6,7 @@ namespace IoTHub.Portal.Tests.Unit.Client.Pages.EdgeModels using System.Collections.Generic; using System.Threading.Tasks; using AutoFixture; - using IoTHub.Portal.Client.Pages.EdgeModels.EdgeModule; + using IoTHub.Portal.Client.Dialogs.EdgeModels.EdgeModule; using IoTHub.Portal.Shared.Models.v10; using IoTHub.Portal.Tests.Unit.UnitTests.Bases; using Bunit; diff --git a/src/IoTHub.Portal.Tests.Unit/Client/Pages/Ideas/SubmitIdeaDialogTests.cs b/src/IoTHub.Portal.Tests.Unit/Client/Pages/Ideas/SubmitIdeaDialogTests.cs index 499ffd0ac..9110277b6 100644 --- a/src/IoTHub.Portal.Tests.Unit/Client/Pages/Ideas/SubmitIdeaDialogTests.cs +++ b/src/IoTHub.Portal.Tests.Unit/Client/Pages/Ideas/SubmitIdeaDialogTests.cs @@ -9,7 +9,7 @@ namespace IoTHub.Portal.Tests.Unit.Client.Pages.Ideas using AutoFixture; using IoTHub.Portal.Client.Exceptions; using IoTHub.Portal.Client.Models; - using IoTHub.Portal.Client.Pages.Ideas; + using IoTHub.Portal.Client.Dialogs.Ideas; using IoTHub.Portal.Client.Services; using IoTHub.Portal.Shared.Models.v1._0; using UnitTests.Bases; diff --git a/src/IoTHub.Portal.Tests.Unit/Client/Pages/Shared/AppbarTests.cs b/src/IoTHub.Portal.Tests.Unit/Client/Pages/Shared/AppbarTests.cs index a35e647b2..901c5830e 100644 --- a/src/IoTHub.Portal.Tests.Unit/Client/Pages/Shared/AppbarTests.cs +++ b/src/IoTHub.Portal.Tests.Unit/Client/Pages/Shared/AppbarTests.cs @@ -4,7 +4,7 @@ namespace IoTHub.Portal.Tests.Unit.Client.Pages.Shared { using System; - using IoTHub.Portal.Client.Pages.Ideas; + using IoTHub.Portal.Client.Dialogs.Ideas; using IoTHub.Portal.Client.Services; using IoTHub.Portal.Client.Shared; using Models.v10; diff --git a/src/IoTHub.Portal.Tests.Unit/Client/Pages/Shared/ProblemDetailsDialogTests.cs b/src/IoTHub.Portal.Tests.Unit/Client/Pages/Shared/ProblemDetailsDialogTests.cs index ce9019d43..7443ef2b7 100644 --- a/src/IoTHub.Portal.Tests.Unit/Client/Pages/Shared/ProblemDetailsDialogTests.cs +++ b/src/IoTHub.Portal.Tests.Unit/Client/Pages/Shared/ProblemDetailsDialogTests.cs @@ -10,6 +10,7 @@ namespace IoTHub.Portal.Tests.Unit.Client.Pages.Shared using IoTHub.Portal.Client.Extensions; using IoTHub.Portal.Client.Models; using IoTHub.Portal.Client.Shared; + using IoTHub.Portal.Client.Dialogs.Shared; using UnitTests.Bases; using Bunit; using FluentAssertions;