diff --git a/.github/workflows/build.yml b/.github/workflows/build.yml index c0e72d0..c6dbe4f 100644 --- a/.github/workflows/build.yml +++ b/.github/workflows/build.yml @@ -23,66 +23,66 @@ jobs: runs-on: ubuntu-latest steps: - - uses: actions/checkout@v3 - name: Checkout code + - uses: actions/checkout@v3 + name: Checkout code - - name: Cache NuGet packages - uses: actions/cache@v3 - with: - path: ~/.nuget/packages - key: ${{ runner.os }}-nuget-${{ hashFiles('**/packages.lock.json') }} - restore-keys: | - ${{ runner.os }}-nuget- + - name: Cache NuGet packages + uses: actions/cache@v3 + with: + path: ~/.nuget/packages + key: ${{ runner.os }}-nuget-${{ hashFiles('**/packages.lock.json') }} + restore-keys: | + ${{ runner.os }}-nuget- - - name: Install Node & cache npm packages - uses: actions/setup-node@v3 - with: - node-version: '18.x' - cache: 'npm' - cache-dependency-path: src/Web/ClientApp/package-lock.json + - name: Install Node & cache npm packages + uses: actions/setup-node@v3 + with: + node-version: '18.x' + cache: 'npm' + cache-dependency-path: src/Web/ClientApp/package-lock.json - - name: Install .NET - uses: actions/setup-dotnet@v3 + - name: Install .NET + uses: actions/setup-dotnet@v3 - - name: Restore solution - run: dotnet restore + - name: Restore solution + run: dotnet restore - - name: Build solution - run: dotnet build --no-restore --configuration Release - - - name: Test solution - run: dotnet test --no-build --configuration Release --filter "FullyQualifiedName!~AcceptanceTests" + - name: Build solution + run: dotnet build --no-restore --configuration Release - - name: Publish website - if: ${{ inputs.build-artifacts == true }} - run: | - dotnet publish --configuration Release --runtime win-x86 --self-contained --output ./publish - cd publish - zip -r ./publish.zip . - working-directory: ./src/Web/ + - name: Test solution + run: dotnet test --no-build --configuration Release --filter "FullyQualifiedName!~AcceptanceTests" - - name: Upload website artifact (website) - if: ${{ inputs.build-artifacts == true }} - uses: actions/upload-artifact@v3 - with: - name: website - path: ./src/Web/publish/publish.zip - if-no-files-found: error - - - name: Create EF Core migrations bundle - if: ${{ inputs.build-artifacts == true }} - run: | - dotnet new tool-manifest - dotnet tool install dotnet-ef - dotnet ef migrations bundle --configuration Release -p ./src/Infrastructure/ -s ./src/Web/ -o efbundle.exe - zip -r ./efbundle.zip efbundle.exe - env: - SkipNSwag: True + - name: Publish website + if: ${{ inputs.build-artifacts == true }} + run: | + dotnet publish --configuration Release --runtime win-x86 --self-contained --output ./publish + cd publish + zip -r ./publish.zip . + working-directory: ./src/Web/ - - name: Upload EF Core migrations bundle artifact (efbundle) - if: ${{ inputs.build-artifacts == true }} - uses: actions/upload-artifact@v3 - with: - name: efbundle - path: ./efbundle.zip - if-no-files-found: error + - name: Upload website artifact (website) + if: ${{ inputs.build-artifacts == true }} + uses: actions/upload-artifact@v3 + with: + name: website + path: ./src/Web/publish/publish.zip + if-no-files-found: error + + - name: Create EF Core migrations bundle + if: ${{ inputs.build-artifacts == true }} + run: | + dotnet new tool-manifest + dotnet tool install dotnet-ef + dotnet ef migrations bundle --configuration Release -p ./src/Infrastructure/ -s ./src/Web/ -o efbundle.exe + zip -r ./efbundle.zip efbundle.exe + env: + SkipNSwag: True + + - name: Upload EF Core migrations bundle artifact (efbundle) + if: ${{ inputs.build-artifacts == true }} + uses: actions/upload-artifact@v3 + with: + name: efbundle + path: ./efbundle.zip + if-no-files-found: error diff --git a/.github/workflows/cicd.yml b/.github/workflows/cicd.yml index ce67ab4..4a832a3 100644 --- a/.github/workflows/cicd.yml +++ b/.github/workflows/cicd.yml @@ -1,6 +1,6 @@ name: CICD -on: +on: push: branches: [ main ] paths-ignore: diff --git a/.github/workflows/deploy.yml b/.github/workflows/deploy.yml index d9b02a8..80d1301 100644 --- a/.github/workflows/deploy.yml +++ b/.github/workflows/deploy.yml @@ -14,49 +14,49 @@ permissions: jobs: validate: - runs-on: ubuntu-latest - environment: ${{ inputs.environmentName }} - - steps: - - - uses: actions/checkout@v3 - name: Checkout code - - - uses: azure/login@v1 - name: Login to Azure - with: - client-id: ${{ vars.AZURE_CLIENT_ID }} - tenant-id: ${{ vars.AZURE_TENANT_ID }} - subscription-id: ${{ vars.AZURE_SUBSCRIPTION_ID }} - - - if: inputs.environmentName == 'Development' - uses: azure/arm-deploy@v1 - name: Run preflight validation - with: - deploymentName: ${{ github.run_number }} - resourceGroupName: ${{ vars.AZURE_RESOURCE_GROUP_NAME }} - template: ./.azure/bicep/main.bicep - parameters: > - environmentName=${{ inputs.environmentName }} - sqlAdministratorUsername=${{ vars.AZURE_SQL_ADMINISTRATOR_USERNAME }} - sqlAdministratorPassword=${{ secrets.AZURE_SQL_ADMINISTRATOR_PASSWORD }} - projectName=${{ vars.PROJECT_NAME }} - deploymentMode: Validate + runs-on: ubuntu-latest + environment: ${{ inputs.environmentName }} + + steps: - - if: inputs.environmentName != 'Development' - uses: azure/arm-deploy@v1 - name: Run what-if - with: - failOnStdErr: false - resourceGroupName: ${{ vars.AZURE_RESOURCE_GROUP_NAME }} - template: ./.azure/bicep/main.bicep - parameters: > - environmentName=${{ inputs.environmentName }} - sqlAdministratorUsername=${{ vars.AZURE_SQL_ADMINISTRATOR_USERNAME }} - sqlAdministratorPassword=${{ secrets.AZURE_SQL_ADMINISTRATOR_PASSWORD }} - projectName=${{ vars.PROJECT_NAME }} - additionalArguments: --what-if - + - uses: actions/checkout@v3 + name: Checkout code + + - uses: azure/login@v1 + name: Login to Azure + with: + client-id: ${{ vars.AZURE_CLIENT_ID }} + tenant-id: ${{ vars.AZURE_TENANT_ID }} + subscription-id: ${{ vars.AZURE_SUBSCRIPTION_ID }} + + - if: inputs.environmentName == 'Development' + uses: azure/arm-deploy@v1 + name: Run preflight validation + with: + deploymentName: ${{ github.run_number }} + resourceGroupName: ${{ vars.AZURE_RESOURCE_GROUP_NAME }} + template: ./.azure/bicep/main.bicep + parameters: > + environmentName=${{ inputs.environmentName }} + sqlAdministratorUsername=${{ vars.AZURE_SQL_ADMINISTRATOR_USERNAME }} + sqlAdministratorPassword=${{ secrets.AZURE_SQL_ADMINISTRATOR_PASSWORD }} + projectName=${{ vars.PROJECT_NAME }} + deploymentMode: Validate + + - if: inputs.environmentName != 'Development' + uses: azure/arm-deploy@v1 + name: Run what-if + with: + failOnStdErr: false + resourceGroupName: ${{ vars.AZURE_RESOURCE_GROUP_NAME }} + template: ./.azure/bicep/main.bicep + parameters: > + environmentName=${{ inputs.environmentName }} + sqlAdministratorUsername=${{ vars.AZURE_SQL_ADMINISTRATOR_USERNAME }} + sqlAdministratorPassword=${{ secrets.AZURE_SQL_ADMINISTRATOR_PASSWORD }} + projectName=${{ vars.PROJECT_NAME }} + additionalArguments: --what-if + deploy: needs: [ validate ] runs-on: ubuntu-latest @@ -64,44 +64,44 @@ jobs: steps: - - uses: actions/checkout@v3 - name: Checkout code - - - uses: actions/download-artifact@v3 - name: Download artifacts - - - name: Install .NET - uses: actions/setup-dotnet@v3 - - - uses: azure/login@v1 - name: Login to Azure - with: - client-id: ${{ vars.AZURE_CLIENT_ID }} - tenant-id: ${{ vars.AZURE_TENANT_ID }} - subscription-id: ${{ vars.AZURE_SUBSCRIPTION_ID }} - - - uses: azure/arm-deploy@v1 - id: deploy - name: Deploy infrastructure - with: - failOnStdErr: false - deploymentName: ${{ github.run_number }} - resourceGroupName: ${{ vars.AZURE_RESOURCE_GROUP_NAME }} - template: ./.azure/bicep/main.bicep - parameters: > - environmentName=${{ inputs.environmentName }} - sqlAdministratorUsername=${{ vars.AZURE_SQL_ADMINISTRATOR_USERNAME }} - sqlAdministratorPassword=${{ secrets.AZURE_SQL_ADMINISTRATOR_PASSWORD }} - projectName=${{ vars.PROJECT_NAME }} - - - name: Initialise database - run: | - unzip -o ./efbundle/efbundle.zip - echo '{ "ConnectionStrings": { "DefaultConnection": "" } }' > appsettings.json - ./efbundle.exe --connection "Server=${{ steps.deploy.outputs.sqlServerFullyQualifiedDomainName }};Initial Catalog=${{ steps.deploy.outputs.sqlDatabaseName }};Persist Security Info=False;User ID=${{ vars.AZURE_SQL_ADMINISTRATOR_USERNAME }};Password=${{ secrets.AZURE_SQL_ADMINISTRATOR_PASSWORD }};MultipleActiveResultSets=False;Encrypt=True;TrustServerCertificate=False;Connection Timeout=30;" --verbose - - - uses: azure/webapps-deploy@v2 - name: Deploy website - with: - app-name: ${{ steps.deploy.outputs.appServiceAppName }} - package: website/publish.zip + - uses: actions/checkout@v3 + name: Checkout code + + - uses: actions/download-artifact@v3 + name: Download artifacts + + - name: Install .NET + uses: actions/setup-dotnet@v3 + + - uses: azure/login@v1 + name: Login to Azure + with: + client-id: ${{ vars.AZURE_CLIENT_ID }} + tenant-id: ${{ vars.AZURE_TENANT_ID }} + subscription-id: ${{ vars.AZURE_SUBSCRIPTION_ID }} + + - uses: azure/arm-deploy@v1 + id: deploy + name: Deploy infrastructure + with: + failOnStdErr: false + deploymentName: ${{ github.run_number }} + resourceGroupName: ${{ vars.AZURE_RESOURCE_GROUP_NAME }} + template: ./.azure/bicep/main.bicep + parameters: > + environmentName=${{ inputs.environmentName }} + sqlAdministratorUsername=${{ vars.AZURE_SQL_ADMINISTRATOR_USERNAME }} + sqlAdministratorPassword=${{ secrets.AZURE_SQL_ADMINISTRATOR_PASSWORD }} + projectName=${{ vars.PROJECT_NAME }} + + - name: Initialise database + run: | + unzip -o ./efbundle/efbundle.zip + echo '{ "ConnectionStrings": { "DefaultConnection": "" } }' > appsettings.json + ./efbundle.exe --connection "Server=${{ steps.deploy.outputs.sqlServerFullyQualifiedDomainName }};Initial Catalog=${{ steps.deploy.outputs.sqlDatabaseName }};Persist Security Info=False;User ID=${{ vars.AZURE_SQL_ADMINISTRATOR_USERNAME }};Password=${{ secrets.AZURE_SQL_ADMINISTRATOR_PASSWORD }};MultipleActiveResultSets=False;Encrypt=True;TrustServerCertificate=False;Connection Timeout=30;" --verbose + + - uses: azure/webapps-deploy@v2 + name: Deploy website + with: + app-name: ${{ steps.deploy.outputs.appServiceAppName }} + package: website/publish.zip diff --git a/.idea/.idea.skillSphere/.idea/dataSources.xml b/.idea/.idea.skillSphere/.idea/dataSources.xml new file mode 100644 index 0000000..5483c5b --- /dev/null +++ b/.idea/.idea.skillSphere/.idea/dataSources.xml @@ -0,0 +1,12 @@ + + + + + sqlserver.jb + true + com.jetbrains.jdbc.sqlserver.SqlServerDriver + Server=localhost,1433 + $ProjectFileDir$ + + + \ No newline at end of file diff --git a/Directory.Packages.props b/Directory.Packages.props index e51ffbc..89d8f58 100644 --- a/Directory.Packages.props +++ b/Directory.Packages.props @@ -4,45 +4,39 @@ true - + - + - + - + - - - - + + + + - - - - - - - all - runtime; build; native; contentfiles; analyzers; buildtransitive - - - - - + + + + + + + + + + - - all - runtime; build; native; contentfiles; analyzers; buildtransitive - - - + + + - + - + diff --git a/LICENSE b/LICENSE deleted file mode 100644 index 9ead05e..0000000 --- a/LICENSE +++ /dev/null @@ -1,21 +0,0 @@ -MIT License - -Copyright (c) 2023 Tomas Sirotek - -Permission is hereby granted, free of charge, to any person obtaining a copy -of this software and associated documentation files (the "Software"), to deal -in the Software without restriction, including without limitation the rights -to use, copy, modify, merge, publish, distribute, sublicense, and/or sell -copies of the Software, and to permit persons to whom the Software is -furnished to do so, subject to the following conditions: - -The above copyright notice and this permission notice shall be included in all -copies or substantial portions of the Software. - -THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR -IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY, -FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE -AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER -LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, -OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE -SOFTWARE. diff --git a/README.md b/README.md index 7a5ee4d..c0c1ed2 100644 --- a/README.md +++ b/README.md @@ -1,6 +1,6 @@ -# skillSphere +# testSphere -The project was generated using the [Clean.Architecture.Solution.Template](https://github.com/jasontaylordev/skillSphere) version 8.0.0-preview.7.2. +The project was generated using the [Clean.Architecture.Solution.Template](https://github.com/jasontaylordev/testSphere) version 8.0.0. ## Build @@ -42,7 +42,7 @@ dotnet new ca-usecase -n GetTodos -fn TodoLists -ut query -rt TodosVm If you encounter the error *"No templates or subcommands found matching: 'ca-usecase'."*, install the template and try again: ```bash -dotnet new install Clean.Architecture.Solution.Template::8.0.0-preview.7.2 +dotnet new install Clean.Architecture.Solution.Template::8.0.0 ``` ## Test @@ -68,4 +68,4 @@ dotnet test ``` ## Help -To learn more about the template go to the [project website](https://github.com/JasonTaylorDev/skillSphere). Here you can find additional guidance, request new features, report a bug, and discuss the template with other users. \ No newline at end of file +To learn more about the template go to the [project website](https://github.com/JasonTaylorDev/testSphere). Here you can find additional guidance, request new features, report a bug, and discuss the template with other users. \ No newline at end of file diff --git a/global.json b/global.json index 74f7955..ae5b348 100644 --- a/global.json +++ b/global.json @@ -1,7 +1,6 @@ { "sdk": { - "version": "8.0.100-preview.7.23376.3", - "rollForward": "latestMajor", - "allowPrerelease": true + "version": "8.0.100", + "rollForward": "latestMinor" } } \ No newline at end of file diff --git a/src/Application/Application.csproj b/src/Application/Application.csproj index ad9f279..3d29598 100644 --- a/src/Application/Application.csproj +++ b/src/Application/Application.csproj @@ -1,8 +1,8 @@  - skillSphere.Application - skillSphere.Application + testSphere.Application + testSphere.Application diff --git a/src/Application/Common/Behaviours/AuthorizationBehaviour.cs b/src/Application/Common/Behaviours/AuthorizationBehaviour.cs index c4eeb4b..06a6b5d 100644 --- a/src/Application/Common/Behaviours/AuthorizationBehaviour.cs +++ b/src/Application/Common/Behaviours/AuthorizationBehaviour.cs @@ -1,9 +1,9 @@ using System.Reflection; -using skillSphere.Application.Common.Exceptions; -using skillSphere.Application.Common.Interfaces; -using skillSphere.Application.Common.Security; +using testSphere.Application.Common.Exceptions; +using testSphere.Application.Common.Interfaces; +using testSphere.Application.Common.Security; -namespace skillSphere.Application.Common.Behaviours; +namespace testSphere.Application.Common.Behaviours; public class AuthorizationBehaviour : IPipelineBehavior where TRequest : notnull { diff --git a/src/Application/Common/Behaviours/LoggingBehaviour.cs b/src/Application/Common/Behaviours/LoggingBehaviour.cs index 2ec0a15..feb362a 100644 --- a/src/Application/Common/Behaviours/LoggingBehaviour.cs +++ b/src/Application/Common/Behaviours/LoggingBehaviour.cs @@ -1,8 +1,8 @@ -using skillSphere.Application.Common.Interfaces; +using testSphere.Application.Common.Interfaces; using MediatR.Pipeline; using Microsoft.Extensions.Logging; -namespace skillSphere.Application.Common.Behaviours; +namespace testSphere.Application.Common.Behaviours; public class LoggingBehaviour : IRequestPreProcessor where TRequest : notnull { @@ -28,7 +28,7 @@ public async Task Process(TRequest request, CancellationToken cancellationToken) userName = await _identityService.GetUserNameAsync(userId); } - _logger.LogInformation("skillSphere Request: {Name} {@UserId} {@UserName} {@Request}", + _logger.LogInformation("testSphere Request: {Name} {@UserId} {@UserName} {@Request}", requestName, userId, userName, request); } } diff --git a/src/Application/Common/Behaviours/PerformanceBehaviour.cs b/src/Application/Common/Behaviours/PerformanceBehaviour.cs index 2826b5d..5a4c8bc 100644 --- a/src/Application/Common/Behaviours/PerformanceBehaviour.cs +++ b/src/Application/Common/Behaviours/PerformanceBehaviour.cs @@ -1,8 +1,8 @@ using System.Diagnostics; -using skillSphere.Application.Common.Interfaces; +using testSphere.Application.Common.Interfaces; using Microsoft.Extensions.Logging; -namespace skillSphere.Application.Common.Behaviours; +namespace testSphere.Application.Common.Behaviours; public class PerformanceBehaviour : IPipelineBehavior where TRequest : notnull { @@ -44,7 +44,7 @@ public async Task Handle(TRequest request, RequestHandlerDelegate : IPipelineBehavior where TRequest : notnull { @@ -21,7 +21,7 @@ public async Task Handle(TRequest request, RequestHandlerDelegate : IPipelineBehavior where TRequest : notnull diff --git a/src/Application/Common/Exceptions/ForbiddenAccessException.cs b/src/Application/Common/Exceptions/ForbiddenAccessException.cs index dda62c4..3067fbd 100644 --- a/src/Application/Common/Exceptions/ForbiddenAccessException.cs +++ b/src/Application/Common/Exceptions/ForbiddenAccessException.cs @@ -1,4 +1,4 @@ -namespace skillSphere.Application.Common.Exceptions; +namespace testSphere.Application.Common.Exceptions; public class ForbiddenAccessException : Exception { diff --git a/src/Application/Common/Exceptions/ValidationException.cs b/src/Application/Common/Exceptions/ValidationException.cs index 6dd8380..90de356 100644 --- a/src/Application/Common/Exceptions/ValidationException.cs +++ b/src/Application/Common/Exceptions/ValidationException.cs @@ -1,6 +1,6 @@ using FluentValidation.Results; -namespace skillSphere.Application.Common.Exceptions; +namespace testSphere.Application.Common.Exceptions; public class ValidationException : Exception { diff --git a/src/Application/Common/Interfaces/IApplicationDbContext.cs b/src/Application/Common/Interfaces/IApplicationDbContext.cs index 64d2a3c..d4d17e0 100644 --- a/src/Application/Common/Interfaces/IApplicationDbContext.cs +++ b/src/Application/Common/Interfaces/IApplicationDbContext.cs @@ -1,6 +1,6 @@ -using skillSphere.Domain.Entities; +using testSphere.Domain.Entities; -namespace skillSphere.Application.Common.Interfaces; +namespace testSphere.Application.Common.Interfaces; public interface IApplicationDbContext { diff --git a/src/Application/Common/Interfaces/IIdentityService.cs b/src/Application/Common/Interfaces/IIdentityService.cs index 649c3a7..9deb335 100644 --- a/src/Application/Common/Interfaces/IIdentityService.cs +++ b/src/Application/Common/Interfaces/IIdentityService.cs @@ -1,6 +1,6 @@ -using skillSphere.Application.Common.Models; +using testSphere.Application.Common.Models; -namespace skillSphere.Application.Common.Interfaces; +namespace testSphere.Application.Common.Interfaces; public interface IIdentityService { diff --git a/src/Application/Common/Interfaces/IUser.cs b/src/Application/Common/Interfaces/IUser.cs index bb4fba5..db39ee9 100644 --- a/src/Application/Common/Interfaces/IUser.cs +++ b/src/Application/Common/Interfaces/IUser.cs @@ -1,4 +1,4 @@ -namespace skillSphere.Application.Common.Interfaces; +namespace testSphere.Application.Common.Interfaces; public interface IUser { diff --git a/src/Application/Common/Mappings/MappingExtensions.cs b/src/Application/Common/Mappings/MappingExtensions.cs index 0596ef5..138a95d 100644 --- a/src/Application/Common/Mappings/MappingExtensions.cs +++ b/src/Application/Common/Mappings/MappingExtensions.cs @@ -1,6 +1,6 @@ -using skillSphere.Application.Common.Models; +using testSphere.Application.Common.Models; -namespace skillSphere.Application.Common.Mappings; +namespace testSphere.Application.Common.Mappings; public static class MappingExtensions { diff --git a/src/Application/Common/Models/LookupDto.cs b/src/Application/Common/Models/LookupDto.cs index 4501bd6..f926766 100644 --- a/src/Application/Common/Models/LookupDto.cs +++ b/src/Application/Common/Models/LookupDto.cs @@ -1,6 +1,6 @@ -using skillSphere.Domain.Entities; +using testSphere.Domain.Entities; -namespace skillSphere.Application.Common.Models; +namespace testSphere.Application.Common.Models; public class LookupDto { diff --git a/src/Application/Common/Models/PaginatedList.cs b/src/Application/Common/Models/PaginatedList.cs index 3c8a635..718de70 100644 --- a/src/Application/Common/Models/PaginatedList.cs +++ b/src/Application/Common/Models/PaginatedList.cs @@ -1,4 +1,4 @@ -namespace skillSphere.Application.Common.Models; +namespace testSphere.Application.Common.Models; public class PaginatedList { diff --git a/src/Application/Common/Models/Result.cs b/src/Application/Common/Models/Result.cs index 8000493..227ed67 100644 --- a/src/Application/Common/Models/Result.cs +++ b/src/Application/Common/Models/Result.cs @@ -1,4 +1,4 @@ -namespace skillSphere.Application.Common.Models; +namespace testSphere.Application.Common.Models; public class Result { diff --git a/src/Application/Common/Security/AuthorizeAttribute.cs b/src/Application/Common/Security/AuthorizeAttribute.cs index 9307432..22f59f4 100644 --- a/src/Application/Common/Security/AuthorizeAttribute.cs +++ b/src/Application/Common/Security/AuthorizeAttribute.cs @@ -1,4 +1,4 @@ -namespace skillSphere.Application.Common.Security; +namespace testSphere.Application.Common.Security; /// /// Specifies the class this attribute is applied to requires authorization. diff --git a/src/Application/DependencyInjection.cs b/src/Application/DependencyInjection.cs index 43f89fb..59448f3 100644 --- a/src/Application/DependencyInjection.cs +++ b/src/Application/DependencyInjection.cs @@ -1,5 +1,5 @@ using System.Reflection; -using skillSphere.Application.Common.Behaviours; +using testSphere.Application.Common.Behaviours; namespace Microsoft.Extensions.DependencyInjection; diff --git a/src/Application/TodoItems/Commands/CreateTodoItem/CreateTodoItem.cs b/src/Application/TodoItems/Commands/CreateTodoItem/CreateTodoItem.cs index 811dff3..b06292b 100644 --- a/src/Application/TodoItems/Commands/CreateTodoItem/CreateTodoItem.cs +++ b/src/Application/TodoItems/Commands/CreateTodoItem/CreateTodoItem.cs @@ -1,8 +1,8 @@ -using skillSphere.Application.Common.Interfaces; -using skillSphere.Domain.Entities; -using skillSphere.Domain.Events; +using testSphere.Application.Common.Interfaces; +using testSphere.Domain.Entities; +using testSphere.Domain.Events; -namespace skillSphere.Application.TodoItems.Commands.CreateTodoItem; +namespace testSphere.Application.TodoItems.Commands.CreateTodoItem; public record CreateTodoItemCommand : IRequest { diff --git a/src/Application/TodoItems/Commands/CreateTodoItem/CreateTodoItemCommandValidator.cs b/src/Application/TodoItems/Commands/CreateTodoItem/CreateTodoItemCommandValidator.cs index 7b4b42c..ab5214b 100644 --- a/src/Application/TodoItems/Commands/CreateTodoItem/CreateTodoItemCommandValidator.cs +++ b/src/Application/TodoItems/Commands/CreateTodoItem/CreateTodoItemCommandValidator.cs @@ -1,4 +1,4 @@ -namespace skillSphere.Application.TodoItems.Commands.CreateTodoItem; +namespace testSphere.Application.TodoItems.Commands.CreateTodoItem; public class CreateTodoItemCommandValidator : AbstractValidator { diff --git a/src/Application/TodoItems/Commands/DeleteTodoItem/DeleteTodoItem.cs b/src/Application/TodoItems/Commands/DeleteTodoItem/DeleteTodoItem.cs index 4a591b6..2641609 100644 --- a/src/Application/TodoItems/Commands/DeleteTodoItem/DeleteTodoItem.cs +++ b/src/Application/TodoItems/Commands/DeleteTodoItem/DeleteTodoItem.cs @@ -1,7 +1,7 @@ -using skillSphere.Application.Common.Interfaces; -using skillSphere.Domain.Events; +using testSphere.Application.Common.Interfaces; +using testSphere.Domain.Events; -namespace skillSphere.Application.TodoItems.Commands.DeleteTodoItem; +namespace testSphere.Application.TodoItems.Commands.DeleteTodoItem; public record DeleteTodoItemCommand(int Id) : IRequest; diff --git a/src/Application/TodoItems/Commands/UpdateTodoItem/UpdateTodoItem.cs b/src/Application/TodoItems/Commands/UpdateTodoItem/UpdateTodoItem.cs index e99d5c4..fc734c0 100644 --- a/src/Application/TodoItems/Commands/UpdateTodoItem/UpdateTodoItem.cs +++ b/src/Application/TodoItems/Commands/UpdateTodoItem/UpdateTodoItem.cs @@ -1,6 +1,6 @@ -using skillSphere.Application.Common.Interfaces; +using testSphere.Application.Common.Interfaces; -namespace skillSphere.Application.TodoItems.Commands.UpdateTodoItem; +namespace testSphere.Application.TodoItems.Commands.UpdateTodoItem; public record UpdateTodoItemCommand : IRequest { diff --git a/src/Application/TodoItems/Commands/UpdateTodoItem/UpdateTodoItemCommandValidator.cs b/src/Application/TodoItems/Commands/UpdateTodoItem/UpdateTodoItemCommandValidator.cs index 6856139..2a85d2f 100644 --- a/src/Application/TodoItems/Commands/UpdateTodoItem/UpdateTodoItemCommandValidator.cs +++ b/src/Application/TodoItems/Commands/UpdateTodoItem/UpdateTodoItemCommandValidator.cs @@ -1,4 +1,4 @@ -namespace skillSphere.Application.TodoItems.Commands.UpdateTodoItem; +namespace testSphere.Application.TodoItems.Commands.UpdateTodoItem; public class UpdateTodoItemCommandValidator : AbstractValidator { diff --git a/src/Application/TodoItems/Commands/UpdateTodoItemDetail/UpdateTodoItemDetail.cs b/src/Application/TodoItems/Commands/UpdateTodoItemDetail/UpdateTodoItemDetail.cs index ad91a74..7297b69 100644 --- a/src/Application/TodoItems/Commands/UpdateTodoItemDetail/UpdateTodoItemDetail.cs +++ b/src/Application/TodoItems/Commands/UpdateTodoItemDetail/UpdateTodoItemDetail.cs @@ -1,7 +1,7 @@ -using skillSphere.Application.Common.Interfaces; -using skillSphere.Domain.Enums; +using testSphere.Application.Common.Interfaces; +using testSphere.Domain.Enums; -namespace skillSphere.Application.TodoItems.Commands.UpdateTodoItemDetail; +namespace testSphere.Application.TodoItems.Commands.UpdateTodoItemDetail; public record UpdateTodoItemDetailCommand : IRequest { diff --git a/src/Application/TodoItems/EventHandlers/TodoItemCompletedEventHandler.cs b/src/Application/TodoItems/EventHandlers/TodoItemCompletedEventHandler.cs index 9be29dd..bb5e542 100644 --- a/src/Application/TodoItems/EventHandlers/TodoItemCompletedEventHandler.cs +++ b/src/Application/TodoItems/EventHandlers/TodoItemCompletedEventHandler.cs @@ -1,7 +1,7 @@ -using skillSphere.Domain.Events; +using testSphere.Domain.Events; using Microsoft.Extensions.Logging; -namespace skillSphere.Application.TodoItems.EventHandlers; +namespace testSphere.Application.TodoItems.EventHandlers; public class TodoItemCompletedEventHandler : INotificationHandler { @@ -14,7 +14,7 @@ public TodoItemCompletedEventHandler(ILogger logg public Task Handle(TodoItemCompletedEvent notification, CancellationToken cancellationToken) { - _logger.LogInformation("skillSphere Domain Event: {DomainEvent}", notification.GetType().Name); + _logger.LogInformation("testSphere Domain Event: {DomainEvent}", notification.GetType().Name); return Task.CompletedTask; } diff --git a/src/Application/TodoItems/EventHandlers/TodoItemCreatedEventHandler.cs b/src/Application/TodoItems/EventHandlers/TodoItemCreatedEventHandler.cs index f1b57d4..3139b4a 100644 --- a/src/Application/TodoItems/EventHandlers/TodoItemCreatedEventHandler.cs +++ b/src/Application/TodoItems/EventHandlers/TodoItemCreatedEventHandler.cs @@ -1,7 +1,7 @@ -using skillSphere.Domain.Events; +using testSphere.Domain.Events; using Microsoft.Extensions.Logging; -namespace skillSphere.Application.TodoItems.EventHandlers; +namespace testSphere.Application.TodoItems.EventHandlers; public class TodoItemCreatedEventHandler : INotificationHandler { @@ -14,7 +14,7 @@ public TodoItemCreatedEventHandler(ILogger logger) public Task Handle(TodoItemCreatedEvent notification, CancellationToken cancellationToken) { - _logger.LogInformation("skillSphere Domain Event: {DomainEvent}", notification.GetType().Name); + _logger.LogInformation("testSphere Domain Event: {DomainEvent}", notification.GetType().Name); return Task.CompletedTask; } diff --git a/src/Application/TodoItems/Queries/GetTodoItemsWithPagination/GetTodoItemsWithPagination.cs b/src/Application/TodoItems/Queries/GetTodoItemsWithPagination/GetTodoItemsWithPagination.cs index 053897a..3bb03cb 100644 --- a/src/Application/TodoItems/Queries/GetTodoItemsWithPagination/GetTodoItemsWithPagination.cs +++ b/src/Application/TodoItems/Queries/GetTodoItemsWithPagination/GetTodoItemsWithPagination.cs @@ -1,8 +1,8 @@ -using skillSphere.Application.Common.Interfaces; -using skillSphere.Application.Common.Mappings; -using skillSphere.Application.Common.Models; +using testSphere.Application.Common.Interfaces; +using testSphere.Application.Common.Mappings; +using testSphere.Application.Common.Models; -namespace skillSphere.Application.TodoItems.Queries.GetTodoItemsWithPagination; +namespace testSphere.Application.TodoItems.Queries.GetTodoItemsWithPagination; public record GetTodoItemsWithPaginationQuery : IRequest> { diff --git a/src/Application/TodoItems/Queries/GetTodoItemsWithPagination/GetTodoItemsWithPaginationQueryValidator.cs b/src/Application/TodoItems/Queries/GetTodoItemsWithPagination/GetTodoItemsWithPaginationQueryValidator.cs index 70764e2..8959e9e 100644 --- a/src/Application/TodoItems/Queries/GetTodoItemsWithPagination/GetTodoItemsWithPaginationQueryValidator.cs +++ b/src/Application/TodoItems/Queries/GetTodoItemsWithPagination/GetTodoItemsWithPaginationQueryValidator.cs @@ -1,4 +1,4 @@ -namespace skillSphere.Application.TodoItems.Queries.GetTodoItemsWithPagination; +namespace testSphere.Application.TodoItems.Queries.GetTodoItemsWithPagination; public class GetTodoItemsWithPaginationQueryValidator : AbstractValidator { diff --git a/src/Application/TodoItems/Queries/GetTodoItemsWithPagination/TodoItemBriefDto.cs b/src/Application/TodoItems/Queries/GetTodoItemsWithPagination/TodoItemBriefDto.cs index 6874aa1..f0dd6bf 100644 --- a/src/Application/TodoItems/Queries/GetTodoItemsWithPagination/TodoItemBriefDto.cs +++ b/src/Application/TodoItems/Queries/GetTodoItemsWithPagination/TodoItemBriefDto.cs @@ -1,6 +1,6 @@ -using skillSphere.Domain.Entities; +using testSphere.Domain.Entities; -namespace skillSphere.Application.TodoItems.Queries.GetTodoItemsWithPagination; +namespace testSphere.Application.TodoItems.Queries.GetTodoItemsWithPagination; public class TodoItemBriefDto { diff --git a/src/Application/TodoLists/Commands/CreateTodoList/CreateTodoList.cs b/src/Application/TodoLists/Commands/CreateTodoList/CreateTodoList.cs index 113481e..30fc98e 100644 --- a/src/Application/TodoLists/Commands/CreateTodoList/CreateTodoList.cs +++ b/src/Application/TodoLists/Commands/CreateTodoList/CreateTodoList.cs @@ -1,7 +1,7 @@ -using skillSphere.Application.Common.Interfaces; -using skillSphere.Domain.Entities; +using testSphere.Application.Common.Interfaces; +using testSphere.Domain.Entities; -namespace skillSphere.Application.TodoLists.Commands.CreateTodoList; +namespace testSphere.Application.TodoLists.Commands.CreateTodoList; public record CreateTodoListCommand : IRequest { diff --git a/src/Application/TodoLists/Commands/CreateTodoList/CreateTodoListCommandValidator.cs b/src/Application/TodoLists/Commands/CreateTodoList/CreateTodoListCommandValidator.cs index 4f45b73..ef855f8 100644 --- a/src/Application/TodoLists/Commands/CreateTodoList/CreateTodoListCommandValidator.cs +++ b/src/Application/TodoLists/Commands/CreateTodoList/CreateTodoListCommandValidator.cs @@ -1,6 +1,6 @@ -using skillSphere.Application.Common.Interfaces; +using testSphere.Application.Common.Interfaces; -namespace skillSphere.Application.TodoLists.Commands.CreateTodoList; +namespace testSphere.Application.TodoLists.Commands.CreateTodoList; public class CreateTodoListCommandValidator : AbstractValidator { diff --git a/src/Application/TodoLists/Commands/DeleteTodoList/DeleteTodoList.cs b/src/Application/TodoLists/Commands/DeleteTodoList/DeleteTodoList.cs index 6455223..f63206a 100644 --- a/src/Application/TodoLists/Commands/DeleteTodoList/DeleteTodoList.cs +++ b/src/Application/TodoLists/Commands/DeleteTodoList/DeleteTodoList.cs @@ -1,6 +1,6 @@ -using skillSphere.Application.Common.Interfaces; +using testSphere.Application.Common.Interfaces; -namespace skillSphere.Application.TodoLists.Commands.DeleteTodoList; +namespace testSphere.Application.TodoLists.Commands.DeleteTodoList; public record DeleteTodoListCommand(int Id) : IRequest; diff --git a/src/Application/TodoLists/Commands/PurgeTodoLists/PurgeTodoLists.cs b/src/Application/TodoLists/Commands/PurgeTodoLists/PurgeTodoLists.cs index ea75b05..3097946 100644 --- a/src/Application/TodoLists/Commands/PurgeTodoLists/PurgeTodoLists.cs +++ b/src/Application/TodoLists/Commands/PurgeTodoLists/PurgeTodoLists.cs @@ -1,8 +1,8 @@ -using skillSphere.Application.Common.Interfaces; -using skillSphere.Application.Common.Security; -using skillSphere.Domain.Constants; +using testSphere.Application.Common.Interfaces; +using testSphere.Application.Common.Security; +using testSphere.Domain.Constants; -namespace skillSphere.Application.TodoLists.Commands.PurgeTodoLists; +namespace testSphere.Application.TodoLists.Commands.PurgeTodoLists; [Authorize(Roles = Roles.Administrator)] [Authorize(Policy = Policies.CanPurge)] diff --git a/src/Application/TodoLists/Commands/UpdateTodoList/UpdateTodoList.cs b/src/Application/TodoLists/Commands/UpdateTodoList/UpdateTodoList.cs index 78caad7..dbf9195 100644 --- a/src/Application/TodoLists/Commands/UpdateTodoList/UpdateTodoList.cs +++ b/src/Application/TodoLists/Commands/UpdateTodoList/UpdateTodoList.cs @@ -1,6 +1,6 @@ -using skillSphere.Application.Common.Interfaces; +using testSphere.Application.Common.Interfaces; -namespace skillSphere.Application.TodoLists.Commands.UpdateTodoList; +namespace testSphere.Application.TodoLists.Commands.UpdateTodoList; public record UpdateTodoListCommand : IRequest { diff --git a/src/Application/TodoLists/Commands/UpdateTodoList/UpdateTodoListCommandValidator.cs b/src/Application/TodoLists/Commands/UpdateTodoList/UpdateTodoListCommandValidator.cs index 11e8f09..cd16a42 100644 --- a/src/Application/TodoLists/Commands/UpdateTodoList/UpdateTodoListCommandValidator.cs +++ b/src/Application/TodoLists/Commands/UpdateTodoList/UpdateTodoListCommandValidator.cs @@ -1,6 +1,6 @@ -using skillSphere.Application.Common.Interfaces; +using testSphere.Application.Common.Interfaces; -namespace skillSphere.Application.TodoLists.Commands.UpdateTodoList; +namespace testSphere.Application.TodoLists.Commands.UpdateTodoList; public class UpdateTodoListCommandValidator : AbstractValidator { diff --git a/src/Application/TodoLists/Queries/GetTodos/GetTodos.cs b/src/Application/TodoLists/Queries/GetTodos/GetTodos.cs index 2125c92..c23bc46 100644 --- a/src/Application/TodoLists/Queries/GetTodos/GetTodos.cs +++ b/src/Application/TodoLists/Queries/GetTodos/GetTodos.cs @@ -1,9 +1,9 @@ -using skillSphere.Application.Common.Interfaces; -using skillSphere.Application.Common.Models; -using skillSphere.Application.Common.Security; -using skillSphere.Domain.Enums; +using testSphere.Application.Common.Interfaces; +using testSphere.Application.Common.Models; +using testSphere.Application.Common.Security; +using testSphere.Domain.Enums; -namespace skillSphere.Application.TodoLists.Queries.GetTodos; +namespace testSphere.Application.TodoLists.Queries.GetTodos; [Authorize] public record GetTodosQuery : IRequest; diff --git a/src/Application/TodoLists/Queries/GetTodos/TodoItemDto.cs b/src/Application/TodoLists/Queries/GetTodos/TodoItemDto.cs index 7c9e802..f2754fb 100644 --- a/src/Application/TodoLists/Queries/GetTodos/TodoItemDto.cs +++ b/src/Application/TodoLists/Queries/GetTodos/TodoItemDto.cs @@ -1,6 +1,6 @@ -using skillSphere.Domain.Entities; +using testSphere.Domain.Entities; -namespace skillSphere.Application.TodoLists.Queries.GetTodos; +namespace testSphere.Application.TodoLists.Queries.GetTodos; public class TodoItemDto { diff --git a/src/Application/TodoLists/Queries/GetTodos/TodoListDto.cs b/src/Application/TodoLists/Queries/GetTodos/TodoListDto.cs index 422463d..cf56201 100644 --- a/src/Application/TodoLists/Queries/GetTodos/TodoListDto.cs +++ b/src/Application/TodoLists/Queries/GetTodos/TodoListDto.cs @@ -1,6 +1,6 @@ -using skillSphere.Domain.Entities; +using testSphere.Domain.Entities; -namespace skillSphere.Application.TodoLists.Queries.GetTodos; +namespace testSphere.Application.TodoLists.Queries.GetTodos; public class TodoListDto { diff --git a/src/Application/TodoLists/Queries/GetTodos/TodosVm.cs b/src/Application/TodoLists/Queries/GetTodos/TodosVm.cs index c7fbf1c..763a461 100644 --- a/src/Application/TodoLists/Queries/GetTodos/TodosVm.cs +++ b/src/Application/TodoLists/Queries/GetTodos/TodosVm.cs @@ -1,6 +1,6 @@ -using skillSphere.Application.Common.Models; +using testSphere.Application.Common.Models; -namespace skillSphere.Application.TodoLists.Queries.GetTodos; +namespace testSphere.Application.TodoLists.Queries.GetTodos; public class TodosVm { diff --git a/src/Application/WeatherForecasts/Queries/GetWeatherForecasts/GetWeatherForecastsQuery.cs b/src/Application/WeatherForecasts/Queries/GetWeatherForecasts/GetWeatherForecastsQuery.cs index 62e78af..81a5224 100644 --- a/src/Application/WeatherForecasts/Queries/GetWeatherForecasts/GetWeatherForecastsQuery.cs +++ b/src/Application/WeatherForecasts/Queries/GetWeatherForecasts/GetWeatherForecastsQuery.cs @@ -1,4 +1,4 @@ -namespace skillSphere.Application.WeatherForecasts.Queries.GetWeatherForecasts; +namespace testSphere.Application.WeatherForecasts.Queries.GetWeatherForecasts; public record GetWeatherForecastsQuery : IRequest>; diff --git a/src/Application/WeatherForecasts/Queries/GetWeatherForecasts/WeatherForecast.cs b/src/Application/WeatherForecasts/Queries/GetWeatherForecasts/WeatherForecast.cs index 25eb7f9..26d712e 100644 --- a/src/Application/WeatherForecasts/Queries/GetWeatherForecasts/WeatherForecast.cs +++ b/src/Application/WeatherForecasts/Queries/GetWeatherForecasts/WeatherForecast.cs @@ -1,4 +1,4 @@ -namespace skillSphere.Application.WeatherForecasts.Queries.GetWeatherForecasts; +namespace testSphere.Application.WeatherForecasts.Queries.GetWeatherForecasts; public class WeatherForecast { diff --git a/src/Domain/Common/BaseAuditableEntity.cs b/src/Domain/Common/BaseAuditableEntity.cs index bea0e30..c7370cc 100644 --- a/src/Domain/Common/BaseAuditableEntity.cs +++ b/src/Domain/Common/BaseAuditableEntity.cs @@ -1,4 +1,4 @@ -namespace skillSphere.Domain.Common; +namespace testSphere.Domain.Common; public abstract class BaseAuditableEntity : BaseEntity { diff --git a/src/Domain/Common/BaseEntity.cs b/src/Domain/Common/BaseEntity.cs index 66760bb..70683d6 100644 --- a/src/Domain/Common/BaseEntity.cs +++ b/src/Domain/Common/BaseEntity.cs @@ -1,6 +1,6 @@ using System.ComponentModel.DataAnnotations.Schema; -namespace skillSphere.Domain.Common; +namespace testSphere.Domain.Common; public abstract class BaseEntity { diff --git a/src/Domain/Common/BaseEvent.cs b/src/Domain/Common/BaseEvent.cs index 022ffd5..775e34a 100644 --- a/src/Domain/Common/BaseEvent.cs +++ b/src/Domain/Common/BaseEvent.cs @@ -1,6 +1,6 @@ using MediatR; -namespace skillSphere.Domain.Common; +namespace testSphere.Domain.Common; public abstract class BaseEvent : INotification { diff --git a/src/Domain/Common/ValueObject.cs b/src/Domain/Common/ValueObject.cs index 8f3e2a9..57e6d9d 100644 --- a/src/Domain/Common/ValueObject.cs +++ b/src/Domain/Common/ValueObject.cs @@ -1,4 +1,4 @@ -namespace skillSphere.Domain.Common; +namespace testSphere.Domain.Common; // Learn more: https://docs.microsoft.com/en-us/dotnet/standard/microservices-architecture/microservice-ddd-cqrs-patterns/implement-value-objects public abstract class ValueObject diff --git a/src/Domain/Constants/Policies.cs b/src/Domain/Constants/Policies.cs index b2e7344..616718f 100644 --- a/src/Domain/Constants/Policies.cs +++ b/src/Domain/Constants/Policies.cs @@ -1,4 +1,4 @@ -namespace skillSphere.Domain.Constants; +namespace testSphere.Domain.Constants; public abstract class Policies { diff --git a/src/Domain/Constants/Roles.cs b/src/Domain/Constants/Roles.cs index 6f5977e..7ebfa70 100644 --- a/src/Domain/Constants/Roles.cs +++ b/src/Domain/Constants/Roles.cs @@ -1,4 +1,4 @@ -namespace skillSphere.Domain.Constants; +namespace testSphere.Domain.Constants; public abstract class Roles { diff --git a/src/Domain/Domain.csproj b/src/Domain/Domain.csproj index 7f6248d..dec2241 100644 --- a/src/Domain/Domain.csproj +++ b/src/Domain/Domain.csproj @@ -1,8 +1,8 @@  - skillSphere.Domain - skillSphere.Domain + testSphere.Domain + testSphere.Domain diff --git a/src/Domain/Entities/TodoItem.cs b/src/Domain/Entities/TodoItem.cs index ee6e461..0922d21 100644 --- a/src/Domain/Entities/TodoItem.cs +++ b/src/Domain/Entities/TodoItem.cs @@ -1,4 +1,4 @@ -namespace skillSphere.Domain.Entities; +namespace testSphere.Domain.Entities; public class TodoItem : BaseAuditableEntity { diff --git a/src/Domain/Entities/TodoList.cs b/src/Domain/Entities/TodoList.cs index b0cecc2..a6c3558 100644 --- a/src/Domain/Entities/TodoList.cs +++ b/src/Domain/Entities/TodoList.cs @@ -1,4 +1,4 @@ -namespace skillSphere.Domain.Entities; +namespace testSphere.Domain.Entities; public class TodoList : BaseAuditableEntity { diff --git a/src/Domain/Enums/PriorityLevel.cs b/src/Domain/Enums/PriorityLevel.cs index 2b7d7e5..7b9b2f7 100644 --- a/src/Domain/Enums/PriorityLevel.cs +++ b/src/Domain/Enums/PriorityLevel.cs @@ -1,4 +1,4 @@ -namespace skillSphere.Domain.Enums; +namespace testSphere.Domain.Enums; public enum PriorityLevel { diff --git a/src/Domain/Events/TodoItemCompletedEvent.cs b/src/Domain/Events/TodoItemCompletedEvent.cs index 1921de3..85152e9 100644 --- a/src/Domain/Events/TodoItemCompletedEvent.cs +++ b/src/Domain/Events/TodoItemCompletedEvent.cs @@ -1,4 +1,4 @@ -namespace skillSphere.Domain.Events; +namespace testSphere.Domain.Events; public class TodoItemCompletedEvent : BaseEvent { diff --git a/src/Domain/Events/TodoItemCreatedEvent.cs b/src/Domain/Events/TodoItemCreatedEvent.cs index d762250..e6a9f72 100644 --- a/src/Domain/Events/TodoItemCreatedEvent.cs +++ b/src/Domain/Events/TodoItemCreatedEvent.cs @@ -1,4 +1,4 @@ -namespace skillSphere.Domain.Events; +namespace testSphere.Domain.Events; public class TodoItemCreatedEvent : BaseEvent { diff --git a/src/Domain/Events/TodoItemDeletedEvent.cs b/src/Domain/Events/TodoItemDeletedEvent.cs index 33a7d4c..165d6cf 100644 --- a/src/Domain/Events/TodoItemDeletedEvent.cs +++ b/src/Domain/Events/TodoItemDeletedEvent.cs @@ -1,4 +1,4 @@ -namespace skillSphere.Domain.Events; +namespace testSphere.Domain.Events; public class TodoItemDeletedEvent : BaseEvent { diff --git a/src/Domain/Exceptions/UnsupportedColourException.cs b/src/Domain/Exceptions/UnsupportedColourException.cs index 8f6ce09..1b5128b 100644 --- a/src/Domain/Exceptions/UnsupportedColourException.cs +++ b/src/Domain/Exceptions/UnsupportedColourException.cs @@ -1,4 +1,4 @@ -namespace skillSphere.Domain.Exceptions; +namespace testSphere.Domain.Exceptions; public class UnsupportedColourException : Exception { diff --git a/src/Domain/GlobalUsings.cs b/src/Domain/GlobalUsings.cs index c16ac43..249dd22 100644 --- a/src/Domain/GlobalUsings.cs +++ b/src/Domain/GlobalUsings.cs @@ -1,6 +1,6 @@ -global using skillSphere.Domain.Common; -global using skillSphere.Domain.Entities; -global using skillSphere.Domain.Enums; -global using skillSphere.Domain.Events; -global using skillSphere.Domain.Exceptions; -global using skillSphere.Domain.ValueObjects; \ No newline at end of file +global using testSphere.Domain.Common; +global using testSphere.Domain.Entities; +global using testSphere.Domain.Enums; +global using testSphere.Domain.Events; +global using testSphere.Domain.Exceptions; +global using testSphere.Domain.ValueObjects; \ No newline at end of file diff --git a/src/Domain/ValueObjects/Colour.cs b/src/Domain/ValueObjects/Colour.cs index 9928436..49cdc4b 100644 --- a/src/Domain/ValueObjects/Colour.cs +++ b/src/Domain/ValueObjects/Colour.cs @@ -1,4 +1,4 @@ -namespace skillSphere.Domain.ValueObjects; +namespace testSphere.Domain.ValueObjects; public class Colour : ValueObject { diff --git a/src/Infrastructure/Data/ApplicationDbContext.cs b/src/Infrastructure/Data/ApplicationDbContext.cs index 745b0f5..acacafc 100644 --- a/src/Infrastructure/Data/ApplicationDbContext.cs +++ b/src/Infrastructure/Data/ApplicationDbContext.cs @@ -1,11 +1,11 @@ using System.Reflection; -using skillSphere.Application.Common.Interfaces; -using skillSphere.Domain.Entities; -using skillSphere.Infrastructure.Identity; +using testSphere.Application.Common.Interfaces; +using testSphere.Domain.Entities; +using testSphere.Infrastructure.Identity; using Microsoft.AspNetCore.Identity.EntityFrameworkCore; using Microsoft.EntityFrameworkCore; -namespace skillSphere.Infrastructure.Data; +namespace testSphere.Infrastructure.Data; public class ApplicationDbContext : IdentityDbContext, IApplicationDbContext { diff --git a/src/Infrastructure/Data/ApplicationDbContextInitialiser.cs b/src/Infrastructure/Data/ApplicationDbContextInitialiser.cs index 6146932..34e4fd0 100644 --- a/src/Infrastructure/Data/ApplicationDbContextInitialiser.cs +++ b/src/Infrastructure/Data/ApplicationDbContextInitialiser.cs @@ -1,14 +1,14 @@ using System.Runtime.InteropServices; -using skillSphere.Domain.Constants; -using skillSphere.Domain.Entities; -using skillSphere.Infrastructure.Identity; +using testSphere.Domain.Constants; +using testSphere.Domain.Entities; +using testSphere.Infrastructure.Identity; using Microsoft.AspNetCore.Builder; using Microsoft.AspNetCore.Identity; using Microsoft.EntityFrameworkCore; using Microsoft.Extensions.DependencyInjection; using Microsoft.Extensions.Logging; -namespace skillSphere.Infrastructure.Data; +namespace testSphere.Infrastructure.Data; public static class InitialiserExtensions { diff --git a/src/Infrastructure/Data/Configurations/TodoItemConfiguration.cs b/src/Infrastructure/Data/Configurations/TodoItemConfiguration.cs index d897ba0..d6f0909 100644 --- a/src/Infrastructure/Data/Configurations/TodoItemConfiguration.cs +++ b/src/Infrastructure/Data/Configurations/TodoItemConfiguration.cs @@ -1,8 +1,8 @@ -using skillSphere.Domain.Entities; +using testSphere.Domain.Entities; using Microsoft.EntityFrameworkCore; using Microsoft.EntityFrameworkCore.Metadata.Builders; -namespace skillSphere.Infrastructure.Data.Configurations; +namespace testSphere.Infrastructure.Data.Configurations; public class TodoItemConfiguration : IEntityTypeConfiguration { diff --git a/src/Infrastructure/Data/Configurations/TodoListConfiguration.cs b/src/Infrastructure/Data/Configurations/TodoListConfiguration.cs index 78b3f97..ad29b9c 100644 --- a/src/Infrastructure/Data/Configurations/TodoListConfiguration.cs +++ b/src/Infrastructure/Data/Configurations/TodoListConfiguration.cs @@ -1,8 +1,8 @@ -using skillSphere.Domain.Entities; +using testSphere.Domain.Entities; using Microsoft.EntityFrameworkCore; using Microsoft.EntityFrameworkCore.Metadata.Builders; -namespace skillSphere.Infrastructure.Data.Configurations; +namespace testSphere.Infrastructure.Data.Configurations; public class TodoListConfiguration : IEntityTypeConfiguration { diff --git a/src/Infrastructure/Data/Interceptors/AuditableEntityInterceptor.cs b/src/Infrastructure/Data/Interceptors/AuditableEntityInterceptor.cs index 9038a90..9e2de39 100644 --- a/src/Infrastructure/Data/Interceptors/AuditableEntityInterceptor.cs +++ b/src/Infrastructure/Data/Interceptors/AuditableEntityInterceptor.cs @@ -1,10 +1,10 @@ -using skillSphere.Application.Common.Interfaces; -using skillSphere.Domain.Common; +using testSphere.Application.Common.Interfaces; +using testSphere.Domain.Common; using Microsoft.EntityFrameworkCore; using Microsoft.EntityFrameworkCore.ChangeTracking; using Microsoft.EntityFrameworkCore.Diagnostics; -namespace skillSphere.Infrastructure.Data.Interceptors; +namespace testSphere.Infrastructure.Data.Interceptors; public class AuditableEntityInterceptor : SaveChangesInterceptor { diff --git a/src/Infrastructure/Data/Interceptors/DispatchDomainEventsInterceptor.cs b/src/Infrastructure/Data/Interceptors/DispatchDomainEventsInterceptor.cs index 2e31d83..8cbdf04 100644 --- a/src/Infrastructure/Data/Interceptors/DispatchDomainEventsInterceptor.cs +++ b/src/Infrastructure/Data/Interceptors/DispatchDomainEventsInterceptor.cs @@ -1,9 +1,9 @@ -using skillSphere.Domain.Common; +using testSphere.Domain.Common; using MediatR; using Microsoft.EntityFrameworkCore; using Microsoft.EntityFrameworkCore.Diagnostics; -namespace skillSphere.Infrastructure.Data.Interceptors; +namespace testSphere.Infrastructure.Data.Interceptors; public class DispatchDomainEventsInterceptor : SaveChangesInterceptor { diff --git a/src/Infrastructure/Data/Migrations/00000000000000_InitialCreate.Designer.cs b/src/Infrastructure/Data/Migrations/00000000000000_InitialCreate.Designer.cs index 431f2c2..4c6eff8 100644 --- a/src/Infrastructure/Data/Migrations/00000000000000_InitialCreate.Designer.cs +++ b/src/Infrastructure/Data/Migrations/00000000000000_InitialCreate.Designer.cs @@ -1,6 +1,6 @@ // using System; -using skillSphere.Infrastructure.Data; +using testSphere.Infrastructure.Data; using Microsoft.EntityFrameworkCore; using Microsoft.EntityFrameworkCore.Infrastructure; using Microsoft.EntityFrameworkCore.Metadata; @@ -9,7 +9,7 @@ #nullable disable -namespace skillSphere.Infrastructure.Data.Migrations +namespace testSphere.Infrastructure.Data.Migrations { [DbContext(typeof(ApplicationDbContext))] [Migration("00000000000000_InitialCreate")] @@ -25,7 +25,7 @@ protected override void BuildTargetModel(ModelBuilder modelBuilder) SqlServerModelBuilderExtensions.UseIdentityColumns(modelBuilder); - modelBuilder.Entity("skillSphere.Domain.Entities.TodoItem", b => + modelBuilder.Entity("testSphere.Domain.Entities.TodoItem", b => { b.Property("Id") .ValueGeneratedOnAdd() @@ -72,7 +72,7 @@ protected override void BuildTargetModel(ModelBuilder modelBuilder) b.ToTable("TodoItems"); }); - modelBuilder.Entity("skillSphere.Domain.Entities.TodoList", b => + modelBuilder.Entity("testSphere.Domain.Entities.TodoList", b => { b.Property("Id") .ValueGeneratedOnAdd() @@ -102,7 +102,7 @@ protected override void BuildTargetModel(ModelBuilder modelBuilder) b.ToTable("TodoLists"); }); - modelBuilder.Entity("skillSphere.Infrastructure.Identity.ApplicationUser", b => + modelBuilder.Entity("testSphere.Infrastructure.Identity.ApplicationUser", b => { b.Property("Id") .HasColumnType("nvarchar(450)"); @@ -304,9 +304,9 @@ protected override void BuildTargetModel(ModelBuilder modelBuilder) b.ToTable("AspNetUserTokens", (string)null); }); - modelBuilder.Entity("skillSphere.Domain.Entities.TodoItem", b => + modelBuilder.Entity("testSphere.Domain.Entities.TodoItem", b => { - b.HasOne("skillSphere.Domain.Entities.TodoList", "List") + b.HasOne("testSphere.Domain.Entities.TodoList", "List") .WithMany("Items") .HasForeignKey("ListId") .OnDelete(DeleteBehavior.Cascade) @@ -315,9 +315,9 @@ protected override void BuildTargetModel(ModelBuilder modelBuilder) b.Navigation("List"); }); - modelBuilder.Entity("skillSphere.Domain.Entities.TodoList", b => + modelBuilder.Entity("testSphere.Domain.Entities.TodoList", b => { - b.OwnsOne("skillSphere.Domain.ValueObjects.Colour", "Colour", b1 => + b.OwnsOne("testSphere.Domain.ValueObjects.Colour", "Colour", b1 => { b1.Property("TodoListId") .HasColumnType("int"); @@ -349,7 +349,7 @@ protected override void BuildTargetModel(ModelBuilder modelBuilder) modelBuilder.Entity("Microsoft.AspNetCore.Identity.IdentityUserClaim", b => { - b.HasOne("skillSphere.Infrastructure.Identity.ApplicationUser", null) + b.HasOne("testSphere.Infrastructure.Identity.ApplicationUser", null) .WithMany() .HasForeignKey("UserId") .OnDelete(DeleteBehavior.Cascade) @@ -358,7 +358,7 @@ protected override void BuildTargetModel(ModelBuilder modelBuilder) modelBuilder.Entity("Microsoft.AspNetCore.Identity.IdentityUserLogin", b => { - b.HasOne("skillSphere.Infrastructure.Identity.ApplicationUser", null) + b.HasOne("testSphere.Infrastructure.Identity.ApplicationUser", null) .WithMany() .HasForeignKey("UserId") .OnDelete(DeleteBehavior.Cascade) @@ -373,7 +373,7 @@ protected override void BuildTargetModel(ModelBuilder modelBuilder) .OnDelete(DeleteBehavior.Cascade) .IsRequired(); - b.HasOne("skillSphere.Infrastructure.Identity.ApplicationUser", null) + b.HasOne("testSphere.Infrastructure.Identity.ApplicationUser", null) .WithMany() .HasForeignKey("UserId") .OnDelete(DeleteBehavior.Cascade) @@ -382,14 +382,14 @@ protected override void BuildTargetModel(ModelBuilder modelBuilder) modelBuilder.Entity("Microsoft.AspNetCore.Identity.IdentityUserToken", b => { - b.HasOne("skillSphere.Infrastructure.Identity.ApplicationUser", null) + b.HasOne("testSphere.Infrastructure.Identity.ApplicationUser", null) .WithMany() .HasForeignKey("UserId") .OnDelete(DeleteBehavior.Cascade) .IsRequired(); }); - modelBuilder.Entity("skillSphere.Domain.Entities.TodoList", b => + modelBuilder.Entity("testSphere.Domain.Entities.TodoList", b => { b.Navigation("Items"); }); diff --git a/src/Infrastructure/Data/Migrations/00000000000000_InitialCreate.cs b/src/Infrastructure/Data/Migrations/00000000000000_InitialCreate.cs index 54f28be..c461e3a 100644 --- a/src/Infrastructure/Data/Migrations/00000000000000_InitialCreate.cs +++ b/src/Infrastructure/Data/Migrations/00000000000000_InitialCreate.cs @@ -3,7 +3,7 @@ #nullable disable -namespace skillSphere.Infrastructure.Data.Migrations +namespace testSphere.Infrastructure.Data.Migrations { /// public partial class InitialCreate : Migration diff --git a/src/Infrastructure/Data/Migrations/ApplicationDbContextModelSnapshot.cs b/src/Infrastructure/Data/Migrations/ApplicationDbContextModelSnapshot.cs index 8eff22e..05e089f 100644 --- a/src/Infrastructure/Data/Migrations/ApplicationDbContextModelSnapshot.cs +++ b/src/Infrastructure/Data/Migrations/ApplicationDbContextModelSnapshot.cs @@ -1,6 +1,6 @@ // using System; -using skillSphere.Infrastructure.Data; +using testSphere.Infrastructure.Data; using Microsoft.EntityFrameworkCore; using Microsoft.EntityFrameworkCore.Infrastructure; using Microsoft.EntityFrameworkCore.Metadata; @@ -8,7 +8,7 @@ #nullable disable -namespace skillSphere.Infrastructure.Data.Migrations +namespace testSphere.Infrastructure.Data.Migrations { [DbContext(typeof(ApplicationDbContext))] partial class ApplicationDbContextModelSnapshot : ModelSnapshot @@ -22,7 +22,7 @@ protected override void BuildModel(ModelBuilder modelBuilder) SqlServerModelBuilderExtensions.UseIdentityColumns(modelBuilder); - modelBuilder.Entity("skillSphere.Domain.Entities.TodoItem", b => + modelBuilder.Entity("testSphere.Domain.Entities.TodoItem", b => { b.Property("Id") .ValueGeneratedOnAdd() @@ -69,7 +69,7 @@ protected override void BuildModel(ModelBuilder modelBuilder) b.ToTable("TodoItems"); }); - modelBuilder.Entity("skillSphere.Domain.Entities.TodoList", b => + modelBuilder.Entity("testSphere.Domain.Entities.TodoList", b => { b.Property("Id") .ValueGeneratedOnAdd() @@ -99,7 +99,7 @@ protected override void BuildModel(ModelBuilder modelBuilder) b.ToTable("TodoLists"); }); - modelBuilder.Entity("skillSphere.Infrastructure.Identity.ApplicationUser", b => + modelBuilder.Entity("testSphere.Infrastructure.Identity.ApplicationUser", b => { b.Property("Id") .HasColumnType("nvarchar(450)"); @@ -301,9 +301,9 @@ protected override void BuildModel(ModelBuilder modelBuilder) b.ToTable("AspNetUserTokens", (string)null); }); - modelBuilder.Entity("skillSphere.Domain.Entities.TodoItem", b => + modelBuilder.Entity("testSphere.Domain.Entities.TodoItem", b => { - b.HasOne("skillSphere.Domain.Entities.TodoList", "List") + b.HasOne("testSphere.Domain.Entities.TodoList", "List") .WithMany("Items") .HasForeignKey("ListId") .OnDelete(DeleteBehavior.Cascade) @@ -312,9 +312,9 @@ protected override void BuildModel(ModelBuilder modelBuilder) b.Navigation("List"); }); - modelBuilder.Entity("skillSphere.Domain.Entities.TodoList", b => + modelBuilder.Entity("testSphere.Domain.Entities.TodoList", b => { - b.OwnsOne("skillSphere.Domain.ValueObjects.Colour", "Colour", b1 => + b.OwnsOne("testSphere.Domain.ValueObjects.Colour", "Colour", b1 => { b1.Property("TodoListId") .HasColumnType("int"); @@ -346,7 +346,7 @@ protected override void BuildModel(ModelBuilder modelBuilder) modelBuilder.Entity("Microsoft.AspNetCore.Identity.IdentityUserClaim", b => { - b.HasOne("skillSphere.Infrastructure.Identity.ApplicationUser", null) + b.HasOne("testSphere.Infrastructure.Identity.ApplicationUser", null) .WithMany() .HasForeignKey("UserId") .OnDelete(DeleteBehavior.Cascade) @@ -355,7 +355,7 @@ protected override void BuildModel(ModelBuilder modelBuilder) modelBuilder.Entity("Microsoft.AspNetCore.Identity.IdentityUserLogin", b => { - b.HasOne("skillSphere.Infrastructure.Identity.ApplicationUser", null) + b.HasOne("testSphere.Infrastructure.Identity.ApplicationUser", null) .WithMany() .HasForeignKey("UserId") .OnDelete(DeleteBehavior.Cascade) @@ -370,7 +370,7 @@ protected override void BuildModel(ModelBuilder modelBuilder) .OnDelete(DeleteBehavior.Cascade) .IsRequired(); - b.HasOne("skillSphere.Infrastructure.Identity.ApplicationUser", null) + b.HasOne("testSphere.Infrastructure.Identity.ApplicationUser", null) .WithMany() .HasForeignKey("UserId") .OnDelete(DeleteBehavior.Cascade) @@ -379,14 +379,14 @@ protected override void BuildModel(ModelBuilder modelBuilder) modelBuilder.Entity("Microsoft.AspNetCore.Identity.IdentityUserToken", b => { - b.HasOne("skillSphere.Infrastructure.Identity.ApplicationUser", null) + b.HasOne("testSphere.Infrastructure.Identity.ApplicationUser", null) .WithMany() .HasForeignKey("UserId") .OnDelete(DeleteBehavior.Cascade) .IsRequired(); }); - modelBuilder.Entity("skillSphere.Domain.Entities.TodoList", b => + modelBuilder.Entity("testSphere.Domain.Entities.TodoList", b => { b.Navigation("Items"); }); diff --git a/src/Infrastructure/DependencyInjection.cs b/src/Infrastructure/DependencyInjection.cs index b9bc0f9..698139c 100644 --- a/src/Infrastructure/DependencyInjection.cs +++ b/src/Infrastructure/DependencyInjection.cs @@ -1,8 +1,8 @@ -using skillSphere.Application.Common.Interfaces; -using skillSphere.Domain.Constants; -using skillSphere.Infrastructure.Data; -using skillSphere.Infrastructure.Data.Interceptors; -using skillSphere.Infrastructure.Identity; +using testSphere.Application.Common.Interfaces; +using testSphere.Domain.Constants; +using testSphere.Infrastructure.Data; +using testSphere.Infrastructure.Data.Interceptors; +using testSphere.Infrastructure.Identity; using Microsoft.AspNetCore.Identity; using Microsoft.EntityFrameworkCore; using Microsoft.EntityFrameworkCore.Diagnostics; diff --git a/src/Infrastructure/Identity/ApplicationUser.cs b/src/Infrastructure/Identity/ApplicationUser.cs index c238cc7..9df950b 100644 --- a/src/Infrastructure/Identity/ApplicationUser.cs +++ b/src/Infrastructure/Identity/ApplicationUser.cs @@ -1,6 +1,6 @@ using Microsoft.AspNetCore.Identity; -namespace skillSphere.Infrastructure.Identity; +namespace testSphere.Infrastructure.Identity; public class ApplicationUser : IdentityUser { diff --git a/src/Infrastructure/Identity/IdentityResultExtensions.cs b/src/Infrastructure/Identity/IdentityResultExtensions.cs index 37e1452..183b902 100644 --- a/src/Infrastructure/Identity/IdentityResultExtensions.cs +++ b/src/Infrastructure/Identity/IdentityResultExtensions.cs @@ -1,7 +1,7 @@ -using skillSphere.Application.Common.Models; +using testSphere.Application.Common.Models; using Microsoft.AspNetCore.Identity; -namespace skillSphere.Infrastructure.Identity; +namespace testSphere.Infrastructure.Identity; public static class IdentityResultExtensions { diff --git a/src/Infrastructure/Identity/IdentityService.cs b/src/Infrastructure/Identity/IdentityService.cs index a22e145..70ce4f8 100644 --- a/src/Infrastructure/Identity/IdentityService.cs +++ b/src/Infrastructure/Identity/IdentityService.cs @@ -1,10 +1,10 @@ -using skillSphere.Application.Common.Interfaces; -using skillSphere.Application.Common.Models; +using testSphere.Application.Common.Interfaces; +using testSphere.Application.Common.Models; using Microsoft.AspNetCore.Authorization; using Microsoft.AspNetCore.Identity; using Microsoft.EntityFrameworkCore; -namespace skillSphere.Infrastructure.Identity; +namespace testSphere.Infrastructure.Identity; public class IdentityService : IIdentityService { diff --git a/src/Infrastructure/Infrastructure.csproj b/src/Infrastructure/Infrastructure.csproj index d4f4500..a18da4c 100644 --- a/src/Infrastructure/Infrastructure.csproj +++ b/src/Infrastructure/Infrastructure.csproj @@ -1,8 +1,8 @@  - skillSphere.Infrastructure - skillSphere.Infrastructure + testSphere.Infrastructure + testSphere.Infrastructure diff --git a/tests/Application.FunctionalTests/Application.FunctionalTests.csproj b/tests/Application.FunctionalTests/Application.FunctionalTests.csproj index e6446dc..acbdb3c 100644 --- a/tests/Application.FunctionalTests/Application.FunctionalTests.csproj +++ b/tests/Application.FunctionalTests/Application.FunctionalTests.csproj @@ -1,8 +1,8 @@  - skillSphere.Application.FunctionalTests - skillSphere.Application.FunctionalTests + testSphere.Application.FunctionalTests + testSphere.Application.FunctionalTests @@ -21,7 +21,10 @@ - + + all + runtime; build; native; contentfiles; analyzers; buildtransitive + diff --git a/tests/Application.FunctionalTests/BaseTestFixture.cs b/tests/Application.FunctionalTests/BaseTestFixture.cs index 900ab63..8686895 100644 --- a/tests/Application.FunctionalTests/BaseTestFixture.cs +++ b/tests/Application.FunctionalTests/BaseTestFixture.cs @@ -1,4 +1,4 @@ -namespace skillSphere.Application.FunctionalTests; +namespace testSphere.Application.FunctionalTests; using static Testing; diff --git a/tests/Application.FunctionalTests/CustomWebApplicationFactory.cs b/tests/Application.FunctionalTests/CustomWebApplicationFactory.cs index d1fa1db..3670b27 100644 --- a/tests/Application.FunctionalTests/CustomWebApplicationFactory.cs +++ b/tests/Application.FunctionalTests/CustomWebApplicationFactory.cs @@ -1,6 +1,6 @@ using System.Data.Common; -using skillSphere.Application.Common.Interfaces; -using skillSphere.Infrastructure.Data; +using testSphere.Application.Common.Interfaces; +using testSphere.Infrastructure.Data; using Microsoft.AspNetCore.Hosting; using Microsoft.AspNetCore.Mvc.Testing; using Microsoft.AspNetCore.TestHost; @@ -9,7 +9,7 @@ using Microsoft.Extensions.DependencyInjection; using Microsoft.Extensions.DependencyInjection.Extensions; -namespace skillSphere.Application.FunctionalTests; +namespace testSphere.Application.FunctionalTests; using static Testing; diff --git a/tests/Application.FunctionalTests/ITestDatabase.cs b/tests/Application.FunctionalTests/ITestDatabase.cs index 599c084..63b165a 100644 --- a/tests/Application.FunctionalTests/ITestDatabase.cs +++ b/tests/Application.FunctionalTests/ITestDatabase.cs @@ -1,6 +1,6 @@ using System.Data.Common; -namespace skillSphere.Application.FunctionalTests; +namespace testSphere.Application.FunctionalTests; public interface ITestDatabase { diff --git a/tests/Application.FunctionalTests/SqlServerTestDatabase.cs b/tests/Application.FunctionalTests/SqlServerTestDatabase.cs index 41e5b63..5558b61 100644 --- a/tests/Application.FunctionalTests/SqlServerTestDatabase.cs +++ b/tests/Application.FunctionalTests/SqlServerTestDatabase.cs @@ -1,11 +1,11 @@ using System.Data.Common; -using skillSphere.Infrastructure.Data; +using testSphere.Infrastructure.Data; using Microsoft.Data.SqlClient; using Microsoft.EntityFrameworkCore; using Microsoft.Extensions.Configuration; using Respawn; -namespace skillSphere.Application.FunctionalTests; +namespace testSphere.Application.FunctionalTests; public class SqlServerTestDatabase : ITestDatabase { diff --git a/tests/Application.FunctionalTests/TestDatabaseFactory.cs b/tests/Application.FunctionalTests/TestDatabaseFactory.cs index 5a708b2..438ea2a 100644 --- a/tests/Application.FunctionalTests/TestDatabaseFactory.cs +++ b/tests/Application.FunctionalTests/TestDatabaseFactory.cs @@ -1,4 +1,4 @@ -namespace skillSphere.Application.FunctionalTests; +namespace testSphere.Application.FunctionalTests; public static class TestDatabaseFactory { diff --git a/tests/Application.FunctionalTests/TestcontainersTestDatabase.cs b/tests/Application.FunctionalTests/TestcontainersTestDatabase.cs index bd5b5a4..58d0f5a 100644 --- a/tests/Application.FunctionalTests/TestcontainersTestDatabase.cs +++ b/tests/Application.FunctionalTests/TestcontainersTestDatabase.cs @@ -1,11 +1,11 @@ using System.Data.Common; -using skillSphere.Infrastructure.Data; +using testSphere.Infrastructure.Data; using Microsoft.Data.SqlClient; using Microsoft.EntityFrameworkCore; using Respawn; using Testcontainers.MsSql; -namespace skillSphere.Application.FunctionalTests; +namespace testSphere.Application.FunctionalTests; public class TestcontainersTestDatabase : ITestDatabase { diff --git a/tests/Application.FunctionalTests/Testing.cs b/tests/Application.FunctionalTests/Testing.cs index 3ff253e..15ae962 100644 --- a/tests/Application.FunctionalTests/Testing.cs +++ b/tests/Application.FunctionalTests/Testing.cs @@ -1,12 +1,12 @@ -using skillSphere.Domain.Constants; -using skillSphere.Infrastructure.Data; -using skillSphere.Infrastructure.Identity; +using testSphere.Domain.Constants; +using testSphere.Infrastructure.Data; +using testSphere.Infrastructure.Identity; using MediatR; using Microsoft.AspNetCore.Identity; using Microsoft.EntityFrameworkCore; using Microsoft.Extensions.DependencyInjection; -namespace skillSphere.Application.FunctionalTests; +namespace testSphere.Application.FunctionalTests; [SetUpFixture] public partial class Testing diff --git a/tests/Application.FunctionalTests/TodoItems/Commands/CreateTodoItemTests.cs b/tests/Application.FunctionalTests/TodoItems/Commands/CreateTodoItemTests.cs index c05c104..1e2f292 100644 --- a/tests/Application.FunctionalTests/TodoItems/Commands/CreateTodoItemTests.cs +++ b/tests/Application.FunctionalTests/TodoItems/Commands/CreateTodoItemTests.cs @@ -1,9 +1,9 @@ -using skillSphere.Application.Common.Exceptions; -using skillSphere.Application.TodoItems.Commands.CreateTodoItem; -using skillSphere.Application.TodoLists.Commands.CreateTodoList; -using skillSphere.Domain.Entities; +using testSphere.Application.Common.Exceptions; +using testSphere.Application.TodoItems.Commands.CreateTodoItem; +using testSphere.Application.TodoLists.Commands.CreateTodoList; +using testSphere.Domain.Entities; -namespace skillSphere.Application.FunctionalTests.TodoItems.Commands; +namespace testSphere.Application.FunctionalTests.TodoItems.Commands; using static Testing; diff --git a/tests/Application.FunctionalTests/TodoItems/Commands/DeleteTodoItemTests.cs b/tests/Application.FunctionalTests/TodoItems/Commands/DeleteTodoItemTests.cs index 5756563..df3e506 100644 --- a/tests/Application.FunctionalTests/TodoItems/Commands/DeleteTodoItemTests.cs +++ b/tests/Application.FunctionalTests/TodoItems/Commands/DeleteTodoItemTests.cs @@ -1,9 +1,9 @@ -using skillSphere.Application.TodoItems.Commands.CreateTodoItem; -using skillSphere.Application.TodoItems.Commands.DeleteTodoItem; -using skillSphere.Application.TodoLists.Commands.CreateTodoList; -using skillSphere.Domain.Entities; +using testSphere.Application.TodoItems.Commands.CreateTodoItem; +using testSphere.Application.TodoItems.Commands.DeleteTodoItem; +using testSphere.Application.TodoLists.Commands.CreateTodoList; +using testSphere.Domain.Entities; -namespace skillSphere.Application.FunctionalTests.TodoItems.Commands; +namespace testSphere.Application.FunctionalTests.TodoItems.Commands; using static Testing; diff --git a/tests/Application.FunctionalTests/TodoItems/Commands/UpdateTodoItemDetailTests.cs b/tests/Application.FunctionalTests/TodoItems/Commands/UpdateTodoItemDetailTests.cs index 3462902..7c54e8e 100644 --- a/tests/Application.FunctionalTests/TodoItems/Commands/UpdateTodoItemDetailTests.cs +++ b/tests/Application.FunctionalTests/TodoItems/Commands/UpdateTodoItemDetailTests.cs @@ -1,11 +1,11 @@ -using skillSphere.Application.TodoItems.Commands.CreateTodoItem; -using skillSphere.Application.TodoItems.Commands.UpdateTodoItem; -using skillSphere.Application.TodoItems.Commands.UpdateTodoItemDetail; -using skillSphere.Application.TodoLists.Commands.CreateTodoList; -using skillSphere.Domain.Entities; -using skillSphere.Domain.Enums; - -namespace skillSphere.Application.FunctionalTests.TodoItems.Commands; +using testSphere.Application.TodoItems.Commands.CreateTodoItem; +using testSphere.Application.TodoItems.Commands.UpdateTodoItem; +using testSphere.Application.TodoItems.Commands.UpdateTodoItemDetail; +using testSphere.Application.TodoLists.Commands.CreateTodoList; +using testSphere.Domain.Entities; +using testSphere.Domain.Enums; + +namespace testSphere.Application.FunctionalTests.TodoItems.Commands; using static Testing; diff --git a/tests/Application.FunctionalTests/TodoItems/Commands/UpdateTodoItemTests.cs b/tests/Application.FunctionalTests/TodoItems/Commands/UpdateTodoItemTests.cs index d008f03..e56d9f3 100644 --- a/tests/Application.FunctionalTests/TodoItems/Commands/UpdateTodoItemTests.cs +++ b/tests/Application.FunctionalTests/TodoItems/Commands/UpdateTodoItemTests.cs @@ -1,9 +1,9 @@ -using skillSphere.Application.TodoItems.Commands.CreateTodoItem; -using skillSphere.Application.TodoItems.Commands.UpdateTodoItem; -using skillSphere.Application.TodoLists.Commands.CreateTodoList; -using skillSphere.Domain.Entities; +using testSphere.Application.TodoItems.Commands.CreateTodoItem; +using testSphere.Application.TodoItems.Commands.UpdateTodoItem; +using testSphere.Application.TodoLists.Commands.CreateTodoList; +using testSphere.Domain.Entities; -namespace skillSphere.Application.FunctionalTests.TodoItems.Commands; +namespace testSphere.Application.FunctionalTests.TodoItems.Commands; using static Testing; diff --git a/tests/Application.FunctionalTests/TodoLists/Commands/CreateTodoListTests.cs b/tests/Application.FunctionalTests/TodoLists/Commands/CreateTodoListTests.cs index fc9697c..b55674a 100644 --- a/tests/Application.FunctionalTests/TodoLists/Commands/CreateTodoListTests.cs +++ b/tests/Application.FunctionalTests/TodoLists/Commands/CreateTodoListTests.cs @@ -1,8 +1,8 @@ -using skillSphere.Application.Common.Exceptions; -using skillSphere.Application.TodoLists.Commands.CreateTodoList; -using skillSphere.Domain.Entities; +using testSphere.Application.Common.Exceptions; +using testSphere.Application.TodoLists.Commands.CreateTodoList; +using testSphere.Domain.Entities; -namespace skillSphere.Application.FunctionalTests.TodoLists.Commands; +namespace testSphere.Application.FunctionalTests.TodoLists.Commands; using static Testing; diff --git a/tests/Application.FunctionalTests/TodoLists/Commands/DeleteTodoListTests.cs b/tests/Application.FunctionalTests/TodoLists/Commands/DeleteTodoListTests.cs index f34b0a3..ce6eb12 100644 --- a/tests/Application.FunctionalTests/TodoLists/Commands/DeleteTodoListTests.cs +++ b/tests/Application.FunctionalTests/TodoLists/Commands/DeleteTodoListTests.cs @@ -1,8 +1,8 @@ -using skillSphere.Application.TodoLists.Commands.CreateTodoList; -using skillSphere.Application.TodoLists.Commands.DeleteTodoList; -using skillSphere.Domain.Entities; +using testSphere.Application.TodoLists.Commands.CreateTodoList; +using testSphere.Application.TodoLists.Commands.DeleteTodoList; +using testSphere.Domain.Entities; -namespace skillSphere.Application.FunctionalTests.TodoLists.Commands; +namespace testSphere.Application.FunctionalTests.TodoLists.Commands; using static Testing; diff --git a/tests/Application.FunctionalTests/TodoLists/Commands/PurgeTodoListsTests.cs b/tests/Application.FunctionalTests/TodoLists/Commands/PurgeTodoListsTests.cs index 7478566..fb6da7f 100644 --- a/tests/Application.FunctionalTests/TodoLists/Commands/PurgeTodoListsTests.cs +++ b/tests/Application.FunctionalTests/TodoLists/Commands/PurgeTodoListsTests.cs @@ -1,10 +1,10 @@ -using skillSphere.Application.Common.Exceptions; -using skillSphere.Application.Common.Security; -using skillSphere.Application.TodoLists.Commands.CreateTodoList; -using skillSphere.Application.TodoLists.Commands.PurgeTodoLists; -using skillSphere.Domain.Entities; +using testSphere.Application.Common.Exceptions; +using testSphere.Application.Common.Security; +using testSphere.Application.TodoLists.Commands.CreateTodoList; +using testSphere.Application.TodoLists.Commands.PurgeTodoLists; +using testSphere.Domain.Entities; -namespace skillSphere.Application.FunctionalTests.TodoLists.Commands; +namespace testSphere.Application.FunctionalTests.TodoLists.Commands; using static Testing; diff --git a/tests/Application.FunctionalTests/TodoLists/Commands/UpdateTodoListTests.cs b/tests/Application.FunctionalTests/TodoLists/Commands/UpdateTodoListTests.cs index 8bfcd2d..9958802 100644 --- a/tests/Application.FunctionalTests/TodoLists/Commands/UpdateTodoListTests.cs +++ b/tests/Application.FunctionalTests/TodoLists/Commands/UpdateTodoListTests.cs @@ -1,9 +1,9 @@ -using skillSphere.Application.Common.Exceptions; -using skillSphere.Application.TodoLists.Commands.CreateTodoList; -using skillSphere.Application.TodoLists.Commands.UpdateTodoList; -using skillSphere.Domain.Entities; +using testSphere.Application.Common.Exceptions; +using testSphere.Application.TodoLists.Commands.CreateTodoList; +using testSphere.Application.TodoLists.Commands.UpdateTodoList; +using testSphere.Domain.Entities; -namespace skillSphere.Application.FunctionalTests.TodoLists.Commands; +namespace testSphere.Application.FunctionalTests.TodoLists.Commands; using static Testing; diff --git a/tests/Application.FunctionalTests/TodoLists/Queries/GetTodosTests.cs b/tests/Application.FunctionalTests/TodoLists/Queries/GetTodosTests.cs index e81821a..8b9b55c 100644 --- a/tests/Application.FunctionalTests/TodoLists/Queries/GetTodosTests.cs +++ b/tests/Application.FunctionalTests/TodoLists/Queries/GetTodosTests.cs @@ -1,8 +1,8 @@ -using skillSphere.Application.TodoLists.Queries.GetTodos; -using skillSphere.Domain.Entities; -using skillSphere.Domain.ValueObjects; +using testSphere.Application.TodoLists.Queries.GetTodos; +using testSphere.Domain.Entities; +using testSphere.Domain.ValueObjects; -namespace skillSphere.Application.FunctionalTests.TodoLists.Queries; +namespace testSphere.Application.FunctionalTests.TodoLists.Queries; using static Testing; diff --git a/tests/Application.FunctionalTests/appsettings.json b/tests/Application.FunctionalTests/appsettings.json index 308af2d..f045457 100644 --- a/tests/Application.FunctionalTests/appsettings.json +++ b/tests/Application.FunctionalTests/appsettings.json @@ -1,5 +1,5 @@ { "ConnectionStrings": { - "DefaultConnection": "Server=(localdb)\\mssqllocaldb;Database=skillSphereTestDb;Trusted_Connection=True;MultipleActiveResultSets=true" + "DefaultConnection": "Server=localhost,1433;Database=YourDatabaseName;User Id=sa;Password=;MultipleActiveResultSets=True;TrustServerCertificate=True" } } diff --git a/tests/Application.UnitTests/Application.UnitTests.csproj b/tests/Application.UnitTests/Application.UnitTests.csproj index db596f7..df5e8a9 100644 --- a/tests/Application.UnitTests/Application.UnitTests.csproj +++ b/tests/Application.UnitTests/Application.UnitTests.csproj @@ -1,14 +1,17 @@  - skillSphere.Application.UnitTests - skillSphere.Application.UnitTests + testSphere.Application.UnitTests + testSphere.Application.UnitTests - + + all + runtime; build; native; contentfiles; analyzers; buildtransitive + diff --git a/tests/Application.UnitTests/Common/Behaviours/RequestLoggerTests.cs b/tests/Application.UnitTests/Common/Behaviours/RequestLoggerTests.cs index 56f24a3..926c1df 100644 --- a/tests/Application.UnitTests/Common/Behaviours/RequestLoggerTests.cs +++ b/tests/Application.UnitTests/Common/Behaviours/RequestLoggerTests.cs @@ -1,11 +1,11 @@ -using skillSphere.Application.Common.Behaviours; -using skillSphere.Application.Common.Interfaces; -using skillSphere.Application.TodoItems.Commands.CreateTodoItem; +using testSphere.Application.Common.Behaviours; +using testSphere.Application.Common.Interfaces; +using testSphere.Application.TodoItems.Commands.CreateTodoItem; using Microsoft.Extensions.Logging; using Moq; using NUnit.Framework; -namespace skillSphere.Application.UnitTests.Common.Behaviours; +namespace testSphere.Application.UnitTests.Common.Behaviours; public class RequestLoggerTests { diff --git a/tests/Application.UnitTests/Common/Exceptions/ValidationExceptionTests.cs b/tests/Application.UnitTests/Common/Exceptions/ValidationExceptionTests.cs index 27c94ff..dc7f968 100644 --- a/tests/Application.UnitTests/Common/Exceptions/ValidationExceptionTests.cs +++ b/tests/Application.UnitTests/Common/Exceptions/ValidationExceptionTests.cs @@ -1,9 +1,9 @@ -using skillSphere.Application.Common.Exceptions; +using testSphere.Application.Common.Exceptions; using FluentAssertions; using FluentValidation.Results; using NUnit.Framework; -namespace skillSphere.Application.UnitTests.Common.Exceptions; +namespace testSphere.Application.UnitTests.Common.Exceptions; public class ValidationExceptionTests { diff --git a/tests/Application.UnitTests/Common/Mappings/MappingTests.cs b/tests/Application.UnitTests/Common/Mappings/MappingTests.cs index 4776387..bd7eadf 100644 --- a/tests/Application.UnitTests/Common/Mappings/MappingTests.cs +++ b/tests/Application.UnitTests/Common/Mappings/MappingTests.cs @@ -1,14 +1,14 @@ using System.Reflection; using System.Runtime.Serialization; using AutoMapper; -using skillSphere.Application.Common.Interfaces; -using skillSphere.Application.Common.Models; -using skillSphere.Application.TodoItems.Queries.GetTodoItemsWithPagination; -using skillSphere.Application.TodoLists.Queries.GetTodos; -using skillSphere.Domain.Entities; +using testSphere.Application.Common.Interfaces; +using testSphere.Application.Common.Models; +using testSphere.Application.TodoItems.Queries.GetTodoItemsWithPagination; +using testSphere.Application.TodoLists.Queries.GetTodos; +using testSphere.Domain.Entities; using NUnit.Framework; -namespace skillSphere.Application.UnitTests.Common.Mappings; +namespace testSphere.Application.UnitTests.Common.Mappings; public class MappingTests { diff --git a/tests/Domain.UnitTests/Domain.UnitTests.csproj b/tests/Domain.UnitTests/Domain.UnitTests.csproj index 238bb99..4ddfb91 100644 --- a/tests/Domain.UnitTests/Domain.UnitTests.csproj +++ b/tests/Domain.UnitTests/Domain.UnitTests.csproj @@ -1,14 +1,17 @@  - skillSphere.Domain.UnitTests - skillSphere.Domain.UnitTests + testSphere.Domain.UnitTests + testSphere.Domain.UnitTests - + + all + runtime; build; native; contentfiles; analyzers; buildtransitive + diff --git a/tests/Domain.UnitTests/ValueObjects/ColourTests.cs b/tests/Domain.UnitTests/ValueObjects/ColourTests.cs index e2c625b..2e8644c 100644 --- a/tests/Domain.UnitTests/ValueObjects/ColourTests.cs +++ b/tests/Domain.UnitTests/ValueObjects/ColourTests.cs @@ -1,9 +1,9 @@ -using skillSphere.Domain.Exceptions; -using skillSphere.Domain.ValueObjects; +using testSphere.Domain.Exceptions; +using testSphere.Domain.ValueObjects; using FluentAssertions; using NUnit.Framework; -namespace skillSphere.Domain.UnitTests.ValueObjects; +namespace testSphere.Domain.UnitTests.ValueObjects; public class ColourTests { diff --git a/tests/Infrastructure.IntegrationTests/Infrastructure.IntegrationTests.csproj b/tests/Infrastructure.IntegrationTests/Infrastructure.IntegrationTests.csproj index 170dc4d..f6de48c 100644 --- a/tests/Infrastructure.IntegrationTests/Infrastructure.IntegrationTests.csproj +++ b/tests/Infrastructure.IntegrationTests/Infrastructure.IntegrationTests.csproj @@ -1,15 +1,18 @@ - skillSphere.Infrastructure.IntegrationTests - skillSphere.Infrastructure.IntegrationTests + testSphere.Infrastructure.IntegrationTests + testSphere.Infrastructure.IntegrationTests - + + all + runtime; build; native; contentfiles; analyzers; buildtransitive + diff --git a/tests/Web.AcceptanceTests/ConfigurationHelper.cs b/tests/Web.AcceptanceTests/ConfigurationHelper.cs index 76e8a3b..042d078 100644 --- a/tests/Web.AcceptanceTests/ConfigurationHelper.cs +++ b/tests/Web.AcceptanceTests/ConfigurationHelper.cs @@ -1,6 +1,6 @@ using Microsoft.Extensions.Configuration; -namespace skillSphere.Web.AcceptanceTests; +namespace testSphere.Web.AcceptanceTests; public static class ConfigurationHelper { diff --git a/tests/Web.AcceptanceTests/Features/Login.feature.cs b/tests/Web.AcceptanceTests/Features/Login.feature.cs index 0c2183d..aee9d36 100644 --- a/tests/Web.AcceptanceTests/Features/Login.feature.cs +++ b/tests/Web.AcceptanceTests/Features/Login.feature.cs @@ -10,7 +10,7 @@ // ------------------------------------------------------------------------------ #region Designer generated code #pragma warning disable -namespace skillSphere.Web.AcceptanceTests.Features +namespace testSphere.Web.AcceptanceTests.Features { using TechTalk.SpecFlow; using System; diff --git a/tests/Web.AcceptanceTests/GlobalUsings.cs b/tests/Web.AcceptanceTests/GlobalUsings.cs index c0cb83e..7335180 100644 --- a/tests/Web.AcceptanceTests/GlobalUsings.cs +++ b/tests/Web.AcceptanceTests/GlobalUsings.cs @@ -1,4 +1,4 @@ -global using skillSphere.Web.AcceptanceTests.Pages; +global using testSphere.Web.AcceptanceTests.Pages; global using BoDi; global using FluentAssertions; global using Microsoft.Playwright; diff --git a/tests/Web.AcceptanceTests/Pages/BasePage.cs b/tests/Web.AcceptanceTests/Pages/BasePage.cs index 6400a21..8329d87 100644 --- a/tests/Web.AcceptanceTests/Pages/BasePage.cs +++ b/tests/Web.AcceptanceTests/Pages/BasePage.cs @@ -1,4 +1,4 @@ -namespace skillSphere.Web.AcceptanceTests.Pages; +namespace testSphere.Web.AcceptanceTests.Pages; public abstract class BasePage { diff --git a/tests/Web.AcceptanceTests/Pages/LoginPage.cs b/tests/Web.AcceptanceTests/Pages/LoginPage.cs index 766a385..5e2fd7f 100644 --- a/tests/Web.AcceptanceTests/Pages/LoginPage.cs +++ b/tests/Web.AcceptanceTests/Pages/LoginPage.cs @@ -1,4 +1,4 @@ -namespace skillSphere.Web.AcceptanceTests.Pages; +namespace testSphere.Web.AcceptanceTests.Pages; public class LoginPage : BasePage { diff --git a/tests/Web.AcceptanceTests/StepDefinitions/LoginStepDefinitions.cs b/tests/Web.AcceptanceTests/StepDefinitions/LoginStepDefinitions.cs index b64b094..235b02b 100644 --- a/tests/Web.AcceptanceTests/StepDefinitions/LoginStepDefinitions.cs +++ b/tests/Web.AcceptanceTests/StepDefinitions/LoginStepDefinitions.cs @@ -1,4 +1,4 @@ -namespace skillSphere.Web.AcceptanceTests.StepDefinitions; +namespace testSphere.Web.AcceptanceTests.StepDefinitions; [Binding] public sealed class LoginStepDefinitions diff --git a/tests/Web.AcceptanceTests/Web.AcceptanceTests.csproj b/tests/Web.AcceptanceTests/Web.AcceptanceTests.csproj index aacde47..345e790 100644 --- a/tests/Web.AcceptanceTests/Web.AcceptanceTests.csproj +++ b/tests/Web.AcceptanceTests/Web.AcceptanceTests.csproj @@ -1,8 +1,8 @@  - skillSphere.Web.AcceptanceTests - skillSphere.Web.AcceptanceTests + testSphere.Web.AcceptanceTests + testSphere.Web.AcceptanceTests