From 80aa650a2c501a7d31898c09606f5f917df305aa Mon Sep 17 00:00:00 2001 From: Leon Hoppe Date: Sun, 19 Jan 2025 16:00:33 +0100 Subject: [PATCH] Added web module tests --- .idea/.idea.HopFrame/.idea/workspace.xml | 103 +++++++++--------- HopFrame.sln | 9 +- src/HopFrame.Core/HopFrame.Core.csproj | 2 +- .../Config/DbContextConfiguratorTests.cs | 4 +- .../Config/HopFrameConfiguratorTests.cs | 4 +- .../Config/PropertyConfiguratorTests.cs | 4 +- .../Config/TableConfiguratorTests.cs | 4 +- .../HopFrame.Tests.Core.csproj} | 0 .../Models/MockDbContext.cs | 2 +- .../Models/MockModel.cs | 2 +- .../Models/MockModel2.cs | 2 +- .../Models/QueryProvider.cs | 2 +- .../Services/ContextExplorerTests.cs | 4 +- .../Services/DefaultAuthHandlerTests.cs | 2 +- .../Services/DisplayPropertyTests.cs | 4 +- .../Services/TableManagerTests.cs | 4 +- .../Components/Dialogs/HopFrameEditorTests.cs | 63 +++++++++++ .../Components/Layout/HopFrameLayoutTests.cs | 74 +++++++++++++ .../Layout/HopFrameNavigationTests.cs | 68 ++++++++++++ .../Layout/HopFrameSideMenuTests.cs | 49 +++++++++ .../Components/Pages/HopFrameHomeTests.cs | 62 +++++++++++ .../Pages/HopFrameTablePageTests.cs | 96 ++++++++++++++++ .../Helpers/EnumerableExtensions.cs | 39 +++++++ .../HopFrame.Tests.Web.csproj | 29 +++++ .../HopFrame.Tests.Web/Models/MyDbContext.cs | 12 ++ tests/HopFrame.Tests.Web/Models/MyTable.cs | 14 +++ 26 files changed, 587 insertions(+), 71 deletions(-) rename tests/{HopFrame.Core.Tests => HopFrame.Tests.Core}/Config/DbContextConfiguratorTests.cs (93%) rename tests/{HopFrame.Core.Tests => HopFrame.Tests.Core}/Config/HopFrameConfiguratorTests.cs (96%) rename tests/{HopFrame.Core.Tests => HopFrame.Tests.Core}/Config/PropertyConfiguratorTests.cs (99%) rename tests/{HopFrame.Core.Tests => HopFrame.Tests.Core}/Config/TableConfiguratorTests.cs (99%) rename tests/{HopFrame.Core.Tests/HopFrame.Core.Tests.csproj => HopFrame.Tests.Core/HopFrame.Tests.Core.csproj} (100%) rename tests/{HopFrame.Core.Tests => HopFrame.Tests.Core}/Models/MockDbContext.cs (90%) rename tests/{HopFrame.Core.Tests => HopFrame.Tests.Core}/Models/MockModel.cs (87%) rename tests/{HopFrame.Core.Tests => HopFrame.Tests.Core}/Models/MockModel2.cs (88%) rename tests/{HopFrame.Core.Tests => HopFrame.Tests.Core}/Models/QueryProvider.cs (99%) rename tests/{HopFrame.Core.Tests => HopFrame.Tests.Core}/Services/ContextExplorerTests.cs (99%) rename tests/{HopFrame.Core.Tests => HopFrame.Tests.Core}/Services/DefaultAuthHandlerTests.cs (96%) rename tests/{HopFrame.Core.Tests => HopFrame.Tests.Core}/Services/DisplayPropertyTests.cs (98%) rename tests/{HopFrame.Core.Tests => HopFrame.Tests.Core}/Services/TableManagerTests.cs (99%) create mode 100644 tests/HopFrame.Tests.Web/Components/Dialogs/HopFrameEditorTests.cs create mode 100644 tests/HopFrame.Tests.Web/Components/Layout/HopFrameLayoutTests.cs create mode 100644 tests/HopFrame.Tests.Web/Components/Layout/HopFrameNavigationTests.cs create mode 100644 tests/HopFrame.Tests.Web/Components/Layout/HopFrameSideMenuTests.cs create mode 100644 tests/HopFrame.Tests.Web/Components/Pages/HopFrameHomeTests.cs create mode 100644 tests/HopFrame.Tests.Web/Components/Pages/HopFrameTablePageTests.cs create mode 100644 tests/HopFrame.Tests.Web/Helpers/EnumerableExtensions.cs create mode 100644 tests/HopFrame.Tests.Web/HopFrame.Tests.Web.csproj create mode 100644 tests/HopFrame.Tests.Web/Models/MyDbContext.cs create mode 100644 tests/HopFrame.Tests.Web/Models/MyTable.cs diff --git a/.idea/.idea.HopFrame/.idea/workspace.xml b/.idea/.idea.HopFrame/.idea/workspace.xml index be4a925..09e7fe9 100644 --- a/.idea/.idea.HopFrame/.idea/workspace.xml +++ b/.idea/.idea.HopFrame/.idea/workspace.xml @@ -10,20 +10,32 @@ - + + + + + + + + + + - - - - - - - - - - - - + + + + + + + + + + + + + + + @@ -321,52 +342,33 @@ - + - - + + - - - + + + - - - - + + + + - - - - - - - - - - - - - - - - - - - - - - - - + + + + +