From d2b6ae997557ddbd56cc4a9684942cdca65f288c Mon Sep 17 00:00:00 2001 From: Dominic Burger Date: Mon, 11 Mar 2024 11:05:52 +0100 Subject: [PATCH] Rename projects and namespaces to Geopilot --- .github/workflows/ci.yml | 12 +++--- Dockerfile | 14 +++--- GeoCop.sln => Geopilot.sln | 6 +-- README.md | 12 +++--- docker-compose.yml | 4 +- docker-entrypoint.sh | 2 +- src/{GeoCop.Api => Geopilot.Api}/.gitignore | 0 .../DevelopmentAuthorizationMiddleware.cs | 2 +- .../Authorization/GeopilotPolicies.cs} | 4 +- .../Authorization/GeopilotUserHandler.cs} | 14 +++--- .../Authorization/GeopilotUserRequirement.cs} | 6 +-- src/{GeoCop.Api => Geopilot.Api}/Context.cs | 4 +- .../ContextExtensions.cs | 4 +- .../Contracts/BrowserAuthOptions.cs | 2 +- .../Contracts/DeliveryRequest.cs | 2 +- .../Contracts/ValidationSettingsResponse.cs | 2 +- .../Controllers/DeliveryController.cs | 20 ++++----- .../Controllers/MandateController.cs | 10 ++--- .../Controllers/UserController.cs | 10 ++--- .../Controllers/ValidationController.cs | 8 ++-- .../Controllers/VersionController.cs | 2 +- .../Conventions/GeopilotJsonConvention.cs} | 8 ++-- .../Conventions/StacRoutingConvention.cs | 2 +- .../SystemTextJsonBodyModelBinder.cs | 2 +- .../DbHealthCheck.cs | 2 +- .../FileAccess/AssetHandler.cs | 6 +-- .../FileAccess/DirectoryProvider.cs | 2 +- .../FileAccess/FileHandle.cs | 2 +- .../FileAccess/IAssetHandler.cs | 4 +- .../FileAccess/IDirectoryProvider.cs | 2 +- .../FileAccess/IFileProvider.cs | 2 +- .../FileAccess/PhysicalFileProvider.cs | 2 +- .../Geopilot.Api.csproj} | 5 +-- .../IContentTypeProviderExtensions.cs | 4 +- .../20231107093940_InitialCreate.Designer.cs | 38 ++++++++--------- .../20231107093940_InitialCreate.cs | 2 +- ...1127075341_AddDeletedAttribute.Designer.cs | 38 ++++++++--------- .../20231127075341_AddDeletedAttribute.cs | 2 +- ...31127135108_AddJobIdToDelivery.Designer.cs | 38 ++++++++--------- .../20231127135108_AddJobIdToDelivery.cs | 2 +- ...20231127155720_UserInformation.Designer.cs | 38 ++++++++--------- .../20231127155720_UserInformation.cs | 2 +- ...dUserDefinedDeliveryProperties.Designer.cs | 40 +++++++++--------- ...141130_AddUserDefinedDeliveryProperties.cs | 2 +- .../Migrations/ContextModelSnapshot.cs | 40 +++++++++--------- .../Models/Asset.cs | 2 +- .../Models/AssetType.cs | 2 +- .../Models/Delivery.cs | 2 +- .../Models/DeliveryMandate.cs | 2 +- .../Models/Organisation.cs | 2 +- .../Models/User.cs | 2 +- src/{GeoCop.Api => Geopilot.Api}/Program.cs | 34 +++++++-------- .../Properties/launchSettings.json | 0 .../StacServices/HttpsLinkGenerator.cs | 2 +- .../StacServices/HttpsStacApiContext.cs | 2 +- .../HttpsStacApiContextFactory.cs | 2 +- .../StacServices/StacCollectionsProvider.cs | 2 +- .../StacServices/StacConverter.cs | 4 +- .../StacServices/StacDataServicesProvider.cs | 2 +- .../StacServices/StacItemsBroker.cs | 2 +- .../StacServices/StacItemsProvider.cs | 2 +- .../StacServices/StacLinker.cs | 2 +- .../StacServices/StacRootCatalogProvider.cs | 2 +- .../StacServices/StacWebApiExtensions.cs | 2 +- .../Validation/IValidationRunner.cs | 2 +- .../Validation/IValidationService.cs | 4 +- .../Validation/IValidator.cs | 4 +- .../Interlis/IliCheckSettingsResponse.cs | 2 +- .../Interlis/IliCheckStatusResponse.cs | 2 +- .../Interlis/IliCheckUploadResponse.cs | 2 +- .../Validation/Interlis/InterlisValidator.cs | 4 +- .../Validation/Status.cs | 2 +- .../Validation/ValidationFailedException.cs | 2 +- .../Validation/ValidationJob.cs | 4 +- .../Validation/ValidationJobStatus.cs | 2 +- .../Validation/ValidationRunner.cs | 2 +- .../Validation/ValidationService.cs | 4 +- .../Validation/ValidatorResult.cs | 2 +- .../appsettings.Development.json | 0 .../appsettings.json | 0 .../.eslintrc.cjs | 0 .../.gitignore | 0 .../.vscode/launch.json | 0 .../Geopilot.Frontend.esproj} | 0 .../aspnetcore-https.js | 0 .../index.html | 0 .../nuget.config | 0 .../package-lock.json | 4 +- .../package.json | 2 +- .../public/app.svg | 0 .../public/client-settings.json | 0 .../public/favicon.ico | Bin .../public/logo.svg | 0 .../src/About.jsx | 0 .../src/App.jsx | 0 .../src/BannerContent.jsx | 0 .../src/Footer.jsx | 0 .../src/Header.jsx | 0 .../src/ModalContent.jsx | 0 .../src/app.css | 0 .../src/assets/sms-sh.png | Bin .../src/auth/AdminTemplate.jsx | 0 .../src/auth/AuthContext.jsx | 0 .../src/auth/LoggedInTemplate.jsx | 0 .../src/auth/LoggedOutTemplate.jsx | 0 .../src/auth/index.js | 0 .../src/fonts/Dosis-Bold.ttf | Bin .../src/fonts/Dosis-ExtraBold.ttf | Bin .../src/fonts/Dosis-ExtraLight.ttf | Bin .../src/fonts/Dosis-Light.ttf | Bin .../src/fonts/Dosis-Medium.ttf | Bin .../src/fonts/Dosis-Regular.ttf | Bin .../src/fonts/Dosis-SemiBold.ttf | Bin .../src/index.css | 0 .../src/main.jsx | 0 .../src/pages/admin/Admin.jsx | 0 .../src/pages/home/Delivery.jsx | 0 .../src/pages/home/DeliveryContainer.jsx | 0 .../src/pages/home/FileDropzone.jsx | 0 .../src/pages/home/Home.jsx | 0 .../src/pages/home/InfoCarousel.jsx | 0 .../src/pages/home/Protokoll.jsx | 0 .../src/pages/home/Title.jsx | 0 .../src/pages/home/ValidatorResult.jsx | 0 .../vite.config.js | 0 .../AssemblyInitialize.cs | 4 +- .../ControllerExtensions.cs | 4 +- .../Controllers/DeliveryControllerTest.cs | 12 +++--- .../Controllers/MandateControllerTest.cs | 8 ++-- .../Controllers/UserControllerTest.cs | 8 ++-- .../Controllers/ValidationControllerTest.cs | 6 +-- .../Controllers/VersionControllerTest.cs | 2 +- .../FileAccess/AssetHandlerTest.cs | 8 ++-- .../FileAccess/PhysicalFileProviderTest.cs | 4 +- .../Geopilot.Api.Test.csproj} | 2 +- .../GlobalUsings.cs | 0 .../StacServices/StacConverterTest.cs | 4 +- .../TestDatabaseFixture.cs | 2 +- .../Validation/ValidationJobStatusTest.cs | 2 +- .../Validation/ValidationServiceTest.cs | 4 +- 140 files changed, 304 insertions(+), 305 deletions(-) rename GeoCop.sln => Geopilot.sln (85%) rename src/{GeoCop.Api => Geopilot.Api}/.gitignore (100%) rename src/{GeoCop.Api => Geopilot.Api}/Authorization/DevelopmentAuthorizationMiddleware.cs (97%) rename src/{GeoCop.Api/Authorization/GeocopPolicies.cs => Geopilot.Api/Authorization/GeopilotPolicies.cs} (81%) rename src/{GeoCop.Api/Authorization/GeocopUserHandler.cs => Geopilot.Api/Authorization/GeopilotUserHandler.cs} (71%) rename src/{GeoCop.Api/Authorization/GeocopUserRequirement.cs => Geopilot.Api/Authorization/GeopilotUserRequirement.cs} (56%) rename src/{GeoCop.Api => Geopilot.Api}/Context.cs (97%) rename src/{GeoCop.Api => Geopilot.Api}/ContextExtensions.cs (99%) rename src/{GeoCop.Api => Geopilot.Api}/Contracts/BrowserAuthOptions.cs (95%) rename src/{GeoCop.Api => Geopilot.Api}/Contracts/DeliveryRequest.cs (96%) rename src/{GeoCop.Api => Geopilot.Api}/Contracts/ValidationSettingsResponse.cs (91%) rename src/{GeoCop.Api => Geopilot.Api}/Controllers/DeliveryController.cs (96%) rename src/{GeoCop.Api => Geopilot.Api}/Controllers/MandateController.cs (94%) rename src/{GeoCop.Api => Geopilot.Api}/Controllers/UserController.cs (92%) rename src/{GeoCop.Api => Geopilot.Api}/Controllers/ValidationController.cs (98%) rename src/{GeoCop.Api => Geopilot.Api}/Controllers/VersionController.cs (96%) rename src/{GeoCop.Api/Conventions/GeocopJsonConvention.cs => Geopilot.Api/Conventions/GeopilotJsonConvention.cs} (90%) rename src/{GeoCop.Api => Geopilot.Api}/Conventions/StacRoutingConvention.cs (98%) rename src/{GeoCop.Api => Geopilot.Api}/Conventions/SystemTextJsonBodyModelBinder.cs (96%) rename src/{GeoCop.Api => Geopilot.Api}/DbHealthCheck.cs (97%) rename src/{GeoCop.Api => Geopilot.Api}/FileAccess/AssetHandler.cs (98%) rename src/{GeoCop.Api => Geopilot.Api}/FileAccess/DirectoryProvider.cs (96%) rename src/{GeoCop.Api => Geopilot.Api}/FileAccess/FileHandle.cs (94%) rename src/{GeoCop.Api => Geopilot.Api}/FileAccess/IAssetHandler.cs (94%) rename src/{GeoCop.Api => Geopilot.Api}/FileAccess/IDirectoryProvider.cs (93%) rename src/{GeoCop.Api => Geopilot.Api}/FileAccess/IFileProvider.cs (98%) rename src/{GeoCop.Api => Geopilot.Api}/FileAccess/PhysicalFileProvider.cs (98%) rename src/{GeoCop.Api/GeoCop.Api.csproj => Geopilot.Api/Geopilot.Api.csproj} (94%) rename src/{GeoCop.Api => Geopilot.Api}/IContentTypeProviderExtensions.cs (97%) rename src/{GeoCop.Api => Geopilot.Api}/Migrations/20231107093940_InitialCreate.Designer.cs (85%) rename src/{GeoCop.Api => Geopilot.Api}/Migrations/20231107093940_InitialCreate.cs (99%) rename src/{GeoCop.Api => Geopilot.Api}/Migrations/20231127075341_AddDeletedAttribute.Designer.cs (86%) rename src/{GeoCop.Api => Geopilot.Api}/Migrations/20231127075341_AddDeletedAttribute.cs (96%) rename src/{GeoCop.Api => Geopilot.Api}/Migrations/20231127135108_AddJobIdToDelivery.Designer.cs (86%) rename src/{GeoCop.Api => Geopilot.Api}/Migrations/20231127135108_AddJobIdToDelivery.cs (95%) rename src/{GeoCop.Api => Geopilot.Api}/Migrations/20231127155720_UserInformation.Designer.cs (86%) rename src/{GeoCop.Api => Geopilot.Api}/Migrations/20231127155720_UserInformation.cs (97%) rename src/{GeoCop.Api => Geopilot.Api}/Migrations/20231129141130_AddUserDefinedDeliveryProperties.Designer.cs (86%) rename src/{GeoCop.Api => Geopilot.Api}/Migrations/20231129141130_AddUserDefinedDeliveryProperties.cs (98%) rename src/{GeoCop.Api => Geopilot.Api}/Migrations/ContextModelSnapshot.cs (86%) rename src/{GeoCop.Api => Geopilot.Api}/Models/Asset.cs (97%) rename src/{GeoCop.Api => Geopilot.Api}/Models/AssetType.cs (93%) rename src/{GeoCop.Api => Geopilot.Api}/Models/Delivery.cs (97%) rename src/{GeoCop.Api => Geopilot.Api}/Models/DeliveryMandate.cs (98%) rename src/{GeoCop.Api => Geopilot.Api}/Models/Organisation.cs (95%) rename src/{GeoCop.Api => Geopilot.Api}/Models/User.cs (97%) rename src/{GeoCop.Api => Geopilot.Api}/Program.cs (87%) rename src/{GeoCop.Api => Geopilot.Api}/Properties/launchSettings.json (100%) rename src/{GeoCop.Api => Geopilot.Api}/StacServices/HttpsLinkGenerator.cs (98%) rename src/{GeoCop.Api => Geopilot.Api}/StacServices/HttpsStacApiContext.cs (98%) rename src/{GeoCop.Api => Geopilot.Api}/StacServices/HttpsStacApiContextFactory.cs (98%) rename src/{GeoCop.Api => Geopilot.Api}/StacServices/StacCollectionsProvider.cs (98%) rename src/{GeoCop.Api => Geopilot.Api}/StacServices/StacConverter.cs (98%) rename src/{GeoCop.Api => Geopilot.Api}/StacServices/StacDataServicesProvider.cs (96%) rename src/{GeoCop.Api => Geopilot.Api}/StacServices/StacItemsBroker.cs (96%) rename src/{GeoCop.Api => Geopilot.Api}/StacServices/StacItemsProvider.cs (98%) rename src/{GeoCop.Api => Geopilot.Api}/StacServices/StacLinker.cs (99%) rename src/{GeoCop.Api => Geopilot.Api}/StacServices/StacRootCatalogProvider.cs (92%) rename src/{GeoCop.Api => Geopilot.Api}/StacServices/StacWebApiExtensions.cs (98%) rename src/{GeoCop.Api => Geopilot.Api}/Validation/IValidationRunner.cs (97%) rename src/{GeoCop.Api => Geopilot.Api}/Validation/IValidationService.cs (96%) rename src/{GeoCop.Api => Geopilot.Api}/Validation/IValidator.cs (95%) rename src/{GeoCop.Api => Geopilot.Api}/Validation/Interlis/IliCheckSettingsResponse.cs (85%) rename src/{GeoCop.Api => Geopilot.Api}/Validation/Interlis/IliCheckStatusResponse.cs (95%) rename src/{GeoCop.Api => Geopilot.Api}/Validation/Interlis/IliCheckUploadResponse.cs (89%) rename src/{GeoCop.Api => Geopilot.Api}/Validation/Interlis/InterlisValidator.cs (98%) rename src/{GeoCop.Api => Geopilot.Api}/Validation/Status.cs (92%) rename src/{GeoCop.Api => Geopilot.Api}/Validation/ValidationFailedException.cs (97%) rename src/{GeoCop.Api => Geopilot.Api}/Validation/ValidationJob.cs (89%) rename src/{GeoCop.Api => Geopilot.Api}/Validation/ValidationJobStatus.cs (98%) rename src/{GeoCop.Api => Geopilot.Api}/Validation/ValidationRunner.cs (98%) rename src/{GeoCop.Api => Geopilot.Api}/Validation/ValidationService.cs (98%) rename src/{GeoCop.Api => Geopilot.Api}/Validation/ValidatorResult.cs (94%) rename src/{GeoCop.Api => Geopilot.Api}/appsettings.Development.json (100%) rename src/{GeoCop.Api => Geopilot.Api}/appsettings.json (100%) rename src/{GeoCop.Frontend => Geopilot.Frontend}/.eslintrc.cjs (100%) rename src/{GeoCop.Frontend => Geopilot.Frontend}/.gitignore (100%) rename src/{GeoCop.Frontend => Geopilot.Frontend}/.vscode/launch.json (100%) rename src/{GeoCop.Frontend/GeoCop.Frontend.esproj => Geopilot.Frontend/Geopilot.Frontend.esproj} (100%) rename src/{GeoCop.Frontend => Geopilot.Frontend}/aspnetcore-https.js (100%) rename src/{GeoCop.Frontend => Geopilot.Frontend}/index.html (100%) rename src/{GeoCop.Frontend => Geopilot.Frontend}/nuget.config (100%) rename src/{GeoCop.Frontend => Geopilot.Frontend}/package-lock.json (99%) rename src/{GeoCop.Frontend => Geopilot.Frontend}/package.json (98%) rename src/{GeoCop.Frontend => Geopilot.Frontend}/public/app.svg (100%) rename src/{GeoCop.Frontend => Geopilot.Frontend}/public/client-settings.json (100%) rename src/{GeoCop.Frontend => Geopilot.Frontend}/public/favicon.ico (100%) rename src/{GeoCop.Frontend => Geopilot.Frontend}/public/logo.svg (100%) rename src/{GeoCop.Frontend => Geopilot.Frontend}/src/About.jsx (100%) rename src/{GeoCop.Frontend => Geopilot.Frontend}/src/App.jsx (100%) rename src/{GeoCop.Frontend => Geopilot.Frontend}/src/BannerContent.jsx (100%) rename src/{GeoCop.Frontend => Geopilot.Frontend}/src/Footer.jsx (100%) rename src/{GeoCop.Frontend => Geopilot.Frontend}/src/Header.jsx (100%) rename src/{GeoCop.Frontend => Geopilot.Frontend}/src/ModalContent.jsx (100%) rename src/{GeoCop.Frontend => Geopilot.Frontend}/src/app.css (100%) rename src/{GeoCop.Frontend => Geopilot.Frontend}/src/assets/sms-sh.png (100%) rename src/{GeoCop.Frontend => Geopilot.Frontend}/src/auth/AdminTemplate.jsx (100%) rename src/{GeoCop.Frontend => Geopilot.Frontend}/src/auth/AuthContext.jsx (100%) rename src/{GeoCop.Frontend => Geopilot.Frontend}/src/auth/LoggedInTemplate.jsx (100%) rename src/{GeoCop.Frontend => Geopilot.Frontend}/src/auth/LoggedOutTemplate.jsx (100%) rename src/{GeoCop.Frontend => Geopilot.Frontend}/src/auth/index.js (100%) rename src/{GeoCop.Frontend => Geopilot.Frontend}/src/fonts/Dosis-Bold.ttf (100%) rename src/{GeoCop.Frontend => Geopilot.Frontend}/src/fonts/Dosis-ExtraBold.ttf (100%) rename src/{GeoCop.Frontend => Geopilot.Frontend}/src/fonts/Dosis-ExtraLight.ttf (100%) rename src/{GeoCop.Frontend => Geopilot.Frontend}/src/fonts/Dosis-Light.ttf (100%) rename src/{GeoCop.Frontend => Geopilot.Frontend}/src/fonts/Dosis-Medium.ttf (100%) rename src/{GeoCop.Frontend => Geopilot.Frontend}/src/fonts/Dosis-Regular.ttf (100%) rename src/{GeoCop.Frontend => Geopilot.Frontend}/src/fonts/Dosis-SemiBold.ttf (100%) rename src/{GeoCop.Frontend => Geopilot.Frontend}/src/index.css (100%) rename src/{GeoCop.Frontend => Geopilot.Frontend}/src/main.jsx (100%) rename src/{GeoCop.Frontend => Geopilot.Frontend}/src/pages/admin/Admin.jsx (100%) rename src/{GeoCop.Frontend => Geopilot.Frontend}/src/pages/home/Delivery.jsx (100%) rename src/{GeoCop.Frontend => Geopilot.Frontend}/src/pages/home/DeliveryContainer.jsx (100%) rename src/{GeoCop.Frontend => Geopilot.Frontend}/src/pages/home/FileDropzone.jsx (100%) rename src/{GeoCop.Frontend => Geopilot.Frontend}/src/pages/home/Home.jsx (100%) rename src/{GeoCop.Frontend => Geopilot.Frontend}/src/pages/home/InfoCarousel.jsx (100%) rename src/{GeoCop.Frontend => Geopilot.Frontend}/src/pages/home/Protokoll.jsx (100%) rename src/{GeoCop.Frontend => Geopilot.Frontend}/src/pages/home/Title.jsx (100%) rename src/{GeoCop.Frontend => Geopilot.Frontend}/src/pages/home/ValidatorResult.jsx (100%) rename src/{GeoCop.Frontend => Geopilot.Frontend}/vite.config.js (100%) rename tests/{GeoCop.Api.Test => Geopilot.Api.Test}/AssemblyInitialize.cs (94%) rename tests/{GeoCop.Api.Test => Geopilot.Api.Test}/ControllerExtensions.cs (93%) rename tests/{GeoCop.Api.Test => Geopilot.Api.Test}/Controllers/DeliveryControllerTest.cs (98%) rename tests/{GeoCop.Api.Test => Geopilot.Api.Test}/Controllers/MandateControllerTest.cs (97%) rename tests/{GeoCop.Api.Test => Geopilot.Api.Test}/Controllers/UserControllerTest.cs (97%) rename tests/{GeoCop.Api.Test => Geopilot.Api.Test}/Controllers/ValidationControllerTest.cs (98%) rename tests/{GeoCop.Api.Test => Geopilot.Api.Test}/Controllers/VersionControllerTest.cs (88%) rename tests/{GeoCop.Api.Test => Geopilot.Api.Test}/FileAccess/AssetHandlerTest.cs (97%) rename tests/{GeoCop.Api.Test => Geopilot.Api.Test}/FileAccess/PhysicalFileProviderTest.cs (92%) rename tests/{GeoCop.Api.Test/GeoCop.Api.Test.csproj => Geopilot.Api.Test/Geopilot.Api.Test.csproj} (89%) rename tests/{GeoCop.Api.Test => Geopilot.Api.Test}/GlobalUsings.cs (100%) rename tests/{GeoCop.Api.Test => Geopilot.Api.Test}/StacServices/StacConverterTest.cs (99%) rename tests/{GeoCop.Api.Test => Geopilot.Api.Test}/TestDatabaseFixture.cs (98%) rename tests/{GeoCop.Api.Test => Geopilot.Api.Test}/Validation/ValidationJobStatusTest.cs (97%) rename tests/{GeoCop.Api.Test => Geopilot.Api.Test}/Validation/ValidationServiceTest.cs (96%) diff --git a/.github/workflows/ci.yml b/.github/workflows/ci.yml index d0ff61f5..40ed2094 100644 --- a/.github/workflows/ci.yml +++ b/.github/workflows/ci.yml @@ -22,22 +22,22 @@ jobs: dotnet-version: '7.0' - name: Install dependencies - run: dotnet restore GeoCop.sln + run: dotnet restore Geopilot.sln - name: Build dotnet - run: dotnet build GeoCop.sln -c Release --no-restore /warnaserror + run: dotnet build Geopilot.sln -c Release --no-restore /warnaserror - name: Test - run: dotnet test GeoCop.sln -c Release --no-build --verbosity normal + run: dotnet test Geopilot.sln -c Release --no-build --verbosity normal - name: Run frontend ci - working-directory: ./src/GeoCop.Frontend + working-directory: ./src/Geopilot.Frontend run: npm ci - name: Build frontend - working-directory: ./src/GeoCop.Frontend + working-directory: ./src/Geopilot.Frontend run: npm run build --if-present - name: Lint frontend - working-directory: ./src/GeoCop.Frontend + working-directory: ./src/Geopilot.Frontend run: npm run lint diff --git a/Dockerfile b/Dockerfile index 762c2070..3f9a3f2f 100644 --- a/Dockerfile +++ b/Dockerfile @@ -18,13 +18,13 @@ RUN apt-get update && \ rm -rf /var/lib/apt/lists/* # Restore dependencies and tools -COPY src/GeoCop.Api/GeoCop.Api.csproj GeoCop.Api/ -COPY src/GeoCop.Frontend/nuget.config GeoCop.Frontend/ -COPY src/GeoCop.Frontend/package* GeoCop.Frontend/ -COPY src/GeoCop.Frontend/GeoCop.Frontend.esproj GeoCop.Frontend/ +COPY src/Geopilot.Api/Geopilot.Api.csproj Geopilot.Api/ +COPY src/Geopilot.Frontend/nuget.config Geopilot.Frontend/ +COPY src/Geopilot.Frontend/package* Geopilot.Frontend/ +COPY src/Geopilot.Frontend/Geopilot.Frontend.esproj Geopilot.Frontend/ -RUN dotnet restore "GeoCop.Api/GeoCop.Api.csproj" -RUN npm install -C GeoCop.Frontend +RUN dotnet restore "Geopilot.Api/Geopilot.Api.csproj" +RUN npm install -C Geopilot.Frontend # Set environment variables ENV PUBLISH_DIR=/app/publish @@ -32,7 +32,7 @@ ENV GENERATE_SOURCEMAP=false # Create optimized production build COPY src/ . -RUN dotnet publish "GeoCop.Api/GeoCop.Api.csproj" \ +RUN dotnet publish "Geopilot.Api/Geopilot.Api.csproj" \ -c Release \ -p:VersionPrefix=${VERSION} \ -p:SourceRevisionId=${REVISION} \ diff --git a/GeoCop.sln b/Geopilot.sln similarity index 85% rename from GeoCop.sln rename to Geopilot.sln index 97ae91d6..3de3f227 100644 --- a/GeoCop.sln +++ b/Geopilot.sln @@ -3,14 +3,14 @@ Microsoft Visual Studio Solution File, Format Version 12.00 # Visual Studio Version 17 VisualStudioVersion = 17.7.34202.233 MinimumVisualStudioVersion = 10.0.40219.1 -Project("{54A90642-561A-4BB1-A94E-469ADEE60C69}") = "GeoCop.Frontend", "src\GeoCop.Frontend\GeoCop.Frontend.esproj", "{3970CA03-F5E1-47CE-A054-D4B358F8CDB0}" +Project("{54A90642-561A-4BB1-A94E-469ADEE60C69}") = "Geopilot.Frontend", "src\Geopilot.Frontend\Geopilot.Frontend.esproj", "{3970CA03-F5E1-47CE-A054-D4B358F8CDB0}" EndProject -Project("{9A19103F-16F7-4668-BE54-9A1E7A4F7556}") = "GeoCop.Api", "src\GeoCop.Api\GeoCop.Api.csproj", "{29505995-981F-45FE-9410-684E086DC556}" +Project("{9A19103F-16F7-4668-BE54-9A1E7A4F7556}") = "Geopilot.Api", "src\Geopilot.Api\Geopilot.Api.csproj", "{29505995-981F-45FE-9410-684E086DC556}" ProjectSection(ProjectDependencies) = postProject {41D679A6-C4B1-4B18-B9AB-BEC6C647A180} = {41D679A6-C4B1-4B18-B9AB-BEC6C647A180} EndProjectSection EndProject -Project("{9A19103F-16F7-4668-BE54-9A1E7A4F7556}") = "GeoCop.Api.Test", "tests\GeoCop.Api.Test\GeoCop.Api.Test.csproj", "{CD485179-7CB7-4131-8B17-43634CA6857C}" +Project("{9A19103F-16F7-4668-BE54-9A1E7A4F7556}") = "Geopilot.Api.Test", "tests\Geopilot.Api.Test\Geopilot.Api.Test.csproj", "{CD485179-7CB7-4131-8B17-43634CA6857C}" EndProject Project("{E53339B2-1760-4266-BCC7-CA923CBCF16C}") = "docker-compose", "docker-compose.dcproj", "{41D679A6-C4B1-4B18-B9AB-BEC6C647A180}" EndProject diff --git a/README.md b/README.md index 2da673f0..3939f2eb 100644 --- a/README.md +++ b/README.md @@ -20,16 +20,16 @@ Für die Formattierung wird ESLint verwendet. Dazu im Visual Studio unter `Optio | Project | Action | |-----------------|-------------------------| | docker-compose | Start without debugging | -| GeoCop.Api | Start | -| GeoCop.Api.Test | None | -| GeoCop.Frontend | Start | +| Geopilot.Api | Start | +| Geopilot.Api.Test | None | +| Geopilot.Frontend | Start | ### URLs Entwicklungsumgebung 🔗 | URL | Project | Reverse Proxy | | --- | --- | --- | -| https://localhost:5173 | GeoCop.Frontend | `/api` und `/browser` zu https://localhost:7188 | -| https://localhost:7188 | GeoCop.Api | `/browser` zu http://localhost:8080 (der `/browser`-Prefix wird entfernt) | +| https://localhost:5173 | Geopilot.Frontend | `/api` und `/browser` zu https://localhost:7188 | +| https://localhost:7188 | Geopilot.Api | `/browser` zu http://localhost:8080 (der `/browser`-Prefix wird entfernt) | | http://localhost:8080 | stac-browser (in docker-compose) | - | | http://localhost:3001 | PgAdmin (in docker-compose) | - | | http://localhost:3080 | interlis-check-service (in docker-compose) | - | @@ -39,7 +39,7 @@ Der STAC Browser ist auch über https://localhost:5173/browser erreichbar und da ### Debugging 🪲 -Das Debugging sollte nun sowol für das GeoCop.Frontend in JavaScript als auch für GeoCop.Api in C# funtkionieren. +Das Debugging sollte nun sowohl für das Geopilot.Frontend in JavaScript als auch für Geopilot.Api in C# funtkionieren. PgAdmin kann für eine Analyse der Datenbank verwendet werden und ist unter [localhost:3001](http://localhost:3001/) verfügbar. diff --git a/docker-compose.yml b/docker-compose.yml index 720b1677..9c01365a 100644 --- a/docker-compose.yml +++ b/docker-compose.yml @@ -68,7 +68,7 @@ services: Auth__ClientId: ac09549e-6cf8-40fe-91a9-25515ec71954 Validation__InterlisCheckServiceUrl: http://interlis-check-service/ volumes: - - ./src/GeoCop.Api/Uploads:/uploads - - ./src/GeoCop.Api/Persistent:/assets + - ./src/Geopilot.Api/Uploads:/uploads + - ./src/Geopilot.Api/Persistent:/assets - ./README.md:/public/info-hilfe.md - ./LICENSE:/public/nutzungsbestimmungen.md diff --git a/docker-entrypoint.sh b/docker-entrypoint.sh index cc427253..f36c1b2a 100755 --- a/docker-entrypoint.sh +++ b/docker-entrypoint.sh @@ -22,4 +22,4 @@ timezone: $TZ " echo -e "geopilot app is up and running!\n" && \ - sudo -H --preserve-env --user abc dotnet GeoCop.Api.dll + sudo -H --preserve-env --user abc dotnet Geopilot.Api.dll diff --git a/src/GeoCop.Api/.gitignore b/src/Geopilot.Api/.gitignore similarity index 100% rename from src/GeoCop.Api/.gitignore rename to src/Geopilot.Api/.gitignore diff --git a/src/GeoCop.Api/Authorization/DevelopmentAuthorizationMiddleware.cs b/src/Geopilot.Api/Authorization/DevelopmentAuthorizationMiddleware.cs similarity index 97% rename from src/GeoCop.Api/Authorization/DevelopmentAuthorizationMiddleware.cs rename to src/Geopilot.Api/Authorization/DevelopmentAuthorizationMiddleware.cs index 9781eb67..54d5154c 100644 --- a/src/GeoCop.Api/Authorization/DevelopmentAuthorizationMiddleware.cs +++ b/src/Geopilot.Api/Authorization/DevelopmentAuthorizationMiddleware.cs @@ -1,7 +1,7 @@ using Microsoft.EntityFrameworkCore; using System.Security.Claims; -namespace GeoCop.Api.Authorization; +namespace Geopilot.Api.Authorization; /// /// Middleware that automatically authorizes as the first user in development. diff --git a/src/GeoCop.Api/Authorization/GeocopPolicies.cs b/src/Geopilot.Api/Authorization/GeopilotPolicies.cs similarity index 81% rename from src/GeoCop.Api/Authorization/GeocopPolicies.cs rename to src/Geopilot.Api/Authorization/GeopilotPolicies.cs index 563b2d28..b6debdb2 100644 --- a/src/GeoCop.Api/Authorization/GeocopPolicies.cs +++ b/src/Geopilot.Api/Authorization/GeopilotPolicies.cs @@ -1,9 +1,9 @@ -namespace GeoCop.Api.Authorization; +namespace Geopilot.Api.Authorization; /// /// Defines constants for the authorization policies. /// -public static class GeocopPolicies +public static class GeopilotPolicies { /// /// Require admin permissions. diff --git a/src/GeoCop.Api/Authorization/GeocopUserHandler.cs b/src/Geopilot.Api/Authorization/GeopilotUserHandler.cs similarity index 71% rename from src/GeoCop.Api/Authorization/GeocopUserHandler.cs rename to src/Geopilot.Api/Authorization/GeopilotUserHandler.cs index d2b67fa2..5c83ebfa 100644 --- a/src/GeoCop.Api/Authorization/GeocopUserHandler.cs +++ b/src/Geopilot.Api/Authorization/GeopilotUserHandler.cs @@ -1,28 +1,28 @@ using Microsoft.AspNetCore.Authorization; -namespace GeoCop.Api.Authorization; +namespace Geopilot.Api.Authorization; /// -/// Authorization handler for . +/// Authorization handler for . /// -public class GeocopUserHandler : AuthorizationHandler +public class GeopilotUserHandler : AuthorizationHandler { private readonly Context dbContext; - private readonly ILogger logger; + private readonly ILogger logger; /// - /// Initializes a new instance of the class. + /// Initializes a new instance of the class. /// /// The database context. /// The logger used for authorization related logging. - public GeocopUserHandler(ILogger logger, Context dbContext) + public GeopilotUserHandler(ILogger logger, Context dbContext) { this.dbContext = dbContext; this.logger = logger; } /// - protected override async Task HandleRequirementAsync(AuthorizationHandlerContext context, GeocopUserRequirement requirement) + protected override async Task HandleRequirementAsync(AuthorizationHandlerContext context, GeopilotUserRequirement requirement) { if (context.User.Identity?.IsAuthenticated != true) { diff --git a/src/GeoCop.Api/Authorization/GeocopUserRequirement.cs b/src/Geopilot.Api/Authorization/GeopilotUserRequirement.cs similarity index 56% rename from src/GeoCop.Api/Authorization/GeocopUserRequirement.cs rename to src/Geopilot.Api/Authorization/GeopilotUserRequirement.cs index c897a9cb..75bf6d8e 100644 --- a/src/GeoCop.Api/Authorization/GeocopUserRequirement.cs +++ b/src/Geopilot.Api/Authorization/GeopilotUserRequirement.cs @@ -1,11 +1,11 @@ using Microsoft.AspNetCore.Authorization; -namespace GeoCop.Api.Authorization; +namespace Geopilot.Api.Authorization; /// -/// Authorization requirement for geocop users. +/// Authorization requirement for geopilot users. /// -public class GeocopUserRequirement : IAuthorizationRequirement +public class GeopilotUserRequirement : IAuthorizationRequirement { /// /// Only allow administrators. diff --git a/src/GeoCop.Api/Context.cs b/src/Geopilot.Api/Context.cs similarity index 97% rename from src/GeoCop.Api/Context.cs rename to src/Geopilot.Api/Context.cs index 7733a040..32436799 100644 --- a/src/GeoCop.Api/Context.cs +++ b/src/Geopilot.Api/Context.cs @@ -1,7 +1,7 @@ -using GeoCop.Api.Models; +using Geopilot.Api.Models; using Microsoft.EntityFrameworkCore; -namespace GeoCop.Api; +namespace Geopilot.Api; /// /// Database context to manage the delivery database. diff --git a/src/GeoCop.Api/ContextExtensions.cs b/src/Geopilot.Api/ContextExtensions.cs similarity index 99% rename from src/GeoCop.Api/ContextExtensions.cs rename to src/Geopilot.Api/ContextExtensions.cs index 59d1bb2e..f58123f3 100644 --- a/src/GeoCop.Api/ContextExtensions.cs +++ b/src/Geopilot.Api/ContextExtensions.cs @@ -1,13 +1,13 @@ using Bogus; using Bogus.DataSets; -using GeoCop.Api.Models; +using Geopilot.Api.Models; using Microsoft.EntityFrameworkCore; using NetTopologySuite.Geometries; using System.Globalization; using System.Security.Claims; using System.Security.Cryptography; -namespace GeoCop.Api; +namespace Geopilot.Api; internal static class ContextExtensions { diff --git a/src/GeoCop.Api/Contracts/BrowserAuthOptions.cs b/src/Geopilot.Api/Contracts/BrowserAuthOptions.cs similarity index 95% rename from src/GeoCop.Api/Contracts/BrowserAuthOptions.cs rename to src/Geopilot.Api/Contracts/BrowserAuthOptions.cs index da476818..5b913808 100644 --- a/src/GeoCop.Api/Contracts/BrowserAuthOptions.cs +++ b/src/Geopilot.Api/Contracts/BrowserAuthOptions.cs @@ -1,4 +1,4 @@ -namespace GeoCop.Api.Contracts; +namespace Geopilot.Api.Contracts; /// /// Represents the configured auth options of type BrowserAuthOptions from @azure/msal-browser. diff --git a/src/GeoCop.Api/Contracts/DeliveryRequest.cs b/src/Geopilot.Api/Contracts/DeliveryRequest.cs similarity index 96% rename from src/GeoCop.Api/Contracts/DeliveryRequest.cs rename to src/Geopilot.Api/Contracts/DeliveryRequest.cs index 48bd07b4..2d5b8e68 100644 --- a/src/GeoCop.Api/Contracts/DeliveryRequest.cs +++ b/src/Geopilot.Api/Contracts/DeliveryRequest.cs @@ -1,6 +1,6 @@ using System.ComponentModel.DataAnnotations; -namespace GeoCop.Api.Contracts; +namespace Geopilot.Api.Contracts; /// /// Request for transforming a validation to a delivery. diff --git a/src/GeoCop.Api/Contracts/ValidationSettingsResponse.cs b/src/Geopilot.Api/Contracts/ValidationSettingsResponse.cs similarity index 91% rename from src/GeoCop.Api/Contracts/ValidationSettingsResponse.cs rename to src/Geopilot.Api/Contracts/ValidationSettingsResponse.cs index a9de723b..9120d4d6 100644 --- a/src/GeoCop.Api/Contracts/ValidationSettingsResponse.cs +++ b/src/Geopilot.Api/Contracts/ValidationSettingsResponse.cs @@ -1,4 +1,4 @@ -namespace GeoCop.Api.Contracts; +namespace Geopilot.Api.Contracts; /// /// The validation settings response schema. diff --git a/src/GeoCop.Api/Controllers/DeliveryController.cs b/src/Geopilot.Api/Controllers/DeliveryController.cs similarity index 96% rename from src/GeoCop.Api/Controllers/DeliveryController.cs rename to src/Geopilot.Api/Controllers/DeliveryController.cs index cbb4eedc..04d5c7e1 100644 --- a/src/GeoCop.Api/Controllers/DeliveryController.cs +++ b/src/Geopilot.Api/Controllers/DeliveryController.cs @@ -1,15 +1,15 @@ using System.Globalization; -using GeoCop.Api.Authorization; -using GeoCop.Api.Contracts; -using GeoCop.Api.FileAccess; -using GeoCop.Api.Models; -using GeoCop.Api.Validation; +using Geopilot.Api.Authorization; +using Geopilot.Api.Contracts; +using Geopilot.Api.FileAccess; +using Geopilot.Api.Models; +using Geopilot.Api.Validation; using Microsoft.AspNetCore.Authorization; using Microsoft.AspNetCore.Mvc; using Microsoft.EntityFrameworkCore; using Swashbuckle.AspNetCore.Annotations; -namespace GeoCop.Api.Controllers; +namespace Geopilot.Api.Controllers; /// /// Controller for declaring deliveries. @@ -40,7 +40,7 @@ public DeliveryController(ILogger logger, Context context, I /// containing all information for the declaration process. /// Created . [HttpPost] - [Authorize(Policy = GeocopPolicies.User)] + [Authorize(Policy = GeopilotPolicies.User)] [SwaggerResponse(StatusCodes.Status201Created, "The delivery was created successfully.")] [SwaggerResponse(StatusCodes.Status400BadRequest, "The server cannot process the request due to invalid or malformed request.", typeof(ValidationProblemDetails), new[] { "application/json" })] [SwaggerResponse(StatusCodes.Status404NotFound, "The validation job or mandate could not be found.")] @@ -130,7 +130,7 @@ public async Task Create(DeliveryRequest declaration) /// Optional. Filter deliveries for given mandate. /// A list of . [HttpGet] - [Authorize(Policy = GeocopPolicies.User)] + [Authorize(Policy = GeopilotPolicies.User)] [SwaggerResponse(StatusCodes.Status200OK, "A list matching filter criteria.", typeof(List), new[] { "application/json" })] [SwaggerResponse(StatusCodes.Status404NotFound, "Failed to find mandate.")] public async Task Get([FromQuery] int? mandateId = null) @@ -167,7 +167,7 @@ public async Task Get([FromQuery] int? mandateId = null) /// /// An updated list of . [HttpDelete("{deliveryId}")] - [Authorize(Policy = GeocopPolicies.Admin)] + [Authorize(Policy = GeopilotPolicies.Admin)] [SwaggerResponse(StatusCodes.Status200OK, "The delivery was successfully deleted.")] [SwaggerResponse(StatusCodes.Status400BadRequest, "The server cannot process the request due to invalid or malformed request.", typeof(ValidationProblemDetails), new[] { "application/json" })] [SwaggerResponse(StatusCodes.Status404NotFound, "The delivery could be found.")] @@ -205,7 +205,7 @@ public IActionResult Delete([FromRoute] int deliveryId) /// /// The asset file. [HttpGet("assets/{assetId}")] - [Authorize(Policy = GeocopPolicies.Admin)] + [Authorize(Policy = GeopilotPolicies.Admin)] [SwaggerResponse(StatusCodes.Status200OK, "A file has been downloaded.", typeof(File), new[] { "application/json" })] [SwaggerResponse(StatusCodes.Status400BadRequest, "The server cannot process the request due to invalid or malformed request.", typeof(ValidationProblemDetails), new[] { "application/json" })] [SwaggerResponse(StatusCodes.Status404NotFound, "The asset could be found.")] diff --git a/src/GeoCop.Api/Controllers/MandateController.cs b/src/Geopilot.Api/Controllers/MandateController.cs similarity index 94% rename from src/GeoCop.Api/Controllers/MandateController.cs rename to src/Geopilot.Api/Controllers/MandateController.cs index 5a2ff5df..64b5d45b 100644 --- a/src/GeoCop.Api/Controllers/MandateController.cs +++ b/src/Geopilot.Api/Controllers/MandateController.cs @@ -1,12 +1,12 @@ -using GeoCop.Api.Authorization; -using GeoCop.Api.Models; -using GeoCop.Api.Validation; +using Geopilot.Api.Authorization; +using Geopilot.Api.Models; +using Geopilot.Api.Validation; using Microsoft.AspNetCore.Authorization; using Microsoft.AspNetCore.Mvc; using Microsoft.EntityFrameworkCore; using Swashbuckle.AspNetCore.Annotations; -namespace GeoCop.Api.Controllers; +namespace Geopilot.Api.Controllers; /// /// Controller for listing mandates. @@ -38,7 +38,7 @@ public MandateController(ILogger logger, Context context, IVa /// Optional. Get matching mandates by validation job id. /// List of mandates matching optional filter criteria. [HttpGet] - [Authorize(Policy = GeocopPolicies.User)] + [Authorize(Policy = GeopilotPolicies.User)] [SwaggerResponse(StatusCodes.Status200OK, "Returns list of mandates associated to the current user matching the optional filter criteria.", typeof(IEnumerable), new[] { "application/json" })] public async Task Get( [FromQuery, SwaggerParameter("Filter mandates matching validation job file extension.")] diff --git a/src/GeoCop.Api/Controllers/UserController.cs b/src/Geopilot.Api/Controllers/UserController.cs similarity index 92% rename from src/GeoCop.Api/Controllers/UserController.cs rename to src/Geopilot.Api/Controllers/UserController.cs index 59368426..21e40371 100644 --- a/src/GeoCop.Api/Controllers/UserController.cs +++ b/src/Geopilot.Api/Controllers/UserController.cs @@ -1,12 +1,12 @@ -using GeoCop.Api.Authorization; -using GeoCop.Api.Contracts; -using GeoCop.Api.Models; +using Geopilot.Api.Authorization; +using Geopilot.Api.Contracts; +using Geopilot.Api.Models; using Microsoft.AspNetCore.Authorization; using Microsoft.AspNetCore.Mvc; using Microsoft.Extensions.Options; using Swashbuckle.AspNetCore.Annotations; -namespace GeoCop.Api.Controllers; +namespace Geopilot.Api.Controllers; /// /// Controller for user information. @@ -37,7 +37,7 @@ public UserController(ILogger logger, Context context, IOptions< /// /// The that is currently logged in. [HttpGet] - [Authorize(Policy = GeocopPolicies.User)] + [Authorize(Policy = GeopilotPolicies.User)] [SwaggerResponse(StatusCodes.Status200OK, "Returns the currently logged in user.", typeof(User), new[] { "application/json" })] public async Task GetAsync() { diff --git a/src/GeoCop.Api/Controllers/ValidationController.cs b/src/Geopilot.Api/Controllers/ValidationController.cs similarity index 98% rename from src/GeoCop.Api/Controllers/ValidationController.cs rename to src/Geopilot.Api/Controllers/ValidationController.cs index e3d8afca..298312bd 100644 --- a/src/GeoCop.Api/Controllers/ValidationController.cs +++ b/src/Geopilot.Api/Controllers/ValidationController.cs @@ -1,7 +1,7 @@ using Asp.Versioning; -using GeoCop.Api.Contracts; -using GeoCop.Api.FileAccess; -using GeoCop.Api.Validation; +using Geopilot.Api.Contracts; +using Geopilot.Api.FileAccess; +using Geopilot.Api.Validation; using Microsoft.AspNetCore.Authorization; using Microsoft.AspNetCore.Mvc; using Microsoft.AspNetCore.StaticFiles; @@ -9,7 +9,7 @@ using System.Diagnostics.CodeAnalysis; using System.Globalization; -namespace GeoCop.Api.Controllers; +namespace Geopilot.Api.Controllers; /// /// Controller for file validation. diff --git a/src/GeoCop.Api/Controllers/VersionController.cs b/src/Geopilot.Api/Controllers/VersionController.cs similarity index 96% rename from src/GeoCop.Api/Controllers/VersionController.cs rename to src/Geopilot.Api/Controllers/VersionController.cs index 48518044..43855d44 100644 --- a/src/GeoCop.Api/Controllers/VersionController.cs +++ b/src/Geopilot.Api/Controllers/VersionController.cs @@ -3,7 +3,7 @@ using Swashbuckle.AspNetCore.Annotations; using System.Reflection; -namespace GeoCop.Api.Controllers; +namespace Geopilot.Api.Controllers; /// /// Constroller for Version information. diff --git a/src/GeoCop.Api/Conventions/GeocopJsonConvention.cs b/src/Geopilot.Api/Conventions/GeopilotJsonConvention.cs similarity index 90% rename from src/GeoCop.Api/Conventions/GeocopJsonConvention.cs rename to src/Geopilot.Api/Conventions/GeopilotJsonConvention.cs index d7f6e91b..a3fe1b20 100644 --- a/src/GeoCop.Api/Conventions/GeocopJsonConvention.cs +++ b/src/Geopilot.Api/Conventions/GeopilotJsonConvention.cs @@ -5,14 +5,14 @@ using Microsoft.AspNetCore.Mvc.ModelBinding; using Microsoft.Extensions.Options; -namespace GeoCop.Api.Conventions; +namespace Geopilot.Api.Conventions; /// -/// Customizes the convention for GeoCop actions to use System.Text.Json. +/// Customizes the convention for Geopilot actions to use System.Text.Json. /// -public class GeocopJsonConvention : IActionFilter, IActionModelConvention +public class GeopilotJsonConvention : IActionFilter, IActionModelConvention { - private const string BaseNamespace = nameof(GeoCop); + private const string BaseNamespace = nameof(Geopilot); private FormatterCollection? outputFormatters; /// diff --git a/src/GeoCop.Api/Conventions/StacRoutingConvention.cs b/src/Geopilot.Api/Conventions/StacRoutingConvention.cs similarity index 98% rename from src/GeoCop.Api/Conventions/StacRoutingConvention.cs rename to src/Geopilot.Api/Conventions/StacRoutingConvention.cs index ecb17897..4141cb7b 100644 --- a/src/GeoCop.Api/Conventions/StacRoutingConvention.cs +++ b/src/Geopilot.Api/Conventions/StacRoutingConvention.cs @@ -1,7 +1,7 @@ using Microsoft.AspNetCore.Mvc.ApplicationModels; using Microsoft.AspNetCore.Mvc.Authorization; -namespace GeoCop.Api.Conventions; +namespace Geopilot.Api.Conventions; /// /// Customizes the routing conventions for STAC actions to use /api/stac as the base path. diff --git a/src/GeoCop.Api/Conventions/SystemTextJsonBodyModelBinder.cs b/src/Geopilot.Api/Conventions/SystemTextJsonBodyModelBinder.cs similarity index 96% rename from src/GeoCop.Api/Conventions/SystemTextJsonBodyModelBinder.cs rename to src/Geopilot.Api/Conventions/SystemTextJsonBodyModelBinder.cs index 9ad9fce6..4c3efcff 100644 --- a/src/GeoCop.Api/Conventions/SystemTextJsonBodyModelBinder.cs +++ b/src/Geopilot.Api/Conventions/SystemTextJsonBodyModelBinder.cs @@ -3,7 +3,7 @@ using Microsoft.Extensions.Options; using System.Text.Json; -namespace GeoCop.Api.Conventions; +namespace Geopilot.Api.Conventions; /// /// Parses the model from the request body using System.Text.Json. diff --git a/src/GeoCop.Api/DbHealthCheck.cs b/src/Geopilot.Api/DbHealthCheck.cs similarity index 97% rename from src/GeoCop.Api/DbHealthCheck.cs rename to src/Geopilot.Api/DbHealthCheck.cs index 9aaa7092..c9eabc2a 100644 --- a/src/GeoCop.Api/DbHealthCheck.cs +++ b/src/Geopilot.Api/DbHealthCheck.cs @@ -1,7 +1,7 @@ using Microsoft.EntityFrameworkCore; using Microsoft.Extensions.Diagnostics.HealthChecks; -namespace GeoCop.Api; +namespace Geopilot.Api; /// /// Represents a health check for the database. diff --git a/src/GeoCop.Api/FileAccess/AssetHandler.cs b/src/Geopilot.Api/FileAccess/AssetHandler.cs similarity index 98% rename from src/GeoCop.Api/FileAccess/AssetHandler.cs rename to src/Geopilot.Api/FileAccess/AssetHandler.cs index ffea31d3..24020470 100644 --- a/src/GeoCop.Api/FileAccess/AssetHandler.cs +++ b/src/Geopilot.Api/FileAccess/AssetHandler.cs @@ -1,9 +1,9 @@ -using GeoCop.Api.Models; -using GeoCop.Api.Validation; +using Geopilot.Api.Models; +using Geopilot.Api.Validation; using Microsoft.AspNetCore.StaticFiles; using System.Security.Cryptography; -namespace GeoCop.Api.FileAccess; +namespace Geopilot.Api.FileAccess; /// /// Provides functionality to move, delete and download asset files. diff --git a/src/GeoCop.Api/FileAccess/DirectoryProvider.cs b/src/Geopilot.Api/FileAccess/DirectoryProvider.cs similarity index 96% rename from src/GeoCop.Api/FileAccess/DirectoryProvider.cs rename to src/Geopilot.Api/FileAccess/DirectoryProvider.cs index 22977a58..0741b998 100644 --- a/src/GeoCop.Api/FileAccess/DirectoryProvider.cs +++ b/src/Geopilot.Api/FileAccess/DirectoryProvider.cs @@ -1,4 +1,4 @@ -namespace GeoCop.Api.FileAccess; +namespace Geopilot.Api.FileAccess; /// /// Provides access to the upload and asset directories. diff --git a/src/GeoCop.Api/FileAccess/FileHandle.cs b/src/Geopilot.Api/FileAccess/FileHandle.cs similarity index 94% rename from src/GeoCop.Api/FileAccess/FileHandle.cs rename to src/Geopilot.Api/FileAccess/FileHandle.cs index 7758ca60..a31666e3 100644 --- a/src/GeoCop.Api/FileAccess/FileHandle.cs +++ b/src/Geopilot.Api/FileAccess/FileHandle.cs @@ -1,4 +1,4 @@ -namespace GeoCop.Api.FileAccess; +namespace Geopilot.Api.FileAccess; /// /// Represents a file of an and privides a stream to it. diff --git a/src/GeoCop.Api/FileAccess/IAssetHandler.cs b/src/Geopilot.Api/FileAccess/IAssetHandler.cs similarity index 94% rename from src/GeoCop.Api/FileAccess/IAssetHandler.cs rename to src/Geopilot.Api/FileAccess/IAssetHandler.cs index b5e760f7..c00d6c21 100644 --- a/src/GeoCop.Api/FileAccess/IAssetHandler.cs +++ b/src/Geopilot.Api/FileAccess/IAssetHandler.cs @@ -1,6 +1,6 @@ -using GeoCop.Api.Models; +using Geopilot.Api.Models; -namespace GeoCop.Api.FileAccess +namespace Geopilot.Api.FileAccess { /// /// Provides functionality to move, delete and download asset files. diff --git a/src/GeoCop.Api/FileAccess/IDirectoryProvider.cs b/src/Geopilot.Api/FileAccess/IDirectoryProvider.cs similarity index 93% rename from src/GeoCop.Api/FileAccess/IDirectoryProvider.cs rename to src/Geopilot.Api/FileAccess/IDirectoryProvider.cs index 5a901318..09bed4f2 100644 --- a/src/GeoCop.Api/FileAccess/IDirectoryProvider.cs +++ b/src/Geopilot.Api/FileAccess/IDirectoryProvider.cs @@ -1,4 +1,4 @@ -namespace GeoCop.Api.FileAccess; +namespace Geopilot.Api.FileAccess; /// /// Provides access to the upload and asset directories. diff --git a/src/GeoCop.Api/FileAccess/IFileProvider.cs b/src/Geopilot.Api/FileAccess/IFileProvider.cs similarity index 98% rename from src/GeoCop.Api/FileAccess/IFileProvider.cs rename to src/Geopilot.Api/FileAccess/IFileProvider.cs index 0c9684aa..4ca20800 100644 --- a/src/GeoCop.Api/FileAccess/IFileProvider.cs +++ b/src/Geopilot.Api/FileAccess/IFileProvider.cs @@ -1,4 +1,4 @@ -namespace GeoCop.Api.FileAccess; +namespace Geopilot.Api.FileAccess; /// /// Provides read/write access to files in a predefined folder. diff --git a/src/GeoCop.Api/FileAccess/PhysicalFileProvider.cs b/src/Geopilot.Api/FileAccess/PhysicalFileProvider.cs similarity index 98% rename from src/GeoCop.Api/FileAccess/PhysicalFileProvider.cs rename to src/Geopilot.Api/FileAccess/PhysicalFileProvider.cs index 8ae02c74..4a8cde20 100644 --- a/src/GeoCop.Api/FileAccess/PhysicalFileProvider.cs +++ b/src/Geopilot.Api/FileAccess/PhysicalFileProvider.cs @@ -1,4 +1,4 @@ -namespace GeoCop.Api.FileAccess; +namespace Geopilot.Api.FileAccess; /// /// Provides read/write access to files in a predefined folder. diff --git a/src/GeoCop.Api/GeoCop.Api.csproj b/src/Geopilot.Api/Geopilot.Api.csproj similarity index 94% rename from src/GeoCop.Api/GeoCop.Api.csproj rename to src/Geopilot.Api/Geopilot.Api.csproj index 52b63fca..1b170f2a 100644 --- a/src/GeoCop.Api/GeoCop.Api.csproj +++ b/src/Geopilot.Api/Geopilot.Api.csproj @@ -1,4 +1,4 @@ - + net7.0 @@ -30,10 +30,9 @@ - + false - diff --git a/src/GeoCop.Api/IContentTypeProviderExtensions.cs b/src/Geopilot.Api/IContentTypeProviderExtensions.cs similarity index 97% rename from src/GeoCop.Api/IContentTypeProviderExtensions.cs rename to src/Geopilot.Api/IContentTypeProviderExtensions.cs index 95f4fd33..71b60d5f 100644 --- a/src/GeoCop.Api/IContentTypeProviderExtensions.cs +++ b/src/Geopilot.Api/IContentTypeProviderExtensions.cs @@ -1,8 +1,8 @@ -using GeoCop.Api.Models; +using Geopilot.Api.Models; using Microsoft.AspNetCore.StaticFiles; using System.Net.Mime; -namespace GeoCop.Api; +namespace Geopilot.Api; /// /// Provides access to file content types. diff --git a/src/GeoCop.Api/Migrations/20231107093940_InitialCreate.Designer.cs b/src/Geopilot.Api/Migrations/20231107093940_InitialCreate.Designer.cs similarity index 85% rename from src/GeoCop.Api/Migrations/20231107093940_InitialCreate.Designer.cs rename to src/Geopilot.Api/Migrations/20231107093940_InitialCreate.Designer.cs index f7ddf158..6decfd16 100644 --- a/src/GeoCop.Api/Migrations/20231107093940_InitialCreate.Designer.cs +++ b/src/Geopilot.Api/Migrations/20231107093940_InitialCreate.Designer.cs @@ -1,6 +1,6 @@ // using System; -using GeoCop.Api; +using Geopilot.Api; using Microsoft.EntityFrameworkCore; using Microsoft.EntityFrameworkCore.Infrastructure; using Microsoft.EntityFrameworkCore.Migrations; @@ -10,7 +10,7 @@ #nullable disable -namespace GeoCop.Api.Migrations +namespace Geopilot.Api.Migrations { [DbContext(typeof(Context))] [Migration("20231107093940_InitialCreate")] @@ -42,7 +42,7 @@ protected override void BuildTargetModel(ModelBuilder modelBuilder) b.ToTable("DeliveryMandateOrganisation"); }); - modelBuilder.Entity("GeoCop.Api.Models.Asset", b => + modelBuilder.Entity("Geopilot.Api.Models.Asset", b => { b.Property("Id") .ValueGeneratedOnAdd() @@ -76,7 +76,7 @@ protected override void BuildTargetModel(ModelBuilder modelBuilder) b.ToTable("Assets"); }); - modelBuilder.Entity("GeoCop.Api.Models.Delivery", b => + modelBuilder.Entity("Geopilot.Api.Models.Delivery", b => { b.Property("Id") .ValueGeneratedOnAdd() @@ -102,7 +102,7 @@ protected override void BuildTargetModel(ModelBuilder modelBuilder) b.ToTable("Deliveries"); }); - modelBuilder.Entity("GeoCop.Api.Models.DeliveryMandate", b => + modelBuilder.Entity("Geopilot.Api.Models.DeliveryMandate", b => { b.Property("Id") .ValueGeneratedOnAdd() @@ -127,7 +127,7 @@ protected override void BuildTargetModel(ModelBuilder modelBuilder) b.ToTable("DeliveryMandates"); }); - modelBuilder.Entity("GeoCop.Api.Models.Organisation", b => + modelBuilder.Entity("Geopilot.Api.Models.Organisation", b => { b.Property("Id") .ValueGeneratedOnAdd() @@ -144,7 +144,7 @@ protected override void BuildTargetModel(ModelBuilder modelBuilder) b.ToTable("Organisations"); }); - modelBuilder.Entity("GeoCop.Api.Models.User", b => + modelBuilder.Entity("Geopilot.Api.Models.User", b => { b.Property("Id") .ValueGeneratedOnAdd() @@ -178,22 +178,22 @@ protected override void BuildTargetModel(ModelBuilder modelBuilder) modelBuilder.Entity("DeliveryMandateOrganisation", b => { - b.HasOne("GeoCop.Api.Models.DeliveryMandate", null) + b.HasOne("Geopilot.Api.Models.DeliveryMandate", null) .WithMany() .HasForeignKey("MandatesId") .OnDelete(DeleteBehavior.Cascade) .IsRequired(); - b.HasOne("GeoCop.Api.Models.Organisation", null) + b.HasOne("Geopilot.Api.Models.Organisation", null) .WithMany() .HasForeignKey("OrganisationsId") .OnDelete(DeleteBehavior.Cascade) .IsRequired(); }); - modelBuilder.Entity("GeoCop.Api.Models.Asset", b => + modelBuilder.Entity("Geopilot.Api.Models.Asset", b => { - b.HasOne("GeoCop.Api.Models.Delivery", "Delivery") + b.HasOne("Geopilot.Api.Models.Delivery", "Delivery") .WithMany("Assets") .HasForeignKey("DeliveryId") .OnDelete(DeleteBehavior.Cascade) @@ -202,15 +202,15 @@ protected override void BuildTargetModel(ModelBuilder modelBuilder) b.Navigation("Delivery"); }); - modelBuilder.Entity("GeoCop.Api.Models.Delivery", b => + modelBuilder.Entity("Geopilot.Api.Models.Delivery", b => { - b.HasOne("GeoCop.Api.Models.User", "DeclaringUser") + b.HasOne("Geopilot.Api.Models.User", "DeclaringUser") .WithMany("Deliveries") .HasForeignKey("DeclaringUserId") .OnDelete(DeleteBehavior.Cascade) .IsRequired(); - b.HasOne("GeoCop.Api.Models.DeliveryMandate", "DeliveryMandate") + b.HasOne("Geopilot.Api.Models.DeliveryMandate", "DeliveryMandate") .WithMany("Deliveries") .HasForeignKey("DeliveryMandateId") .OnDelete(DeleteBehavior.Cascade) @@ -223,30 +223,30 @@ protected override void BuildTargetModel(ModelBuilder modelBuilder) modelBuilder.Entity("OrganisationUser", b => { - b.HasOne("GeoCop.Api.Models.Organisation", null) + b.HasOne("Geopilot.Api.Models.Organisation", null) .WithMany() .HasForeignKey("OrganisationsId") .OnDelete(DeleteBehavior.Cascade) .IsRequired(); - b.HasOne("GeoCop.Api.Models.User", null) + b.HasOne("Geopilot.Api.Models.User", null) .WithMany() .HasForeignKey("UsersId") .OnDelete(DeleteBehavior.Cascade) .IsRequired(); }); - modelBuilder.Entity("GeoCop.Api.Models.Delivery", b => + modelBuilder.Entity("Geopilot.Api.Models.Delivery", b => { b.Navigation("Assets"); }); - modelBuilder.Entity("GeoCop.Api.Models.DeliveryMandate", b => + modelBuilder.Entity("Geopilot.Api.Models.DeliveryMandate", b => { b.Navigation("Deliveries"); }); - modelBuilder.Entity("GeoCop.Api.Models.User", b => + modelBuilder.Entity("Geopilot.Api.Models.User", b => { b.Navigation("Deliveries"); }); diff --git a/src/GeoCop.Api/Migrations/20231107093940_InitialCreate.cs b/src/Geopilot.Api/Migrations/20231107093940_InitialCreate.cs similarity index 99% rename from src/GeoCop.Api/Migrations/20231107093940_InitialCreate.cs rename to src/Geopilot.Api/Migrations/20231107093940_InitialCreate.cs index c4819932..fc2d6dc9 100644 --- a/src/GeoCop.Api/Migrations/20231107093940_InitialCreate.cs +++ b/src/Geopilot.Api/Migrations/20231107093940_InitialCreate.cs @@ -5,7 +5,7 @@ #nullable disable -namespace GeoCop.Api.Migrations +namespace Geopilot.Api.Migrations { /// public partial class InitialCreate : Migration diff --git a/src/GeoCop.Api/Migrations/20231127075341_AddDeletedAttribute.Designer.cs b/src/Geopilot.Api/Migrations/20231127075341_AddDeletedAttribute.Designer.cs similarity index 86% rename from src/GeoCop.Api/Migrations/20231127075341_AddDeletedAttribute.Designer.cs rename to src/Geopilot.Api/Migrations/20231127075341_AddDeletedAttribute.Designer.cs index 3b12d972..a08ac2fd 100644 --- a/src/GeoCop.Api/Migrations/20231127075341_AddDeletedAttribute.Designer.cs +++ b/src/Geopilot.Api/Migrations/20231127075341_AddDeletedAttribute.Designer.cs @@ -1,6 +1,6 @@ // using System; -using GeoCop.Api; +using Geopilot.Api; using Microsoft.EntityFrameworkCore; using Microsoft.EntityFrameworkCore.Infrastructure; using Microsoft.EntityFrameworkCore.Migrations; @@ -10,7 +10,7 @@ #nullable disable -namespace GeoCop.Api.Migrations +namespace Geopilot.Api.Migrations { [DbContext(typeof(Context))] [Migration("20231127075341_AddDeletedAttribute")] @@ -42,7 +42,7 @@ protected override void BuildTargetModel(ModelBuilder modelBuilder) b.ToTable("DeliveryMandateOrganisation"); }); - modelBuilder.Entity("GeoCop.Api.Models.Asset", b => + modelBuilder.Entity("Geopilot.Api.Models.Asset", b => { b.Property("Id") .ValueGeneratedOnAdd() @@ -79,7 +79,7 @@ protected override void BuildTargetModel(ModelBuilder modelBuilder) b.ToTable("Assets"); }); - modelBuilder.Entity("GeoCop.Api.Models.Delivery", b => + modelBuilder.Entity("Geopilot.Api.Models.Delivery", b => { b.Property("Id") .ValueGeneratedOnAdd() @@ -108,7 +108,7 @@ protected override void BuildTargetModel(ModelBuilder modelBuilder) b.ToTable("Deliveries"); }); - modelBuilder.Entity("GeoCop.Api.Models.DeliveryMandate", b => + modelBuilder.Entity("Geopilot.Api.Models.DeliveryMandate", b => { b.Property("Id") .ValueGeneratedOnAdd() @@ -133,7 +133,7 @@ protected override void BuildTargetModel(ModelBuilder modelBuilder) b.ToTable("DeliveryMandates"); }); - modelBuilder.Entity("GeoCop.Api.Models.Organisation", b => + modelBuilder.Entity("Geopilot.Api.Models.Organisation", b => { b.Property("Id") .ValueGeneratedOnAdd() @@ -150,7 +150,7 @@ protected override void BuildTargetModel(ModelBuilder modelBuilder) b.ToTable("Organisations"); }); - modelBuilder.Entity("GeoCop.Api.Models.User", b => + modelBuilder.Entity("Geopilot.Api.Models.User", b => { b.Property("Id") .ValueGeneratedOnAdd() @@ -184,22 +184,22 @@ protected override void BuildTargetModel(ModelBuilder modelBuilder) modelBuilder.Entity("DeliveryMandateOrganisation", b => { - b.HasOne("GeoCop.Api.Models.DeliveryMandate", null) + b.HasOne("Geopilot.Api.Models.DeliveryMandate", null) .WithMany() .HasForeignKey("MandatesId") .OnDelete(DeleteBehavior.Cascade) .IsRequired(); - b.HasOne("GeoCop.Api.Models.Organisation", null) + b.HasOne("Geopilot.Api.Models.Organisation", null) .WithMany() .HasForeignKey("OrganisationsId") .OnDelete(DeleteBehavior.Cascade) .IsRequired(); }); - modelBuilder.Entity("GeoCop.Api.Models.Asset", b => + modelBuilder.Entity("Geopilot.Api.Models.Asset", b => { - b.HasOne("GeoCop.Api.Models.Delivery", "Delivery") + b.HasOne("Geopilot.Api.Models.Delivery", "Delivery") .WithMany("Assets") .HasForeignKey("DeliveryId") .OnDelete(DeleteBehavior.Cascade) @@ -208,15 +208,15 @@ protected override void BuildTargetModel(ModelBuilder modelBuilder) b.Navigation("Delivery"); }); - modelBuilder.Entity("GeoCop.Api.Models.Delivery", b => + modelBuilder.Entity("Geopilot.Api.Models.Delivery", b => { - b.HasOne("GeoCop.Api.Models.User", "DeclaringUser") + b.HasOne("Geopilot.Api.Models.User", "DeclaringUser") .WithMany("Deliveries") .HasForeignKey("DeclaringUserId") .OnDelete(DeleteBehavior.Cascade) .IsRequired(); - b.HasOne("GeoCop.Api.Models.DeliveryMandate", "DeliveryMandate") + b.HasOne("Geopilot.Api.Models.DeliveryMandate", "DeliveryMandate") .WithMany("Deliveries") .HasForeignKey("DeliveryMandateId") .OnDelete(DeleteBehavior.Cascade) @@ -229,30 +229,30 @@ protected override void BuildTargetModel(ModelBuilder modelBuilder) modelBuilder.Entity("OrganisationUser", b => { - b.HasOne("GeoCop.Api.Models.Organisation", null) + b.HasOne("Geopilot.Api.Models.Organisation", null) .WithMany() .HasForeignKey("OrganisationsId") .OnDelete(DeleteBehavior.Cascade) .IsRequired(); - b.HasOne("GeoCop.Api.Models.User", null) + b.HasOne("Geopilot.Api.Models.User", null) .WithMany() .HasForeignKey("UsersId") .OnDelete(DeleteBehavior.Cascade) .IsRequired(); }); - modelBuilder.Entity("GeoCop.Api.Models.Delivery", b => + modelBuilder.Entity("Geopilot.Api.Models.Delivery", b => { b.Navigation("Assets"); }); - modelBuilder.Entity("GeoCop.Api.Models.DeliveryMandate", b => + modelBuilder.Entity("Geopilot.Api.Models.DeliveryMandate", b => { b.Navigation("Deliveries"); }); - modelBuilder.Entity("GeoCop.Api.Models.User", b => + modelBuilder.Entity("Geopilot.Api.Models.User", b => { b.Navigation("Deliveries"); }); diff --git a/src/GeoCop.Api/Migrations/20231127075341_AddDeletedAttribute.cs b/src/Geopilot.Api/Migrations/20231127075341_AddDeletedAttribute.cs similarity index 96% rename from src/GeoCop.Api/Migrations/20231127075341_AddDeletedAttribute.cs rename to src/Geopilot.Api/Migrations/20231127075341_AddDeletedAttribute.cs index 8cca74d5..3a359301 100644 --- a/src/GeoCop.Api/Migrations/20231127075341_AddDeletedAttribute.cs +++ b/src/Geopilot.Api/Migrations/20231127075341_AddDeletedAttribute.cs @@ -2,7 +2,7 @@ #nullable disable -namespace GeoCop.Api.Migrations +namespace Geopilot.Api.Migrations { /// public partial class AddDeletedAttribute : Migration diff --git a/src/GeoCop.Api/Migrations/20231127135108_AddJobIdToDelivery.Designer.cs b/src/Geopilot.Api/Migrations/20231127135108_AddJobIdToDelivery.Designer.cs similarity index 86% rename from src/GeoCop.Api/Migrations/20231127135108_AddJobIdToDelivery.Designer.cs rename to src/Geopilot.Api/Migrations/20231127135108_AddJobIdToDelivery.Designer.cs index cf5da3a6..7bf7331e 100644 --- a/src/GeoCop.Api/Migrations/20231127135108_AddJobIdToDelivery.Designer.cs +++ b/src/Geopilot.Api/Migrations/20231127135108_AddJobIdToDelivery.Designer.cs @@ -1,6 +1,6 @@ // using System; -using GeoCop.Api; +using Geopilot.Api; using Microsoft.EntityFrameworkCore; using Microsoft.EntityFrameworkCore.Infrastructure; using Microsoft.EntityFrameworkCore.Migrations; @@ -10,7 +10,7 @@ #nullable disable -namespace GeoCop.Api.Migrations +namespace Geopilot.Api.Migrations { [DbContext(typeof(Context))] [Migration("20231127135108_AddJobIdToDelivery")] @@ -42,7 +42,7 @@ protected override void BuildTargetModel(ModelBuilder modelBuilder) b.ToTable("DeliveryMandateOrganisation"); }); - modelBuilder.Entity("GeoCop.Api.Models.Asset", b => + modelBuilder.Entity("Geopilot.Api.Models.Asset", b => { b.Property("Id") .ValueGeneratedOnAdd() @@ -76,7 +76,7 @@ protected override void BuildTargetModel(ModelBuilder modelBuilder) b.ToTable("Assets"); }); - modelBuilder.Entity("GeoCop.Api.Models.Delivery", b => + modelBuilder.Entity("Geopilot.Api.Models.Delivery", b => { b.Property("Id") .ValueGeneratedOnAdd() @@ -105,7 +105,7 @@ protected override void BuildTargetModel(ModelBuilder modelBuilder) b.ToTable("Deliveries"); }); - modelBuilder.Entity("GeoCop.Api.Models.DeliveryMandate", b => + modelBuilder.Entity("Geopilot.Api.Models.DeliveryMandate", b => { b.Property("Id") .ValueGeneratedOnAdd() @@ -130,7 +130,7 @@ protected override void BuildTargetModel(ModelBuilder modelBuilder) b.ToTable("DeliveryMandates"); }); - modelBuilder.Entity("GeoCop.Api.Models.Organisation", b => + modelBuilder.Entity("Geopilot.Api.Models.Organisation", b => { b.Property("Id") .ValueGeneratedOnAdd() @@ -147,7 +147,7 @@ protected override void BuildTargetModel(ModelBuilder modelBuilder) b.ToTable("Organisations"); }); - modelBuilder.Entity("GeoCop.Api.Models.User", b => + modelBuilder.Entity("Geopilot.Api.Models.User", b => { b.Property("Id") .ValueGeneratedOnAdd() @@ -181,22 +181,22 @@ protected override void BuildTargetModel(ModelBuilder modelBuilder) modelBuilder.Entity("DeliveryMandateOrganisation", b => { - b.HasOne("GeoCop.Api.Models.DeliveryMandate", null) + b.HasOne("Geopilot.Api.Models.DeliveryMandate", null) .WithMany() .HasForeignKey("MandatesId") .OnDelete(DeleteBehavior.Cascade) .IsRequired(); - b.HasOne("GeoCop.Api.Models.Organisation", null) + b.HasOne("Geopilot.Api.Models.Organisation", null) .WithMany() .HasForeignKey("OrganisationsId") .OnDelete(DeleteBehavior.Cascade) .IsRequired(); }); - modelBuilder.Entity("GeoCop.Api.Models.Asset", b => + modelBuilder.Entity("Geopilot.Api.Models.Asset", b => { - b.HasOne("GeoCop.Api.Models.Delivery", "Delivery") + b.HasOne("Geopilot.Api.Models.Delivery", "Delivery") .WithMany("Assets") .HasForeignKey("DeliveryId") .OnDelete(DeleteBehavior.Cascade) @@ -205,15 +205,15 @@ protected override void BuildTargetModel(ModelBuilder modelBuilder) b.Navigation("Delivery"); }); - modelBuilder.Entity("GeoCop.Api.Models.Delivery", b => + modelBuilder.Entity("Geopilot.Api.Models.Delivery", b => { - b.HasOne("GeoCop.Api.Models.User", "DeclaringUser") + b.HasOne("Geopilot.Api.Models.User", "DeclaringUser") .WithMany("Deliveries") .HasForeignKey("DeclaringUserId") .OnDelete(DeleteBehavior.Cascade) .IsRequired(); - b.HasOne("GeoCop.Api.Models.DeliveryMandate", "DeliveryMandate") + b.HasOne("Geopilot.Api.Models.DeliveryMandate", "DeliveryMandate") .WithMany("Deliveries") .HasForeignKey("DeliveryMandateId") .OnDelete(DeleteBehavior.Cascade) @@ -226,30 +226,30 @@ protected override void BuildTargetModel(ModelBuilder modelBuilder) modelBuilder.Entity("OrganisationUser", b => { - b.HasOne("GeoCop.Api.Models.Organisation", null) + b.HasOne("Geopilot.Api.Models.Organisation", null) .WithMany() .HasForeignKey("OrganisationsId") .OnDelete(DeleteBehavior.Cascade) .IsRequired(); - b.HasOne("GeoCop.Api.Models.User", null) + b.HasOne("Geopilot.Api.Models.User", null) .WithMany() .HasForeignKey("UsersId") .OnDelete(DeleteBehavior.Cascade) .IsRequired(); }); - modelBuilder.Entity("GeoCop.Api.Models.Delivery", b => + modelBuilder.Entity("Geopilot.Api.Models.Delivery", b => { b.Navigation("Assets"); }); - modelBuilder.Entity("GeoCop.Api.Models.DeliveryMandate", b => + modelBuilder.Entity("Geopilot.Api.Models.DeliveryMandate", b => { b.Navigation("Deliveries"); }); - modelBuilder.Entity("GeoCop.Api.Models.User", b => + modelBuilder.Entity("Geopilot.Api.Models.User", b => { b.Navigation("Deliveries"); }); diff --git a/src/GeoCop.Api/Migrations/20231127135108_AddJobIdToDelivery.cs b/src/Geopilot.Api/Migrations/20231127135108_AddJobIdToDelivery.cs similarity index 95% rename from src/GeoCop.Api/Migrations/20231127135108_AddJobIdToDelivery.cs rename to src/Geopilot.Api/Migrations/20231127135108_AddJobIdToDelivery.cs index d114e6ab..5d401fec 100644 --- a/src/GeoCop.Api/Migrations/20231127135108_AddJobIdToDelivery.cs +++ b/src/Geopilot.Api/Migrations/20231127135108_AddJobIdToDelivery.cs @@ -3,7 +3,7 @@ #nullable disable -namespace GeoCop.Api.Migrations +namespace Geopilot.Api.Migrations { /// public partial class AddJobIdToDelivery : Migration diff --git a/src/GeoCop.Api/Migrations/20231127155720_UserInformation.Designer.cs b/src/Geopilot.Api/Migrations/20231127155720_UserInformation.Designer.cs similarity index 86% rename from src/GeoCop.Api/Migrations/20231127155720_UserInformation.Designer.cs rename to src/Geopilot.Api/Migrations/20231127155720_UserInformation.Designer.cs index 7ccbd25b..6b5c985b 100644 --- a/src/GeoCop.Api/Migrations/20231127155720_UserInformation.Designer.cs +++ b/src/Geopilot.Api/Migrations/20231127155720_UserInformation.Designer.cs @@ -1,6 +1,6 @@ // using System; -using GeoCop.Api; +using Geopilot.Api; using Microsoft.EntityFrameworkCore; using Microsoft.EntityFrameworkCore.Infrastructure; using Microsoft.EntityFrameworkCore.Migrations; @@ -10,7 +10,7 @@ #nullable disable -namespace GeoCop.Api.Migrations +namespace Geopilot.Api.Migrations { [DbContext(typeof(Context))] [Migration("20231127155720_UserInformation")] @@ -42,7 +42,7 @@ protected override void BuildTargetModel(ModelBuilder modelBuilder) b.ToTable("DeliveryMandateOrganisation"); }); - modelBuilder.Entity("GeoCop.Api.Models.Asset", b => + modelBuilder.Entity("Geopilot.Api.Models.Asset", b => { b.Property("Id") .ValueGeneratedOnAdd() @@ -76,7 +76,7 @@ protected override void BuildTargetModel(ModelBuilder modelBuilder) b.ToTable("Assets"); }); - modelBuilder.Entity("GeoCop.Api.Models.Delivery", b => + modelBuilder.Entity("Geopilot.Api.Models.Delivery", b => { b.Property("Id") .ValueGeneratedOnAdd() @@ -105,7 +105,7 @@ protected override void BuildTargetModel(ModelBuilder modelBuilder) b.ToTable("Deliveries"); }); - modelBuilder.Entity("GeoCop.Api.Models.DeliveryMandate", b => + modelBuilder.Entity("Geopilot.Api.Models.DeliveryMandate", b => { b.Property("Id") .ValueGeneratedOnAdd() @@ -130,7 +130,7 @@ protected override void BuildTargetModel(ModelBuilder modelBuilder) b.ToTable("DeliveryMandates"); }); - modelBuilder.Entity("GeoCop.Api.Models.Organisation", b => + modelBuilder.Entity("Geopilot.Api.Models.Organisation", b => { b.Property("Id") .ValueGeneratedOnAdd() @@ -147,7 +147,7 @@ protected override void BuildTargetModel(ModelBuilder modelBuilder) b.ToTable("Organisations"); }); - modelBuilder.Entity("GeoCop.Api.Models.User", b => + modelBuilder.Entity("Geopilot.Api.Models.User", b => { b.Property("Id") .ValueGeneratedOnAdd() @@ -192,22 +192,22 @@ protected override void BuildTargetModel(ModelBuilder modelBuilder) modelBuilder.Entity("DeliveryMandateOrganisation", b => { - b.HasOne("GeoCop.Api.Models.DeliveryMandate", null) + b.HasOne("Geopilot.Api.Models.DeliveryMandate", null) .WithMany() .HasForeignKey("MandatesId") .OnDelete(DeleteBehavior.Cascade) .IsRequired(); - b.HasOne("GeoCop.Api.Models.Organisation", null) + b.HasOne("Geopilot.Api.Models.Organisation", null) .WithMany() .HasForeignKey("OrganisationsId") .OnDelete(DeleteBehavior.Cascade) .IsRequired(); }); - modelBuilder.Entity("GeoCop.Api.Models.Asset", b => + modelBuilder.Entity("Geopilot.Api.Models.Asset", b => { - b.HasOne("GeoCop.Api.Models.Delivery", "Delivery") + b.HasOne("Geopilot.Api.Models.Delivery", "Delivery") .WithMany("Assets") .HasForeignKey("DeliveryId") .OnDelete(DeleteBehavior.Cascade) @@ -216,15 +216,15 @@ protected override void BuildTargetModel(ModelBuilder modelBuilder) b.Navigation("Delivery"); }); - modelBuilder.Entity("GeoCop.Api.Models.Delivery", b => + modelBuilder.Entity("Geopilot.Api.Models.Delivery", b => { - b.HasOne("GeoCop.Api.Models.User", "DeclaringUser") + b.HasOne("Geopilot.Api.Models.User", "DeclaringUser") .WithMany("Deliveries") .HasForeignKey("DeclaringUserId") .OnDelete(DeleteBehavior.Cascade) .IsRequired(); - b.HasOne("GeoCop.Api.Models.DeliveryMandate", "DeliveryMandate") + b.HasOne("Geopilot.Api.Models.DeliveryMandate", "DeliveryMandate") .WithMany("Deliveries") .HasForeignKey("DeliveryMandateId") .OnDelete(DeleteBehavior.Cascade) @@ -237,30 +237,30 @@ protected override void BuildTargetModel(ModelBuilder modelBuilder) modelBuilder.Entity("OrganisationUser", b => { - b.HasOne("GeoCop.Api.Models.Organisation", null) + b.HasOne("Geopilot.Api.Models.Organisation", null) .WithMany() .HasForeignKey("OrganisationsId") .OnDelete(DeleteBehavior.Cascade) .IsRequired(); - b.HasOne("GeoCop.Api.Models.User", null) + b.HasOne("Geopilot.Api.Models.User", null) .WithMany() .HasForeignKey("UsersId") .OnDelete(DeleteBehavior.Cascade) .IsRequired(); }); - modelBuilder.Entity("GeoCop.Api.Models.Delivery", b => + modelBuilder.Entity("Geopilot.Api.Models.Delivery", b => { b.Navigation("Assets"); }); - modelBuilder.Entity("GeoCop.Api.Models.DeliveryMandate", b => + modelBuilder.Entity("Geopilot.Api.Models.DeliveryMandate", b => { b.Navigation("Deliveries"); }); - modelBuilder.Entity("GeoCop.Api.Models.User", b => + modelBuilder.Entity("Geopilot.Api.Models.User", b => { b.Navigation("Deliveries"); }); diff --git a/src/GeoCop.Api/Migrations/20231127155720_UserInformation.cs b/src/Geopilot.Api/Migrations/20231127155720_UserInformation.cs similarity index 97% rename from src/GeoCop.Api/Migrations/20231127155720_UserInformation.cs rename to src/Geopilot.Api/Migrations/20231127155720_UserInformation.cs index c8fc7acd..e312e234 100644 --- a/src/GeoCop.Api/Migrations/20231127155720_UserInformation.cs +++ b/src/Geopilot.Api/Migrations/20231127155720_UserInformation.cs @@ -2,7 +2,7 @@ #nullable disable -namespace GeoCop.Api.Migrations +namespace Geopilot.Api.Migrations { /// public partial class UserInformation : Migration diff --git a/src/GeoCop.Api/Migrations/20231129141130_AddUserDefinedDeliveryProperties.Designer.cs b/src/Geopilot.Api/Migrations/20231129141130_AddUserDefinedDeliveryProperties.Designer.cs similarity index 86% rename from src/GeoCop.Api/Migrations/20231129141130_AddUserDefinedDeliveryProperties.Designer.cs rename to src/Geopilot.Api/Migrations/20231129141130_AddUserDefinedDeliveryProperties.Designer.cs index 63e76076..4ab366c2 100644 --- a/src/GeoCop.Api/Migrations/20231129141130_AddUserDefinedDeliveryProperties.Designer.cs +++ b/src/Geopilot.Api/Migrations/20231129141130_AddUserDefinedDeliveryProperties.Designer.cs @@ -1,6 +1,6 @@ // using System; -using GeoCop.Api; +using Geopilot.Api; using Microsoft.EntityFrameworkCore; using Microsoft.EntityFrameworkCore.Infrastructure; using Microsoft.EntityFrameworkCore.Migrations; @@ -10,7 +10,7 @@ #nullable disable -namespace GeoCop.Api.Migrations +namespace Geopilot.Api.Migrations { [DbContext(typeof(Context))] [Migration("20231129141130_AddUserDefinedDeliveryProperties")] @@ -42,7 +42,7 @@ protected override void BuildTargetModel(ModelBuilder modelBuilder) b.ToTable("DeliveryMandateOrganisation"); }); - modelBuilder.Entity("GeoCop.Api.Models.Asset", b => + modelBuilder.Entity("Geopilot.Api.Models.Asset", b => { b.Property("Id") .ValueGeneratedOnAdd() @@ -79,7 +79,7 @@ protected override void BuildTargetModel(ModelBuilder modelBuilder) b.ToTable("Assets"); }); - modelBuilder.Entity("GeoCop.Api.Models.Delivery", b => + modelBuilder.Entity("Geopilot.Api.Models.Delivery", b => { b.Property("Id") .ValueGeneratedOnAdd() @@ -123,7 +123,7 @@ protected override void BuildTargetModel(ModelBuilder modelBuilder) b.ToTable("Deliveries"); }); - modelBuilder.Entity("GeoCop.Api.Models.DeliveryMandate", b => + modelBuilder.Entity("Geopilot.Api.Models.DeliveryMandate", b => { b.Property("Id") .ValueGeneratedOnAdd() @@ -148,7 +148,7 @@ protected override void BuildTargetModel(ModelBuilder modelBuilder) b.ToTable("DeliveryMandates"); }); - modelBuilder.Entity("GeoCop.Api.Models.Organisation", b => + modelBuilder.Entity("Geopilot.Api.Models.Organisation", b => { b.Property("Id") .ValueGeneratedOnAdd() @@ -165,7 +165,7 @@ protected override void BuildTargetModel(ModelBuilder modelBuilder) b.ToTable("Organisations"); }); - modelBuilder.Entity("GeoCop.Api.Models.User", b => + modelBuilder.Entity("Geopilot.Api.Models.User", b => { b.Property("Id") .ValueGeneratedOnAdd() @@ -210,22 +210,22 @@ protected override void BuildTargetModel(ModelBuilder modelBuilder) modelBuilder.Entity("DeliveryMandateOrganisation", b => { - b.HasOne("GeoCop.Api.Models.DeliveryMandate", null) + b.HasOne("Geopilot.Api.Models.DeliveryMandate", null) .WithMany() .HasForeignKey("MandatesId") .OnDelete(DeleteBehavior.Cascade) .IsRequired(); - b.HasOne("GeoCop.Api.Models.Organisation", null) + b.HasOne("Geopilot.Api.Models.Organisation", null) .WithMany() .HasForeignKey("OrganisationsId") .OnDelete(DeleteBehavior.Cascade) .IsRequired(); }); - modelBuilder.Entity("GeoCop.Api.Models.Asset", b => + modelBuilder.Entity("Geopilot.Api.Models.Asset", b => { - b.HasOne("GeoCop.Api.Models.Delivery", "Delivery") + b.HasOne("Geopilot.Api.Models.Delivery", "Delivery") .WithMany("Assets") .HasForeignKey("DeliveryId") .OnDelete(DeleteBehavior.Cascade) @@ -234,21 +234,21 @@ protected override void BuildTargetModel(ModelBuilder modelBuilder) b.Navigation("Delivery"); }); - modelBuilder.Entity("GeoCop.Api.Models.Delivery", b => + modelBuilder.Entity("Geopilot.Api.Models.Delivery", b => { - b.HasOne("GeoCop.Api.Models.User", "DeclaringUser") + b.HasOne("Geopilot.Api.Models.User", "DeclaringUser") .WithMany("Deliveries") .HasForeignKey("DeclaringUserId") .OnDelete(DeleteBehavior.Cascade) .IsRequired(); - b.HasOne("GeoCop.Api.Models.DeliveryMandate", "DeliveryMandate") + b.HasOne("Geopilot.Api.Models.DeliveryMandate", "DeliveryMandate") .WithMany("Deliveries") .HasForeignKey("DeliveryMandateId") .OnDelete(DeleteBehavior.Cascade) .IsRequired(); - b.HasOne("GeoCop.Api.Models.Delivery", "PrecursorDelivery") + b.HasOne("Geopilot.Api.Models.Delivery", "PrecursorDelivery") .WithMany() .HasForeignKey("PrecursorDeliveryId"); @@ -261,30 +261,30 @@ protected override void BuildTargetModel(ModelBuilder modelBuilder) modelBuilder.Entity("OrganisationUser", b => { - b.HasOne("GeoCop.Api.Models.Organisation", null) + b.HasOne("Geopilot.Api.Models.Organisation", null) .WithMany() .HasForeignKey("OrganisationsId") .OnDelete(DeleteBehavior.Cascade) .IsRequired(); - b.HasOne("GeoCop.Api.Models.User", null) + b.HasOne("Geopilot.Api.Models.User", null) .WithMany() .HasForeignKey("UsersId") .OnDelete(DeleteBehavior.Cascade) .IsRequired(); }); - modelBuilder.Entity("GeoCop.Api.Models.Delivery", b => + modelBuilder.Entity("Geopilot.Api.Models.Delivery", b => { b.Navigation("Assets"); }); - modelBuilder.Entity("GeoCop.Api.Models.DeliveryMandate", b => + modelBuilder.Entity("Geopilot.Api.Models.DeliveryMandate", b => { b.Navigation("Deliveries"); }); - modelBuilder.Entity("GeoCop.Api.Models.User", b => + modelBuilder.Entity("Geopilot.Api.Models.User", b => { b.Navigation("Deliveries"); }); diff --git a/src/GeoCop.Api/Migrations/20231129141130_AddUserDefinedDeliveryProperties.cs b/src/Geopilot.Api/Migrations/20231129141130_AddUserDefinedDeliveryProperties.cs similarity index 98% rename from src/GeoCop.Api/Migrations/20231129141130_AddUserDefinedDeliveryProperties.cs rename to src/Geopilot.Api/Migrations/20231129141130_AddUserDefinedDeliveryProperties.cs index 7c6391b8..cc72d460 100644 --- a/src/GeoCop.Api/Migrations/20231129141130_AddUserDefinedDeliveryProperties.cs +++ b/src/Geopilot.Api/Migrations/20231129141130_AddUserDefinedDeliveryProperties.cs @@ -2,7 +2,7 @@ #nullable disable -namespace GeoCop.Api.Migrations +namespace Geopilot.Api.Migrations { /// public partial class AddUserDefinedDeliveryProperties : Migration diff --git a/src/GeoCop.Api/Migrations/ContextModelSnapshot.cs b/src/Geopilot.Api/Migrations/ContextModelSnapshot.cs similarity index 86% rename from src/GeoCop.Api/Migrations/ContextModelSnapshot.cs rename to src/Geopilot.Api/Migrations/ContextModelSnapshot.cs index a2aaf59e..17cdc6ec 100644 --- a/src/GeoCop.Api/Migrations/ContextModelSnapshot.cs +++ b/src/Geopilot.Api/Migrations/ContextModelSnapshot.cs @@ -1,6 +1,6 @@ // using System; -using GeoCop.Api; +using Geopilot.Api; using Microsoft.EntityFrameworkCore; using Microsoft.EntityFrameworkCore.Infrastructure; using Microsoft.EntityFrameworkCore.Storage.ValueConversion; @@ -9,7 +9,7 @@ #nullable disable -namespace GeoCop.Api.Migrations +namespace Geopilot.Api.Migrations { [DbContext(typeof(Context))] partial class ContextModelSnapshot : ModelSnapshot @@ -39,7 +39,7 @@ protected override void BuildModel(ModelBuilder modelBuilder) b.ToTable("DeliveryMandateOrganisation"); }); - modelBuilder.Entity("GeoCop.Api.Models.Asset", b => + modelBuilder.Entity("Geopilot.Api.Models.Asset", b => { b.Property("Id") .ValueGeneratedOnAdd() @@ -76,7 +76,7 @@ protected override void BuildModel(ModelBuilder modelBuilder) b.ToTable("Assets"); }); - modelBuilder.Entity("GeoCop.Api.Models.Delivery", b => + modelBuilder.Entity("Geopilot.Api.Models.Delivery", b => { b.Property("Id") .ValueGeneratedOnAdd() @@ -120,7 +120,7 @@ protected override void BuildModel(ModelBuilder modelBuilder) b.ToTable("Deliveries"); }); - modelBuilder.Entity("GeoCop.Api.Models.DeliveryMandate", b => + modelBuilder.Entity("Geopilot.Api.Models.DeliveryMandate", b => { b.Property("Id") .ValueGeneratedOnAdd() @@ -145,7 +145,7 @@ protected override void BuildModel(ModelBuilder modelBuilder) b.ToTable("DeliveryMandates"); }); - modelBuilder.Entity("GeoCop.Api.Models.Organisation", b => + modelBuilder.Entity("Geopilot.Api.Models.Organisation", b => { b.Property("Id") .ValueGeneratedOnAdd() @@ -162,7 +162,7 @@ protected override void BuildModel(ModelBuilder modelBuilder) b.ToTable("Organisations"); }); - modelBuilder.Entity("GeoCop.Api.Models.User", b => + modelBuilder.Entity("Geopilot.Api.Models.User", b => { b.Property("Id") .ValueGeneratedOnAdd() @@ -207,22 +207,22 @@ protected override void BuildModel(ModelBuilder modelBuilder) modelBuilder.Entity("DeliveryMandateOrganisation", b => { - b.HasOne("GeoCop.Api.Models.DeliveryMandate", null) + b.HasOne("Geopilot.Api.Models.DeliveryMandate", null) .WithMany() .HasForeignKey("MandatesId") .OnDelete(DeleteBehavior.Cascade) .IsRequired(); - b.HasOne("GeoCop.Api.Models.Organisation", null) + b.HasOne("Geopilot.Api.Models.Organisation", null) .WithMany() .HasForeignKey("OrganisationsId") .OnDelete(DeleteBehavior.Cascade) .IsRequired(); }); - modelBuilder.Entity("GeoCop.Api.Models.Asset", b => + modelBuilder.Entity("Geopilot.Api.Models.Asset", b => { - b.HasOne("GeoCop.Api.Models.Delivery", "Delivery") + b.HasOne("Geopilot.Api.Models.Delivery", "Delivery") .WithMany("Assets") .HasForeignKey("DeliveryId") .OnDelete(DeleteBehavior.Cascade) @@ -231,21 +231,21 @@ protected override void BuildModel(ModelBuilder modelBuilder) b.Navigation("Delivery"); }); - modelBuilder.Entity("GeoCop.Api.Models.Delivery", b => + modelBuilder.Entity("Geopilot.Api.Models.Delivery", b => { - b.HasOne("GeoCop.Api.Models.User", "DeclaringUser") + b.HasOne("Geopilot.Api.Models.User", "DeclaringUser") .WithMany("Deliveries") .HasForeignKey("DeclaringUserId") .OnDelete(DeleteBehavior.Cascade) .IsRequired(); - b.HasOne("GeoCop.Api.Models.DeliveryMandate", "DeliveryMandate") + b.HasOne("Geopilot.Api.Models.DeliveryMandate", "DeliveryMandate") .WithMany("Deliveries") .HasForeignKey("DeliveryMandateId") .OnDelete(DeleteBehavior.Cascade) .IsRequired(); - b.HasOne("GeoCop.Api.Models.Delivery", "PrecursorDelivery") + b.HasOne("Geopilot.Api.Models.Delivery", "PrecursorDelivery") .WithMany() .HasForeignKey("PrecursorDeliveryId"); @@ -258,30 +258,30 @@ protected override void BuildModel(ModelBuilder modelBuilder) modelBuilder.Entity("OrganisationUser", b => { - b.HasOne("GeoCop.Api.Models.Organisation", null) + b.HasOne("Geopilot.Api.Models.Organisation", null) .WithMany() .HasForeignKey("OrganisationsId") .OnDelete(DeleteBehavior.Cascade) .IsRequired(); - b.HasOne("GeoCop.Api.Models.User", null) + b.HasOne("Geopilot.Api.Models.User", null) .WithMany() .HasForeignKey("UsersId") .OnDelete(DeleteBehavior.Cascade) .IsRequired(); }); - modelBuilder.Entity("GeoCop.Api.Models.Delivery", b => + modelBuilder.Entity("Geopilot.Api.Models.Delivery", b => { b.Navigation("Assets"); }); - modelBuilder.Entity("GeoCop.Api.Models.DeliveryMandate", b => + modelBuilder.Entity("Geopilot.Api.Models.DeliveryMandate", b => { b.Navigation("Deliveries"); }); - modelBuilder.Entity("GeoCop.Api.Models.User", b => + modelBuilder.Entity("Geopilot.Api.Models.User", b => { b.Navigation("Deliveries"); }); diff --git a/src/GeoCop.Api/Models/Asset.cs b/src/Geopilot.Api/Models/Asset.cs similarity index 97% rename from src/GeoCop.Api/Models/Asset.cs rename to src/Geopilot.Api/Models/Asset.cs index d546a6e1..d5c1d9ae 100644 --- a/src/GeoCop.Api/Models/Asset.cs +++ b/src/Geopilot.Api/Models/Asset.cs @@ -1,6 +1,6 @@ using System.ComponentModel.DataAnnotations.Schema; -namespace GeoCop.Api.Models; +namespace Geopilot.Api.Models; /// /// An asset describes a file delivered or created by the validation and delivery process. diff --git a/src/GeoCop.Api/Models/AssetType.cs b/src/Geopilot.Api/Models/AssetType.cs similarity index 93% rename from src/GeoCop.Api/Models/AssetType.cs rename to src/Geopilot.Api/Models/AssetType.cs index 2243b2f0..160f8829 100644 --- a/src/GeoCop.Api/Models/AssetType.cs +++ b/src/Geopilot.Api/Models/AssetType.cs @@ -1,4 +1,4 @@ -namespace GeoCop.Api.Models; +namespace Geopilot.Api.Models; /// /// Meta information on how an asset was created and how it has to be interpreted. diff --git a/src/GeoCop.Api/Models/Delivery.cs b/src/Geopilot.Api/Models/Delivery.cs similarity index 97% rename from src/GeoCop.Api/Models/Delivery.cs rename to src/Geopilot.Api/Models/Delivery.cs index 476942bb..37a0b29d 100644 --- a/src/GeoCop.Api/Models/Delivery.cs +++ b/src/Geopilot.Api/Models/Delivery.cs @@ -1,4 +1,4 @@ -namespace GeoCop.Api.Models; +namespace Geopilot.Api.Models; /// /// A fullfillment of a . Contains all relevant meta information and assets provided or created by the validation and delivery process. diff --git a/src/GeoCop.Api/Models/DeliveryMandate.cs b/src/Geopilot.Api/Models/DeliveryMandate.cs similarity index 98% rename from src/GeoCop.Api/Models/DeliveryMandate.cs rename to src/Geopilot.Api/Models/DeliveryMandate.cs index 1b193805..d7c56dd4 100644 --- a/src/GeoCop.Api/Models/DeliveryMandate.cs +++ b/src/Geopilot.Api/Models/DeliveryMandate.cs @@ -1,7 +1,7 @@ using NetTopologySuite.Geometries; using System.Text.Json.Serialization; -namespace GeoCop.Api.Models; +namespace Geopilot.Api.Models; /// /// A contract between the system owner and an organisation for data delivery. diff --git a/src/GeoCop.Api/Models/Organisation.cs b/src/Geopilot.Api/Models/Organisation.cs similarity index 95% rename from src/GeoCop.Api/Models/Organisation.cs rename to src/Geopilot.Api/Models/Organisation.cs index 670d6d62..3592e784 100644 --- a/src/GeoCop.Api/Models/Organisation.cs +++ b/src/Geopilot.Api/Models/Organisation.cs @@ -1,4 +1,4 @@ -namespace GeoCop.Api.Models; +namespace Geopilot.Api.Models; /// /// A company or group of users that may have a mandate for delivering data to the system owner. diff --git a/src/GeoCop.Api/Models/User.cs b/src/Geopilot.Api/Models/User.cs similarity index 97% rename from src/GeoCop.Api/Models/User.cs rename to src/Geopilot.Api/Models/User.cs index 8c4fbfcb..04163c83 100644 --- a/src/GeoCop.Api/Models/User.cs +++ b/src/Geopilot.Api/Models/User.cs @@ -1,6 +1,6 @@ using System.Text.Json.Serialization; -namespace GeoCop.Api.Models; +namespace Geopilot.Api.Models; /// /// A person that is allowed to view or declare deliveries. diff --git a/src/GeoCop.Api/Program.cs b/src/Geopilot.Api/Program.cs similarity index 87% rename from src/GeoCop.Api/Program.cs rename to src/Geopilot.Api/Program.cs index 2c5ce994..6ee584cb 100644 --- a/src/GeoCop.Api/Program.cs +++ b/src/Geopilot.Api/Program.cs @@ -1,12 +1,12 @@ using Asp.Versioning; -using GeoCop.Api; -using GeoCop.Api.Authorization; -using GeoCop.Api.Contracts; -using GeoCop.Api.Conventions; -using GeoCop.Api.FileAccess; -using GeoCop.Api.StacServices; -using GeoCop.Api.Validation; -using GeoCop.Api.Validation.Interlis; +using Geopilot.Api; +using Geopilot.Api.Authorization; +using Geopilot.Api.Contracts; +using Geopilot.Api.Conventions; +using Geopilot.Api.FileAccess; +using Geopilot.Api.StacServices; +using Geopilot.Api.Validation; +using Geopilot.Api.Validation.Interlis; using Microsoft.AspNetCore.Authentication.JwtBearer; using Microsoft.AspNetCore.Authorization; using Microsoft.AspNetCore.Mvc.Authorization; @@ -35,8 +35,8 @@ builder.Services .AddControllers(options => { - options.Conventions.Add(new StacRoutingConvention(GeocopPolicies.Admin)); - options.Conventions.Add(new GeocopJsonConvention()); + options.Conventions.Add(new StacRoutingConvention(GeopilotPolicies.Admin)); + options.Conventions.Add(new GeopilotJsonConvention()); var policy = new AuthorizationPolicyBuilder() .RequireAuthenticatedUser() @@ -107,23 +107,23 @@ builder.Services.AddAuthorization(options => { - options.AddPolicy(GeocopPolicies.Admin, policy => + options.AddPolicy(GeopilotPolicies.Admin, policy => { - policy.Requirements.Add(new GeocopUserRequirement + policy.Requirements.Add(new GeopilotUserRequirement { RequireAdmin = true, }); }); - options.AddPolicy(GeocopPolicies.User, policy => + options.AddPolicy(GeopilotPolicies.User, policy => { - policy.Requirements.Add(new GeocopUserRequirement()); + policy.Requirements.Add(new GeopilotUserRequirement()); }); - var adminPolicy = options.GetPolicy(GeocopPolicies.Admin) ?? throw new InvalidOperationException("Missing Admin authorization policy"); + var adminPolicy = options.GetPolicy(GeopilotPolicies.Admin) ?? throw new InvalidOperationException("Missing Admin authorization policy"); options.DefaultPolicy = adminPolicy; options.FallbackPolicy = adminPolicy; }); -builder.Services.AddTransient(); +builder.Services.AddTransient(); var contentTypeProvider = new FileExtensionContentTypeProvider(); contentTypeProvider.Mappings.TryAdd(".log", "text/plain"); @@ -204,7 +204,7 @@ app.Use(async (context, next) => { var authorizationService = context.RequestServices.GetRequiredService(); - if (context.Request.Path.StartsWithSegments("/browser") && !(await authorizationService.AuthorizeAsync(context.User, GeocopPolicies.Admin)).Succeeded) + if (context.Request.Path.StartsWithSegments("/browser") && !(await authorizationService.AuthorizeAsync(context.User, GeopilotPolicies.Admin)).Succeeded) { context.Response.Redirect("/"); } diff --git a/src/GeoCop.Api/Properties/launchSettings.json b/src/Geopilot.Api/Properties/launchSettings.json similarity index 100% rename from src/GeoCop.Api/Properties/launchSettings.json rename to src/Geopilot.Api/Properties/launchSettings.json diff --git a/src/GeoCop.Api/StacServices/HttpsLinkGenerator.cs b/src/Geopilot.Api/StacServices/HttpsLinkGenerator.cs similarity index 98% rename from src/GeoCop.Api/StacServices/HttpsLinkGenerator.cs rename to src/Geopilot.Api/StacServices/HttpsLinkGenerator.cs index e639e382..5306f52d 100644 --- a/src/GeoCop.Api/StacServices/HttpsLinkGenerator.cs +++ b/src/Geopilot.Api/StacServices/HttpsLinkGenerator.cs @@ -1,4 +1,4 @@ -namespace GeoCop.Api.StacServices; +namespace Geopilot.Api.StacServices; /// /// Link generator for generating https links. diff --git a/src/GeoCop.Api/StacServices/HttpsStacApiContext.cs b/src/Geopilot.Api/StacServices/HttpsStacApiContext.cs similarity index 98% rename from src/GeoCop.Api/StacServices/HttpsStacApiContext.cs rename to src/Geopilot.Api/StacServices/HttpsStacApiContext.cs index fd626db7..fcbf54a4 100644 --- a/src/GeoCop.Api/StacServices/HttpsStacApiContext.cs +++ b/src/Geopilot.Api/StacServices/HttpsStacApiContext.cs @@ -1,7 +1,7 @@ using Stac; using Stac.Api.Interfaces; -namespace GeoCop.Api.StacServices; +namespace Geopilot.Api.StacServices; /// /// STAC API context with the custom . diff --git a/src/GeoCop.Api/StacServices/HttpsStacApiContextFactory.cs b/src/Geopilot.Api/StacServices/HttpsStacApiContextFactory.cs similarity index 98% rename from src/GeoCop.Api/StacServices/HttpsStacApiContextFactory.cs rename to src/Geopilot.Api/StacServices/HttpsStacApiContextFactory.cs index af06f036..9b0946c3 100644 --- a/src/GeoCop.Api/StacServices/HttpsStacApiContextFactory.cs +++ b/src/Geopilot.Api/StacServices/HttpsStacApiContextFactory.cs @@ -1,7 +1,7 @@ using Stac; using Stac.Api.Interfaces; -namespace GeoCop.Api.StacServices; +namespace Geopilot.Api.StacServices; /// /// Provides access to STAC API context with the custom . diff --git a/src/GeoCop.Api/StacServices/StacCollectionsProvider.cs b/src/Geopilot.Api/StacServices/StacCollectionsProvider.cs similarity index 98% rename from src/GeoCop.Api/StacServices/StacCollectionsProvider.cs rename to src/Geopilot.Api/StacServices/StacCollectionsProvider.cs index 3e44cacb..e1522777 100644 --- a/src/GeoCop.Api/StacServices/StacCollectionsProvider.cs +++ b/src/Geopilot.Api/StacServices/StacCollectionsProvider.cs @@ -3,7 +3,7 @@ using Stac.Api.Interfaces; using Stac.Api.WebApi.Implementations.Default; -namespace GeoCop.Api.StacServices; +namespace Geopilot.Api.StacServices; /// /// Provides access to STAC collections. diff --git a/src/GeoCop.Api/StacServices/StacConverter.cs b/src/Geopilot.Api/StacServices/StacConverter.cs similarity index 98% rename from src/GeoCop.Api/StacServices/StacConverter.cs rename to src/Geopilot.Api/StacServices/StacConverter.cs index ed76e59a..0dc6bd3d 100644 --- a/src/GeoCop.Api/StacServices/StacConverter.cs +++ b/src/Geopilot.Api/StacServices/StacConverter.cs @@ -1,4 +1,4 @@ -using GeoCop.Api.Models; +using Geopilot.Api.Models; using Itenso.TimePeriod; using Microsoft.AspNetCore.StaticFiles; using NetTopologySuite.Geometries; @@ -7,7 +7,7 @@ using Stac.Api.WebApi.Services; using Stac.Collection; -namespace GeoCop.Api.StacServices; +namespace Geopilot.Api.StacServices; /// /// Converts objects of different types to STAC objects. diff --git a/src/GeoCop.Api/StacServices/StacDataServicesProvider.cs b/src/Geopilot.Api/StacServices/StacDataServicesProvider.cs similarity index 96% rename from src/GeoCop.Api/StacServices/StacDataServicesProvider.cs rename to src/Geopilot.Api/StacServices/StacDataServicesProvider.cs index 96b5e5cd..e58f1407 100644 --- a/src/GeoCop.Api/StacServices/StacDataServicesProvider.cs +++ b/src/Geopilot.Api/StacServices/StacDataServicesProvider.cs @@ -1,6 +1,6 @@ using Stac.Api.Interfaces; -namespace GeoCop.Api.StacServices; +namespace Geopilot.Api.StacServices; /// /// Provides access to STAC data services. diff --git a/src/GeoCop.Api/StacServices/StacItemsBroker.cs b/src/Geopilot.Api/StacServices/StacItemsBroker.cs similarity index 96% rename from src/GeoCop.Api/StacServices/StacItemsBroker.cs rename to src/Geopilot.Api/StacServices/StacItemsBroker.cs index b4d83170..1e6cf8ed 100644 --- a/src/GeoCop.Api/StacServices/StacItemsBroker.cs +++ b/src/Geopilot.Api/StacServices/StacItemsBroker.cs @@ -1,7 +1,7 @@ using Stac; using Stac.Api.Interfaces; -namespace GeoCop.Api.StacServices; +namespace Geopilot.Api.StacServices; /// /// Handles STAC items changes. diff --git a/src/GeoCop.Api/StacServices/StacItemsProvider.cs b/src/Geopilot.Api/StacServices/StacItemsProvider.cs similarity index 98% rename from src/GeoCop.Api/StacServices/StacItemsProvider.cs rename to src/Geopilot.Api/StacServices/StacItemsProvider.cs index 4bf1be2a..d2122fe8 100644 --- a/src/GeoCop.Api/StacServices/StacItemsProvider.cs +++ b/src/Geopilot.Api/StacServices/StacItemsProvider.cs @@ -2,7 +2,7 @@ using Stac; using Stac.Api.Interfaces; -namespace GeoCop.Api.StacServices; +namespace Geopilot.Api.StacServices; /// /// Provides access to STAC items. diff --git a/src/GeoCop.Api/StacServices/StacLinker.cs b/src/Geopilot.Api/StacServices/StacLinker.cs similarity index 99% rename from src/GeoCop.Api/StacServices/StacLinker.cs rename to src/Geopilot.Api/StacServices/StacLinker.cs index b6f2c127..fceb5f2e 100644 --- a/src/GeoCop.Api/StacServices/StacLinker.cs +++ b/src/Geopilot.Api/StacServices/StacLinker.cs @@ -9,7 +9,7 @@ using Stac.Api.Models.Core; using Stac.Api.WebApi.Services; -namespace GeoCop.Api.StacServices; +namespace Geopilot.Api.StacServices; /// /// Custom linker for STAC. Based on https://github.com/Terradue/DotNetStac.Api/blob/main/src/Stac.Api.WebApi/Implementations/Default/CollectionBasedStacLinker.cs, diff --git a/src/GeoCop.Api/StacServices/StacRootCatalogProvider.cs b/src/Geopilot.Api/StacServices/StacRootCatalogProvider.cs similarity index 92% rename from src/GeoCop.Api/StacServices/StacRootCatalogProvider.cs rename to src/Geopilot.Api/StacServices/StacRootCatalogProvider.cs index 27c0ea18..d37c35c4 100644 --- a/src/GeoCop.Api/StacServices/StacRootCatalogProvider.cs +++ b/src/Geopilot.Api/StacServices/StacRootCatalogProvider.cs @@ -1,7 +1,7 @@ using Stac; using Stac.Api.Interfaces; -namespace GeoCop.Api.StacServices; +namespace Geopilot.Api.StacServices; /// /// Provides access to STAC root catalog. diff --git a/src/GeoCop.Api/StacServices/StacWebApiExtensions.cs b/src/Geopilot.Api/StacServices/StacWebApiExtensions.cs similarity index 98% rename from src/GeoCop.Api/StacServices/StacWebApiExtensions.cs rename to src/Geopilot.Api/StacServices/StacWebApiExtensions.cs index ab8071e1..594613f3 100644 --- a/src/GeoCop.Api/StacServices/StacWebApiExtensions.cs +++ b/src/Geopilot.Api/StacServices/StacWebApiExtensions.cs @@ -6,7 +6,7 @@ using Stac.Api.WebApi.Services; using Stac.Api.WebApi.Services.Context; -namespace GeoCop.Api.StacServices; +namespace Geopilot.Api.StacServices; /// /// Provides access to STAC data services. diff --git a/src/GeoCop.Api/Validation/IValidationRunner.cs b/src/Geopilot.Api/Validation/IValidationRunner.cs similarity index 97% rename from src/GeoCop.Api/Validation/IValidationRunner.cs rename to src/Geopilot.Api/Validation/IValidationRunner.cs index 27ad9bf5..743ff304 100644 --- a/src/GeoCop.Api/Validation/IValidationRunner.cs +++ b/src/Geopilot.Api/Validation/IValidationRunner.cs @@ -1,4 +1,4 @@ -namespace GeoCop.Api.Validation; +namespace Geopilot.Api.Validation; /// /// Runs validation jobs and provides access job status information. diff --git a/src/GeoCop.Api/Validation/IValidationService.cs b/src/Geopilot.Api/Validation/IValidationService.cs similarity index 96% rename from src/GeoCop.Api/Validation/IValidationService.cs rename to src/Geopilot.Api/Validation/IValidationService.cs index c0d4660f..b728187e 100644 --- a/src/GeoCop.Api/Validation/IValidationService.cs +++ b/src/Geopilot.Api/Validation/IValidationService.cs @@ -1,6 +1,6 @@ -using GeoCop.Api.FileAccess; +using Geopilot.Api.FileAccess; -namespace GeoCop.Api.Validation; +namespace Geopilot.Api.Validation; /// /// Provides methods to start validation jobs and access job status information. diff --git a/src/GeoCop.Api/Validation/IValidator.cs b/src/Geopilot.Api/Validation/IValidator.cs similarity index 95% rename from src/GeoCop.Api/Validation/IValidator.cs rename to src/Geopilot.Api/Validation/IValidator.cs index 724424e7..5777047c 100644 --- a/src/GeoCop.Api/Validation/IValidator.cs +++ b/src/Geopilot.Api/Validation/IValidator.cs @@ -1,6 +1,6 @@ -using GeoCop.Api.FileAccess; +using Geopilot.Api.FileAccess; -namespace GeoCop.Api.Validation; +namespace Geopilot.Api.Validation; /// /// Provides methods to validate a . diff --git a/src/GeoCop.Api/Validation/Interlis/IliCheckSettingsResponse.cs b/src/Geopilot.Api/Validation/Interlis/IliCheckSettingsResponse.cs similarity index 85% rename from src/GeoCop.Api/Validation/Interlis/IliCheckSettingsResponse.cs rename to src/Geopilot.Api/Validation/Interlis/IliCheckSettingsResponse.cs index eab5a574..2e8c7bd6 100644 --- a/src/GeoCop.Api/Validation/Interlis/IliCheckSettingsResponse.cs +++ b/src/Geopilot.Api/Validation/Interlis/IliCheckSettingsResponse.cs @@ -1,4 +1,4 @@ -namespace GeoCop.Api.Validation.Interlis; +namespace Geopilot.Api.Validation.Interlis; /// /// Result of a settings query of interlis-check-service at /api/v1/settings. diff --git a/src/GeoCop.Api/Validation/Interlis/IliCheckStatusResponse.cs b/src/Geopilot.Api/Validation/Interlis/IliCheckStatusResponse.cs similarity index 95% rename from src/GeoCop.Api/Validation/Interlis/IliCheckStatusResponse.cs rename to src/Geopilot.Api/Validation/Interlis/IliCheckStatusResponse.cs index 9ee0f269..49a8120a 100644 --- a/src/GeoCop.Api/Validation/Interlis/IliCheckStatusResponse.cs +++ b/src/Geopilot.Api/Validation/Interlis/IliCheckStatusResponse.cs @@ -1,6 +1,6 @@ using System.ComponentModel.DataAnnotations; -namespace GeoCop.Api.Validation.Interlis; +namespace Geopilot.Api.Validation.Interlis; /// /// Result of a status query of interlis-check-service at /api/v1/status/{jobId}. diff --git a/src/GeoCop.Api/Validation/Interlis/IliCheckUploadResponse.cs b/src/Geopilot.Api/Validation/Interlis/IliCheckUploadResponse.cs similarity index 89% rename from src/GeoCop.Api/Validation/Interlis/IliCheckUploadResponse.cs rename to src/Geopilot.Api/Validation/Interlis/IliCheckUploadResponse.cs index f5b5068d..b4928a49 100644 --- a/src/GeoCop.Api/Validation/Interlis/IliCheckUploadResponse.cs +++ b/src/Geopilot.Api/Validation/Interlis/IliCheckUploadResponse.cs @@ -1,4 +1,4 @@ -namespace GeoCop.Api.Validation.Interlis; +namespace Geopilot.Api.Validation.Interlis; /// /// Result of a successful upload to interlis-check-service at /api/v1/upload. diff --git a/src/GeoCop.Api/Validation/Interlis/InterlisValidator.cs b/src/Geopilot.Api/Validation/Interlis/InterlisValidator.cs similarity index 98% rename from src/GeoCop.Api/Validation/Interlis/InterlisValidator.cs rename to src/Geopilot.Api/Validation/Interlis/InterlisValidator.cs index 968000e3..50e13c76 100644 --- a/src/GeoCop.Api/Validation/Interlis/InterlisValidator.cs +++ b/src/Geopilot.Api/Validation/Interlis/InterlisValidator.cs @@ -1,11 +1,11 @@ -using GeoCop.Api.FileAccess; +using Geopilot.Api.FileAccess; using Microsoft.AspNetCore.Mvc; using Microsoft.Extensions.Options; using System.Globalization; using System.Net; using System.Text.Json; -namespace GeoCop.Api.Validation.Interlis; +namespace Geopilot.Api.Validation.Interlis; /// /// Validates an INTERLIS transfer file provided through an . diff --git a/src/GeoCop.Api/Validation/Status.cs b/src/Geopilot.Api/Validation/Status.cs similarity index 92% rename from src/GeoCop.Api/Validation/Status.cs rename to src/Geopilot.Api/Validation/Status.cs index a4405b5a..29d4e4b7 100644 --- a/src/GeoCop.Api/Validation/Status.cs +++ b/src/Geopilot.Api/Validation/Status.cs @@ -1,4 +1,4 @@ -namespace GeoCop.Api.Validation; +namespace Geopilot.Api.Validation; /// /// The validator job statuses. diff --git a/src/GeoCop.Api/Validation/ValidationFailedException.cs b/src/Geopilot.Api/Validation/ValidationFailedException.cs similarity index 97% rename from src/GeoCop.Api/Validation/ValidationFailedException.cs rename to src/Geopilot.Api/Validation/ValidationFailedException.cs index 5b81b118..99fa4713 100644 --- a/src/GeoCop.Api/Validation/ValidationFailedException.cs +++ b/src/Geopilot.Api/Validation/ValidationFailedException.cs @@ -1,6 +1,6 @@ using System.Runtime.Serialization; -namespace GeoCop.Api.Validation; +namespace Geopilot.Api.Validation; /// /// The exception that is thrown when a validation failed. diff --git a/src/GeoCop.Api/Validation/ValidationJob.cs b/src/Geopilot.Api/Validation/ValidationJob.cs similarity index 89% rename from src/GeoCop.Api/Validation/ValidationJob.cs rename to src/Geopilot.Api/Validation/ValidationJob.cs index c41de66a..136d25a8 100644 --- a/src/GeoCop.Api/Validation/ValidationJob.cs +++ b/src/Geopilot.Api/Validation/ValidationJob.cs @@ -1,7 +1,7 @@ -using GeoCop.Api.FileAccess; +using Geopilot.Api.FileAccess; using System.Diagnostics.CodeAnalysis; -namespace GeoCop.Api.Validation; +namespace Geopilot.Api.Validation; /// /// Represents a validation job. diff --git a/src/GeoCop.Api/Validation/ValidationJobStatus.cs b/src/Geopilot.Api/Validation/ValidationJobStatus.cs similarity index 98% rename from src/GeoCop.Api/Validation/ValidationJobStatus.cs rename to src/Geopilot.Api/Validation/ValidationJobStatus.cs index 9d826e24..50c7bf3b 100644 --- a/src/GeoCop.Api/Validation/ValidationJobStatus.cs +++ b/src/Geopilot.Api/Validation/ValidationJobStatus.cs @@ -1,6 +1,6 @@ using System.Diagnostics.CodeAnalysis; -namespace GeoCop.Api.Validation; +namespace Geopilot.Api.Validation; /// /// Represents the status and validator results of a validation job. diff --git a/src/GeoCop.Api/Validation/ValidationRunner.cs b/src/Geopilot.Api/Validation/ValidationRunner.cs similarity index 98% rename from src/GeoCop.Api/Validation/ValidationRunner.cs rename to src/Geopilot.Api/Validation/ValidationRunner.cs index 88b987cc..a6ecb5f7 100644 --- a/src/GeoCop.Api/Validation/ValidationRunner.cs +++ b/src/Geopilot.Api/Validation/ValidationRunner.cs @@ -1,7 +1,7 @@ using System.Collections.Concurrent; using System.Threading.Channels; -namespace GeoCop.Api.Validation; +namespace Geopilot.Api.Validation; /// /// Runs validation jobs in the background and provides access to job status information. diff --git a/src/GeoCop.Api/Validation/ValidationService.cs b/src/Geopilot.Api/Validation/ValidationService.cs similarity index 98% rename from src/GeoCop.Api/Validation/ValidationService.cs rename to src/Geopilot.Api/Validation/ValidationService.cs index 57c3691f..c42dcc02 100644 --- a/src/GeoCop.Api/Validation/ValidationService.cs +++ b/src/Geopilot.Api/Validation/ValidationService.cs @@ -1,6 +1,6 @@ -using GeoCop.Api.FileAccess; +using Geopilot.Api.FileAccess; -namespace GeoCop.Api.Validation; +namespace Geopilot.Api.Validation; /// /// Provides methods to start validation jobs and access status information for a specific job. diff --git a/src/GeoCop.Api/Validation/ValidatorResult.cs b/src/Geopilot.Api/Validation/ValidatorResult.cs similarity index 94% rename from src/GeoCop.Api/Validation/ValidatorResult.cs rename to src/Geopilot.Api/Validation/ValidatorResult.cs index b04f24f1..cba24df7 100644 --- a/src/GeoCop.Api/Validation/ValidatorResult.cs +++ b/src/Geopilot.Api/Validation/ValidatorResult.cs @@ -1,6 +1,6 @@ using System.Diagnostics.CodeAnalysis; -namespace GeoCop.Api.Validation; +namespace Geopilot.Api.Validation; /// /// Represents the result of one validation as part of a validation job. diff --git a/src/GeoCop.Api/appsettings.Development.json b/src/Geopilot.Api/appsettings.Development.json similarity index 100% rename from src/GeoCop.Api/appsettings.Development.json rename to src/Geopilot.Api/appsettings.Development.json diff --git a/src/GeoCop.Api/appsettings.json b/src/Geopilot.Api/appsettings.json similarity index 100% rename from src/GeoCop.Api/appsettings.json rename to src/Geopilot.Api/appsettings.json diff --git a/src/GeoCop.Frontend/.eslintrc.cjs b/src/Geopilot.Frontend/.eslintrc.cjs similarity index 100% rename from src/GeoCop.Frontend/.eslintrc.cjs rename to src/Geopilot.Frontend/.eslintrc.cjs diff --git a/src/GeoCop.Frontend/.gitignore b/src/Geopilot.Frontend/.gitignore similarity index 100% rename from src/GeoCop.Frontend/.gitignore rename to src/Geopilot.Frontend/.gitignore diff --git a/src/GeoCop.Frontend/.vscode/launch.json b/src/Geopilot.Frontend/.vscode/launch.json similarity index 100% rename from src/GeoCop.Frontend/.vscode/launch.json rename to src/Geopilot.Frontend/.vscode/launch.json diff --git a/src/GeoCop.Frontend/GeoCop.Frontend.esproj b/src/Geopilot.Frontend/Geopilot.Frontend.esproj similarity index 100% rename from src/GeoCop.Frontend/GeoCop.Frontend.esproj rename to src/Geopilot.Frontend/Geopilot.Frontend.esproj diff --git a/src/GeoCop.Frontend/aspnetcore-https.js b/src/Geopilot.Frontend/aspnetcore-https.js similarity index 100% rename from src/GeoCop.Frontend/aspnetcore-https.js rename to src/Geopilot.Frontend/aspnetcore-https.js diff --git a/src/GeoCop.Frontend/index.html b/src/Geopilot.Frontend/index.html similarity index 100% rename from src/GeoCop.Frontend/index.html rename to src/Geopilot.Frontend/index.html diff --git a/src/GeoCop.Frontend/nuget.config b/src/Geopilot.Frontend/nuget.config similarity index 100% rename from src/GeoCop.Frontend/nuget.config rename to src/Geopilot.Frontend/nuget.config diff --git a/src/GeoCop.Frontend/package-lock.json b/src/Geopilot.Frontend/package-lock.json similarity index 99% rename from src/GeoCop.Frontend/package-lock.json rename to src/Geopilot.Frontend/package-lock.json index 3b50d12b..5c72abe7 100644 --- a/src/GeoCop.Frontend/package-lock.json +++ b/src/Geopilot.Frontend/package-lock.json @@ -1,11 +1,11 @@ { - "name": "geocop", + "name": "geopilot", "version": "0.0.1", "lockfileVersion": 3, "requires": true, "packages": { "": { - "name": "geocop", + "name": "geopilot", "version": "0.0.1", "dependencies": { "@azure/msal-browser": "^3.5.0", diff --git a/src/GeoCop.Frontend/package.json b/src/Geopilot.Frontend/package.json similarity index 98% rename from src/GeoCop.Frontend/package.json rename to src/Geopilot.Frontend/package.json index 7be47127..2d6a7824 100644 --- a/src/GeoCop.Frontend/package.json +++ b/src/Geopilot.Frontend/package.json @@ -1,5 +1,5 @@ { - "name": "geocop", + "name": "geopilot", "private": true, "version": "0.0.1", "type": "module", diff --git a/src/GeoCop.Frontend/public/app.svg b/src/Geopilot.Frontend/public/app.svg similarity index 100% rename from src/GeoCop.Frontend/public/app.svg rename to src/Geopilot.Frontend/public/app.svg diff --git a/src/GeoCop.Frontend/public/client-settings.json b/src/Geopilot.Frontend/public/client-settings.json similarity index 100% rename from src/GeoCop.Frontend/public/client-settings.json rename to src/Geopilot.Frontend/public/client-settings.json diff --git a/src/GeoCop.Frontend/public/favicon.ico b/src/Geopilot.Frontend/public/favicon.ico similarity index 100% rename from src/GeoCop.Frontend/public/favicon.ico rename to src/Geopilot.Frontend/public/favicon.ico diff --git a/src/GeoCop.Frontend/public/logo.svg b/src/Geopilot.Frontend/public/logo.svg similarity index 100% rename from src/GeoCop.Frontend/public/logo.svg rename to src/Geopilot.Frontend/public/logo.svg diff --git a/src/GeoCop.Frontend/src/About.jsx b/src/Geopilot.Frontend/src/About.jsx similarity index 100% rename from src/GeoCop.Frontend/src/About.jsx rename to src/Geopilot.Frontend/src/About.jsx diff --git a/src/GeoCop.Frontend/src/App.jsx b/src/Geopilot.Frontend/src/App.jsx similarity index 100% rename from src/GeoCop.Frontend/src/App.jsx rename to src/Geopilot.Frontend/src/App.jsx diff --git a/src/GeoCop.Frontend/src/BannerContent.jsx b/src/Geopilot.Frontend/src/BannerContent.jsx similarity index 100% rename from src/GeoCop.Frontend/src/BannerContent.jsx rename to src/Geopilot.Frontend/src/BannerContent.jsx diff --git a/src/GeoCop.Frontend/src/Footer.jsx b/src/Geopilot.Frontend/src/Footer.jsx similarity index 100% rename from src/GeoCop.Frontend/src/Footer.jsx rename to src/Geopilot.Frontend/src/Footer.jsx diff --git a/src/GeoCop.Frontend/src/Header.jsx b/src/Geopilot.Frontend/src/Header.jsx similarity index 100% rename from src/GeoCop.Frontend/src/Header.jsx rename to src/Geopilot.Frontend/src/Header.jsx diff --git a/src/GeoCop.Frontend/src/ModalContent.jsx b/src/Geopilot.Frontend/src/ModalContent.jsx similarity index 100% rename from src/GeoCop.Frontend/src/ModalContent.jsx rename to src/Geopilot.Frontend/src/ModalContent.jsx diff --git a/src/GeoCop.Frontend/src/app.css b/src/Geopilot.Frontend/src/app.css similarity index 100% rename from src/GeoCop.Frontend/src/app.css rename to src/Geopilot.Frontend/src/app.css diff --git a/src/GeoCop.Frontend/src/assets/sms-sh.png b/src/Geopilot.Frontend/src/assets/sms-sh.png similarity index 100% rename from src/GeoCop.Frontend/src/assets/sms-sh.png rename to src/Geopilot.Frontend/src/assets/sms-sh.png diff --git a/src/GeoCop.Frontend/src/auth/AdminTemplate.jsx b/src/Geopilot.Frontend/src/auth/AdminTemplate.jsx similarity index 100% rename from src/GeoCop.Frontend/src/auth/AdminTemplate.jsx rename to src/Geopilot.Frontend/src/auth/AdminTemplate.jsx diff --git a/src/GeoCop.Frontend/src/auth/AuthContext.jsx b/src/Geopilot.Frontend/src/auth/AuthContext.jsx similarity index 100% rename from src/GeoCop.Frontend/src/auth/AuthContext.jsx rename to src/Geopilot.Frontend/src/auth/AuthContext.jsx diff --git a/src/GeoCop.Frontend/src/auth/LoggedInTemplate.jsx b/src/Geopilot.Frontend/src/auth/LoggedInTemplate.jsx similarity index 100% rename from src/GeoCop.Frontend/src/auth/LoggedInTemplate.jsx rename to src/Geopilot.Frontend/src/auth/LoggedInTemplate.jsx diff --git a/src/GeoCop.Frontend/src/auth/LoggedOutTemplate.jsx b/src/Geopilot.Frontend/src/auth/LoggedOutTemplate.jsx similarity index 100% rename from src/GeoCop.Frontend/src/auth/LoggedOutTemplate.jsx rename to src/Geopilot.Frontend/src/auth/LoggedOutTemplate.jsx diff --git a/src/GeoCop.Frontend/src/auth/index.js b/src/Geopilot.Frontend/src/auth/index.js similarity index 100% rename from src/GeoCop.Frontend/src/auth/index.js rename to src/Geopilot.Frontend/src/auth/index.js diff --git a/src/GeoCop.Frontend/src/fonts/Dosis-Bold.ttf b/src/Geopilot.Frontend/src/fonts/Dosis-Bold.ttf similarity index 100% rename from src/GeoCop.Frontend/src/fonts/Dosis-Bold.ttf rename to src/Geopilot.Frontend/src/fonts/Dosis-Bold.ttf diff --git a/src/GeoCop.Frontend/src/fonts/Dosis-ExtraBold.ttf b/src/Geopilot.Frontend/src/fonts/Dosis-ExtraBold.ttf similarity index 100% rename from src/GeoCop.Frontend/src/fonts/Dosis-ExtraBold.ttf rename to src/Geopilot.Frontend/src/fonts/Dosis-ExtraBold.ttf diff --git a/src/GeoCop.Frontend/src/fonts/Dosis-ExtraLight.ttf b/src/Geopilot.Frontend/src/fonts/Dosis-ExtraLight.ttf similarity index 100% rename from src/GeoCop.Frontend/src/fonts/Dosis-ExtraLight.ttf rename to src/Geopilot.Frontend/src/fonts/Dosis-ExtraLight.ttf diff --git a/src/GeoCop.Frontend/src/fonts/Dosis-Light.ttf b/src/Geopilot.Frontend/src/fonts/Dosis-Light.ttf similarity index 100% rename from src/GeoCop.Frontend/src/fonts/Dosis-Light.ttf rename to src/Geopilot.Frontend/src/fonts/Dosis-Light.ttf diff --git a/src/GeoCop.Frontend/src/fonts/Dosis-Medium.ttf b/src/Geopilot.Frontend/src/fonts/Dosis-Medium.ttf similarity index 100% rename from src/GeoCop.Frontend/src/fonts/Dosis-Medium.ttf rename to src/Geopilot.Frontend/src/fonts/Dosis-Medium.ttf diff --git a/src/GeoCop.Frontend/src/fonts/Dosis-Regular.ttf b/src/Geopilot.Frontend/src/fonts/Dosis-Regular.ttf similarity index 100% rename from src/GeoCop.Frontend/src/fonts/Dosis-Regular.ttf rename to src/Geopilot.Frontend/src/fonts/Dosis-Regular.ttf diff --git a/src/GeoCop.Frontend/src/fonts/Dosis-SemiBold.ttf b/src/Geopilot.Frontend/src/fonts/Dosis-SemiBold.ttf similarity index 100% rename from src/GeoCop.Frontend/src/fonts/Dosis-SemiBold.ttf rename to src/Geopilot.Frontend/src/fonts/Dosis-SemiBold.ttf diff --git a/src/GeoCop.Frontend/src/index.css b/src/Geopilot.Frontend/src/index.css similarity index 100% rename from src/GeoCop.Frontend/src/index.css rename to src/Geopilot.Frontend/src/index.css diff --git a/src/GeoCop.Frontend/src/main.jsx b/src/Geopilot.Frontend/src/main.jsx similarity index 100% rename from src/GeoCop.Frontend/src/main.jsx rename to src/Geopilot.Frontend/src/main.jsx diff --git a/src/GeoCop.Frontend/src/pages/admin/Admin.jsx b/src/Geopilot.Frontend/src/pages/admin/Admin.jsx similarity index 100% rename from src/GeoCop.Frontend/src/pages/admin/Admin.jsx rename to src/Geopilot.Frontend/src/pages/admin/Admin.jsx diff --git a/src/GeoCop.Frontend/src/pages/home/Delivery.jsx b/src/Geopilot.Frontend/src/pages/home/Delivery.jsx similarity index 100% rename from src/GeoCop.Frontend/src/pages/home/Delivery.jsx rename to src/Geopilot.Frontend/src/pages/home/Delivery.jsx diff --git a/src/GeoCop.Frontend/src/pages/home/DeliveryContainer.jsx b/src/Geopilot.Frontend/src/pages/home/DeliveryContainer.jsx similarity index 100% rename from src/GeoCop.Frontend/src/pages/home/DeliveryContainer.jsx rename to src/Geopilot.Frontend/src/pages/home/DeliveryContainer.jsx diff --git a/src/GeoCop.Frontend/src/pages/home/FileDropzone.jsx b/src/Geopilot.Frontend/src/pages/home/FileDropzone.jsx similarity index 100% rename from src/GeoCop.Frontend/src/pages/home/FileDropzone.jsx rename to src/Geopilot.Frontend/src/pages/home/FileDropzone.jsx diff --git a/src/GeoCop.Frontend/src/pages/home/Home.jsx b/src/Geopilot.Frontend/src/pages/home/Home.jsx similarity index 100% rename from src/GeoCop.Frontend/src/pages/home/Home.jsx rename to src/Geopilot.Frontend/src/pages/home/Home.jsx diff --git a/src/GeoCop.Frontend/src/pages/home/InfoCarousel.jsx b/src/Geopilot.Frontend/src/pages/home/InfoCarousel.jsx similarity index 100% rename from src/GeoCop.Frontend/src/pages/home/InfoCarousel.jsx rename to src/Geopilot.Frontend/src/pages/home/InfoCarousel.jsx diff --git a/src/GeoCop.Frontend/src/pages/home/Protokoll.jsx b/src/Geopilot.Frontend/src/pages/home/Protokoll.jsx similarity index 100% rename from src/GeoCop.Frontend/src/pages/home/Protokoll.jsx rename to src/Geopilot.Frontend/src/pages/home/Protokoll.jsx diff --git a/src/GeoCop.Frontend/src/pages/home/Title.jsx b/src/Geopilot.Frontend/src/pages/home/Title.jsx similarity index 100% rename from src/GeoCop.Frontend/src/pages/home/Title.jsx rename to src/Geopilot.Frontend/src/pages/home/Title.jsx diff --git a/src/GeoCop.Frontend/src/pages/home/ValidatorResult.jsx b/src/Geopilot.Frontend/src/pages/home/ValidatorResult.jsx similarity index 100% rename from src/GeoCop.Frontend/src/pages/home/ValidatorResult.jsx rename to src/Geopilot.Frontend/src/pages/home/ValidatorResult.jsx diff --git a/src/GeoCop.Frontend/vite.config.js b/src/Geopilot.Frontend/vite.config.js similarity index 100% rename from src/GeoCop.Frontend/vite.config.js rename to src/Geopilot.Frontend/vite.config.js diff --git a/tests/GeoCop.Api.Test/AssemblyInitialize.cs b/tests/Geopilot.Api.Test/AssemblyInitialize.cs similarity index 94% rename from tests/GeoCop.Api.Test/AssemblyInitialize.cs rename to tests/Geopilot.Api.Test/AssemblyInitialize.cs index a17e4dab..dc0e4fc4 100644 --- a/tests/GeoCop.Api.Test/AssemblyInitialize.cs +++ b/tests/Geopilot.Api.Test/AssemblyInitialize.cs @@ -1,7 +1,7 @@ -using GeoCop.Api.FileAccess; +using Geopilot.Api.FileAccess; using Microsoft.Extensions.Configuration; -namespace GeoCop.Api.Test; +namespace Geopilot.Api.Test; [TestClass] public sealed class AssemblyInitialize diff --git a/tests/GeoCop.Api.Test/ControllerExtensions.cs b/tests/Geopilot.Api.Test/ControllerExtensions.cs similarity index 93% rename from tests/GeoCop.Api.Test/ControllerExtensions.cs rename to tests/Geopilot.Api.Test/ControllerExtensions.cs index 3b9d89c5..970bda7a 100644 --- a/tests/GeoCop.Api.Test/ControllerExtensions.cs +++ b/tests/Geopilot.Api.Test/ControllerExtensions.cs @@ -1,10 +1,10 @@ -using GeoCop.Api.Models; +using Geopilot.Api.Models; using Microsoft.AspNetCore.Http; using Microsoft.AspNetCore.Mvc; using Moq; using System.Security.Claims; -namespace GeoCop.Api.Test; +namespace Geopilot.Api.Test; internal static class ControllerExtensions { diff --git a/tests/GeoCop.Api.Test/Controllers/DeliveryControllerTest.cs b/tests/Geopilot.Api.Test/Controllers/DeliveryControllerTest.cs similarity index 98% rename from tests/GeoCop.Api.Test/Controllers/DeliveryControllerTest.cs rename to tests/Geopilot.Api.Test/Controllers/DeliveryControllerTest.cs index 1833f23e..93a4dbfd 100644 --- a/tests/GeoCop.Api.Test/Controllers/DeliveryControllerTest.cs +++ b/tests/Geopilot.Api.Test/Controllers/DeliveryControllerTest.cs @@ -1,8 +1,8 @@ -using GeoCop.Api.Contracts; -using GeoCop.Api.FileAccess; -using GeoCop.Api.Models; -using GeoCop.Api.Test; -using GeoCop.Api.Validation; +using Geopilot.Api.Contracts; +using Geopilot.Api.FileAccess; +using Geopilot.Api.Models; +using Geopilot.Api.Test; +using Geopilot.Api.Validation; using Microsoft.AspNetCore.Http; using Microsoft.AspNetCore.Mvc; using Microsoft.EntityFrameworkCore; @@ -10,7 +10,7 @@ using Moq; using System.Text; -namespace GeoCop.Api.Controllers; +namespace Geopilot.Api.Controllers; [TestClass] public class DeliveryControllerTest diff --git a/tests/GeoCop.Api.Test/Controllers/MandateControllerTest.cs b/tests/Geopilot.Api.Test/Controllers/MandateControllerTest.cs similarity index 97% rename from tests/GeoCop.Api.Test/Controllers/MandateControllerTest.cs rename to tests/Geopilot.Api.Test/Controllers/MandateControllerTest.cs index 8c3fc739..5e21bf10 100644 --- a/tests/GeoCop.Api.Test/Controllers/MandateControllerTest.cs +++ b/tests/Geopilot.Api.Test/Controllers/MandateControllerTest.cs @@ -1,11 +1,11 @@ -using GeoCop.Api.Controllers; -using GeoCop.Api.Models; -using GeoCop.Api.Validation; +using Geopilot.Api.Controllers; +using Geopilot.Api.Models; +using Geopilot.Api.Validation; using Microsoft.AspNetCore.Mvc; using Microsoft.Extensions.Logging; using Moq; -namespace GeoCop.Api.Test.Controllers +namespace Geopilot.Api.Test.Controllers { [TestClass] public class MandateControllerTest diff --git a/tests/GeoCop.Api.Test/Controllers/UserControllerTest.cs b/tests/Geopilot.Api.Test/Controllers/UserControllerTest.cs similarity index 97% rename from tests/GeoCop.Api.Test/Controllers/UserControllerTest.cs rename to tests/Geopilot.Api.Test/Controllers/UserControllerTest.cs index a9b704bd..5a451554 100644 --- a/tests/GeoCop.Api.Test/Controllers/UserControllerTest.cs +++ b/tests/Geopilot.Api.Test/Controllers/UserControllerTest.cs @@ -1,14 +1,14 @@ using Castle.Core.Logging; -using GeoCop.Api.Contracts; -using GeoCop.Api.Models; -using GeoCop.Api.Test; +using Geopilot.Api.Contracts; +using Geopilot.Api.Models; +using Geopilot.Api.Test; using Microsoft.AspNetCore.Http; using Microsoft.Extensions.Logging; using Microsoft.Extensions.Options; using Moq; using System.Security.Claims; -namespace GeoCop.Api.Controllers; +namespace Geopilot.Api.Controllers; [TestClass] public class UserControllerTest diff --git a/tests/GeoCop.Api.Test/Controllers/ValidationControllerTest.cs b/tests/Geopilot.Api.Test/Controllers/ValidationControllerTest.cs similarity index 98% rename from tests/GeoCop.Api.Test/Controllers/ValidationControllerTest.cs rename to tests/Geopilot.Api.Test/Controllers/ValidationControllerTest.cs index fdc9c059..34c31905 100644 --- a/tests/GeoCop.Api.Test/Controllers/ValidationControllerTest.cs +++ b/tests/Geopilot.Api.Test/Controllers/ValidationControllerTest.cs @@ -1,13 +1,13 @@ using Asp.Versioning; -using GeoCop.Api.FileAccess; -using GeoCop.Api.Validation; +using Geopilot.Api.FileAccess; +using Geopilot.Api.Validation; using Microsoft.AspNetCore.Http; using Microsoft.AspNetCore.Mvc; using Microsoft.AspNetCore.StaticFiles; using Microsoft.Extensions.Logging; using Moq; -namespace GeoCop.Api.Controllers; +namespace Geopilot.Api.Controllers; [TestClass] public sealed class ValidationControllerTest diff --git a/tests/GeoCop.Api.Test/Controllers/VersionControllerTest.cs b/tests/Geopilot.Api.Test/Controllers/VersionControllerTest.cs similarity index 88% rename from tests/GeoCop.Api.Test/Controllers/VersionControllerTest.cs rename to tests/Geopilot.Api.Test/Controllers/VersionControllerTest.cs index a6e1fd6b..bf629566 100644 --- a/tests/GeoCop.Api.Test/Controllers/VersionControllerTest.cs +++ b/tests/Geopilot.Api.Test/Controllers/VersionControllerTest.cs @@ -1,4 +1,4 @@ -namespace GeoCop.Api.Controllers; +namespace Geopilot.Api.Controllers; [TestClass] public class VersionControllerTest diff --git a/tests/GeoCop.Api.Test/FileAccess/AssetHandlerTest.cs b/tests/Geopilot.Api.Test/FileAccess/AssetHandlerTest.cs similarity index 97% rename from tests/GeoCop.Api.Test/FileAccess/AssetHandlerTest.cs rename to tests/Geopilot.Api.Test/FileAccess/AssetHandlerTest.cs index 2f16a877..75dacca3 100644 --- a/tests/GeoCop.Api.Test/FileAccess/AssetHandlerTest.cs +++ b/tests/Geopilot.Api.Test/FileAccess/AssetHandlerTest.cs @@ -1,13 +1,13 @@ -using GeoCop.Api.Models; -using GeoCop.Api.Test; -using GeoCop.Api.Validation; +using Geopilot.Api.Models; +using Geopilot.Api.Test; +using Geopilot.Api.Validation; using Microsoft.AspNetCore.StaticFiles; using Microsoft.Extensions.Logging; using Moq; using System.Security.Cryptography; using System.Text; -namespace GeoCop.Api.FileAccess; +namespace Geopilot.Api.FileAccess; [TestClass] public class AssetHandlerTest diff --git a/tests/GeoCop.Api.Test/FileAccess/PhysicalFileProviderTest.cs b/tests/Geopilot.Api.Test/FileAccess/PhysicalFileProviderTest.cs similarity index 92% rename from tests/GeoCop.Api.Test/FileAccess/PhysicalFileProviderTest.cs rename to tests/Geopilot.Api.Test/FileAccess/PhysicalFileProviderTest.cs index e957f3da..ad51ecd2 100644 --- a/tests/GeoCop.Api.Test/FileAccess/PhysicalFileProviderTest.cs +++ b/tests/Geopilot.Api.Test/FileAccess/PhysicalFileProviderTest.cs @@ -1,6 +1,6 @@ -using GeoCop.Api.Test; +using Geopilot.Api.Test; -namespace GeoCop.Api.FileAccess; +namespace Geopilot.Api.FileAccess; [TestClass] public sealed class PhysicalFileProviderTest diff --git a/tests/GeoCop.Api.Test/GeoCop.Api.Test.csproj b/tests/Geopilot.Api.Test/Geopilot.Api.Test.csproj similarity index 89% rename from tests/GeoCop.Api.Test/GeoCop.Api.Test.csproj rename to tests/Geopilot.Api.Test/Geopilot.Api.Test.csproj index be8f7bb2..e60579d7 100644 --- a/tests/GeoCop.Api.Test/GeoCop.Api.Test.csproj +++ b/tests/Geopilot.Api.Test/Geopilot.Api.Test.csproj @@ -16,7 +16,7 @@ - + diff --git a/tests/GeoCop.Api.Test/GlobalUsings.cs b/tests/Geopilot.Api.Test/GlobalUsings.cs similarity index 100% rename from tests/GeoCop.Api.Test/GlobalUsings.cs rename to tests/Geopilot.Api.Test/GlobalUsings.cs diff --git a/tests/GeoCop.Api.Test/StacServices/StacConverterTest.cs b/tests/Geopilot.Api.Test/StacServices/StacConverterTest.cs similarity index 99% rename from tests/GeoCop.Api.Test/StacServices/StacConverterTest.cs rename to tests/Geopilot.Api.Test/StacServices/StacConverterTest.cs index 299bf031..a856c78d 100644 --- a/tests/GeoCop.Api.Test/StacServices/StacConverterTest.cs +++ b/tests/Geopilot.Api.Test/StacServices/StacConverterTest.cs @@ -1,4 +1,4 @@ -using GeoCop.Api.Models; +using Geopilot.Api.Models; using Microsoft.AspNetCore.StaticFiles; using Moq; using NetTopologySuite.Geometries; @@ -7,7 +7,7 @@ using Stac.Api.Models; using Stac.Api.WebApi.Services; -namespace GeoCop.Api.StacServices; +namespace Geopilot.Api.StacServices; [TestClass] public class StacConverterTest diff --git a/tests/GeoCop.Api.Test/TestDatabaseFixture.cs b/tests/Geopilot.Api.Test/TestDatabaseFixture.cs similarity index 98% rename from tests/GeoCop.Api.Test/TestDatabaseFixture.cs rename to tests/Geopilot.Api.Test/TestDatabaseFixture.cs index 119b987f..50b8882f 100644 --- a/tests/GeoCop.Api.Test/TestDatabaseFixture.cs +++ b/tests/Geopilot.Api.Test/TestDatabaseFixture.cs @@ -1,6 +1,6 @@ using Microsoft.EntityFrameworkCore; -namespace GeoCop.Api.Test; +namespace Geopilot.Api.Test; public class TestDatabaseFixture { diff --git a/tests/GeoCop.Api.Test/Validation/ValidationJobStatusTest.cs b/tests/Geopilot.Api.Test/Validation/ValidationJobStatusTest.cs similarity index 97% rename from tests/GeoCop.Api.Test/Validation/ValidationJobStatusTest.cs rename to tests/Geopilot.Api.Test/Validation/ValidationJobStatusTest.cs index 1d4d413a..c5b01a61 100644 --- a/tests/GeoCop.Api.Test/Validation/ValidationJobStatusTest.cs +++ b/tests/Geopilot.Api.Test/Validation/ValidationJobStatusTest.cs @@ -1,4 +1,4 @@ -namespace GeoCop.Api.Validation; +namespace Geopilot.Api.Validation; [TestClass] public class ValidationJobStatusTest diff --git a/tests/GeoCop.Api.Test/Validation/ValidationServiceTest.cs b/tests/Geopilot.Api.Test/Validation/ValidationServiceTest.cs similarity index 96% rename from tests/GeoCop.Api.Test/Validation/ValidationServiceTest.cs rename to tests/Geopilot.Api.Test/Validation/ValidationServiceTest.cs index d601e780..da148fd6 100644 --- a/tests/GeoCop.Api.Test/Validation/ValidationServiceTest.cs +++ b/tests/Geopilot.Api.Test/Validation/ValidationServiceTest.cs @@ -1,8 +1,8 @@ -using GeoCop.Api.FileAccess; +using Geopilot.Api.FileAccess; using Microsoft.EntityFrameworkCore; using Moq; -namespace GeoCop.Api.Validation; +namespace Geopilot.Api.Validation; [TestClass] public class ValidationServiceTest