diff --git a/.github/workflows/dotnet.yml b/.github/workflows/dotnet.yml
new file mode 100644
index 0000000..d4454d1
--- /dev/null
+++ b/.github/workflows/dotnet.yml
@@ -0,0 +1,64 @@
+name: .NET
+
+on:
+ workflow_dispatch:
+ push:
+ branches: [ "main" ]
+ pull_request:
+ branches: [ "main" ]
+
+jobs:
+ build:
+ name: Build and analyze
+ runs-on: windows-latest
+ permissions:
+ contents: read
+ env:
+ SONAR_PROJECT: 'astar-dev-utilities'
+ ProjectName: 'AStar.Dev.Utilities'
+ RepositoryName: 'astar-dev-utilities'
+ steps:
+ - name: Set up JDK
+ uses: actions/setup-java@v4.4.0
+ with:
+ java-version: 17
+ distribution: 'zulu'
+
+ - name: Checkout
+ uses: actions/checkout@v4.2.1
+ with:
+ fetch-depth: 0
+
+ - name: 🛠 Cache SonarQube Cloud packages
+ uses: actions/cache@v4.2.3
+ with:
+ path: ~\sonar\cache
+ key: ${{ runner.os }}-sonar
+ restore-keys: ${{ runner.os }}-sonar
+
+ - name: 🛠 Cache SonarQube Cloud scanner
+ id: cache-sonar-scanner
+ uses: actions/cache@v4.2.3
+ with:
+ path: .\.sonar\scanner
+ key: ${{ runner.os }}-sonar-scanner
+ restore-keys: ${{ runner.os }}-sonar-scanner
+
+ - name: 🛠 Install SonarQube Cloud scanner
+ if: steps.cache-sonar-scanner.outputs.cache-hit != 'true'
+ shell: powershell
+ run: |
+ New-Item -Path .\.sonar\scanner -ItemType Directory
+ dotnet tool update dotnet-sonarscanner --tool-path .\.sonar\scanner
+
+ - name: 🔍 Restore, 🛠 Build and 🧪 Test with ☁️ SonarCloud / Qube
+ env:
+ GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}
+ SONAR_TOKEN: ${{ secrets.SONAR_TOKEN }}
+ shell: powershell
+ run: |
+ dotnet tool install --global dotnet-coverage
+ .\.sonar\scanner\dotnet-sonarscanner begin /k:"astar-development_${{ env.SONAR_PROJECT }}" /o:"astar-development" /d:sonar.token="${{ secrets.SONAR_TOKEN }}" /d:sonar.host.url="https://sonarcloud.io" /d:sonar.cs.vscoveragexml.reportsPaths=coverage.xml /d:sonar.scanner.scanAll=false /d:sonar.scanner.skipJreProvisioning=true
+ dotnet build --configuration Release
+ dotnet-coverage collect 'dotnet test --filter "FullyQualifiedName!~Tests.EndToEnd"' -f xml -o 'coverage.xml'
+ .\.sonar\scanner\dotnet-sonarscanner end /d:sonar.token="${{ secrets.SONAR_TOKEN }}"
diff --git a/.github/workflows/main_astar-dev.yml b/.github/workflows/main_astar-dev.yml
index 05be87d..9b71b43 100644
--- a/.github/workflows/main_astar-dev.yml
+++ b/.github/workflows/main_astar-dev.yml
@@ -1,45 +1,55 @@
name: SonarQube
+
permissions:
contents: read
+
on:
push:
branches:
- main
pull_request:
types: [ opened, synchronize, reopened ]
+
jobs:
+
build:
name: Build and analyze
runs-on: windows-latest
+
steps:
- name: Set up JDK 17
uses: actions/setup-java@v4
with:
java-version: 17
- distribution: 'zulu' # Alternative distribution options are available.
+ distribution: 'zulu'
+
- uses: actions/checkout@v4
with:
- fetch-depth: 0 # Shallow clones should be disabled for a better relevancy of analysis
- - name: Cache SonarQube Cloud packages
+ fetch-depth: 0
+
+ - name: 🛠 Cache SonarQube Cloud packages
uses: actions/cache@v4
with:
path: ~\sonar\cache
key: ${{ runner.os }}-sonar
restore-keys: ${{ runner.os }}-sonar
- - name: Cache SonarQube Cloud scanner
+
+ - name: 🛠 Cache SonarQube Cloud scanner
id: cache-sonar-scanner
uses: actions/cache@v4
with:
path: .\.sonar\scanner
key: ${{ runner.os }}-sonar-scanner
restore-keys: ${{ runner.os }}-sonar-scanner
- - name: Install SonarQube Cloud scanner
+
+ - name: ☁️ Install SonarQube Cloud scanner
if: steps.cache-sonar-scanner.outputs.cache-hit != 'true'
shell: powershell
run: |
New-Item -Path .\.sonar\scanner -ItemType Directory
dotnet tool update dotnet-sonarscanner --tool-path .\.sonar\scanner
- - name: Build and analyze
+
+ - name: 🛠 Build, 🧪 Test and analyse with ☁️ SonarCloud / Qube
env:
SONAR_TOKEN: ${{ secrets.SONAR_TOKEN }}
shell: powershell
diff --git a/.github/workflows/publish.yml b/.github/workflows/publish.yml
new file mode 100644
index 0000000..840e6b1
--- /dev/null
+++ b/.github/workflows/publish.yml
@@ -0,0 +1,34 @@
+name: 🚀 Publish NuGet Package
+
+on:
+ workflow_dispatch:
+
+jobs:
+ build:
+ runs-on: ubuntu-latest
+ permissions:
+ contents: read
+ env:
+ ProjectName: 'AStar.Dev.Utilities'
+
+ steps:
+ - name: 🧾 Checkout code
+ uses: actions/checkout@v4
+
+ - name: 🛠 Setup .NET
+ uses: actions/setup-dotnet@v4
+ with:
+ dotnet-version: '9.x'
+
+ - name: 🔍 Restore dependencies
+ run: dotnet restore
+
+ - name: 🛠 Build solution
+ run: dotnet build --configuration Release
+
+ - name: 📦 Pack NuGet package
+ run: dotnet pack ./src/${{ env.ProjectName }}/${{ env.ProjectName }}.csproj --configuration Release --output ./nupkg
+
+ - name: 🚀 Publish to NuGet.org
+ run: dotnet nuget push ./nupkg/*.nupkg --skip-duplicate --source https://api.nuget.org/v3/index.json --api-key ${{ secrets.NuGet_API_Key }} #
+
diff --git a/.idea/.idea.DatabaseTesting/.idea/.gitignore b/.idea/.idea.AStar.Dev.Database.Testing/.idea/.gitignore
similarity index 100%
rename from .idea/.idea.DatabaseTesting/.idea/.gitignore
rename to .idea/.idea.AStar.Dev.Database.Testing/.idea/.gitignore
diff --git a/.idea/.idea.AStar.Dev.Database.Testing/.idea/.name b/.idea/.idea.AStar.Dev.Database.Testing/.idea/.name
new file mode 100644
index 0000000..bbc6b33
--- /dev/null
+++ b/.idea/.idea.AStar.Dev.Database.Testing/.idea/.name
@@ -0,0 +1 @@
+AStar.Dev.Database.Testing
\ No newline at end of file
diff --git a/.idea/.idea.DatabaseTesting/.idea/encodings.xml b/.idea/.idea.AStar.Dev.Database.Testing/.idea/encodings.xml
similarity index 100%
rename from .idea/.idea.DatabaseTesting/.idea/encodings.xml
rename to .idea/.idea.AStar.Dev.Database.Testing/.idea/encodings.xml
diff --git a/.idea/.idea.DatabaseTesting/.idea/indexLayout.xml b/.idea/.idea.AStar.Dev.Database.Testing/.idea/indexLayout.xml
similarity index 100%
rename from .idea/.idea.DatabaseTesting/.idea/indexLayout.xml
rename to .idea/.idea.AStar.Dev.Database.Testing/.idea/indexLayout.xml
diff --git a/.idea/.idea.DatabaseTesting/.idea/sonarlint.xml b/.idea/.idea.AStar.Dev.Database.Testing/.idea/sonarlint.xml
similarity index 100%
rename from .idea/.idea.DatabaseTesting/.idea/sonarlint.xml
rename to .idea/.idea.AStar.Dev.Database.Testing/.idea/sonarlint.xml
diff --git a/.idea/.idea.DatabaseTesting/.idea/vcs.xml b/.idea/.idea.AStar.Dev.Database.Testing/.idea/vcs.xml
similarity index 100%
rename from .idea/.idea.DatabaseTesting/.idea/vcs.xml
rename to .idea/.idea.AStar.Dev.Database.Testing/.idea/vcs.xml
diff --git a/.idea/.idea.DatabaseTesting/.idea/.name b/.idea/.idea.DatabaseTesting/.idea/.name
deleted file mode 100644
index bc93157..0000000
--- a/.idea/.idea.DatabaseTesting/.idea/.name
+++ /dev/null
@@ -1 +0,0 @@
-DatabaseTesting
\ No newline at end of file
diff --git a/.idea/.idea.DatabaseTesting/.idea/workspace.xml b/.idea/.idea.DatabaseTesting/.idea/workspace.xml
new file mode 100644
index 0000000..189ff4f
--- /dev/null
+++ b/.idea/.idea.DatabaseTesting/.idea/workspace.xml
@@ -0,0 +1,486 @@
+
+
+
+ ConsoleApp1/ConsoleApp1.csproj
+ DatabaseTesting/DatabaseTesting.csproj
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+ {
+ "associatedIndex": 8
+}
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+ 1753556624514
+
+
+ 1753556624514
+
+
+
+
+
+
+
+
+
+
+
+
+ 1753557395652
+
+
+
+ 1753557395652
+
+
+
+ 1753559105093
+
+
+
+ 1753559105093
+
+
+
+ 1753559513951
+
+
+
+ 1753559513951
+
+
+
+ 1753560206051
+
+
+
+ 1753560206051
+
+
+
+ 1753562055857
+
+
+
+ 1753562055857
+
+
+
+ 1753567669456
+
+
+
+ 1753567669456
+
+
+
+ 1753567928264
+
+
+
+ 1753567928264
+
+
+
+ 1753651524315
+
+
+
+ 1753651524315
+
+
+
+ 1753651878261
+
+
+
+ 1753651878261
+
+
+
+ 1753653118517
+
+
+
+ 1753653118517
+
+
+
+ 1753654015885
+
+
+
+ 1753654015885
+
+
+
+ 1753823787495
+
+
+
+ 1753823787495
+
+
+
+ 1753824091050
+
+
+
+ 1753824091050
+
+
+
+ 1753824718844
+
+
+
+ 1753824718844
+
+
+
+ 1753825582705
+
+
+
+ 1753825582705
+
+
+
+ 1754686346313
+
+
+
+ 1754686346313
+
+
+
+ 1754768807909
+
+
+
+ 1754768807909
+
+
+
+ 1754769154678
+
+
+
+ 1754769154678
+
+
+
+ 1754769736271
+
+
+
+ 1754769736271
+
+
+
+ 1754770599099
+
+
+
+ 1754770599099
+
+
+
+ 1754776736497
+
+
+
+ 1754776736497
+
+
+
+ 1754777157012
+
+
+
+ 1754777157012
+
+
+
+ 1754778632393
+
+
+
+ 1754778632393
+
+
+
+ 1754779327082
+
+
+
+ 1754779327082
+
+
+
+ 1754779616922
+
+
+
+ 1754779616922
+
+
+
+ 1754780050520
+
+
+
+ 1754780050520
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
\ No newline at end of file
diff --git a/AStar.Dev.Database.Testing.slnx b/AStar.Dev.Database.Testing.slnx
new file mode 100644
index 0000000..cb4b124
--- /dev/null
+++ b/AStar.Dev.Database.Testing.slnx
@@ -0,0 +1,27 @@
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
diff --git a/DatabaseTesting.sln b/DatabaseTesting.sln
deleted file mode 100644
index 05af0cc..0000000
--- a/DatabaseTesting.sln
+++ /dev/null
@@ -1,114 +0,0 @@
-
-Microsoft Visual Studio Solution File, Format Version 12.00
-# Visual Studio Version 17
-VisualStudioVersion = 17.14.36221.1
-MinimumVisualStudioVersion = 10.0.40219.1
-Project("{FAE04EC0-301F-11D3-BF4B-00C04F79EFBC}") = "AStar.Dev.Technical.Debt.Reporting", "support\AStar.Dev.Technical.Debt.Reporting\AStar.Dev.Technical.Debt.Reporting.csproj", "{08DE9921-9593-4530-B062-84A41A6FAA90}"
-EndProject
-Project("{FAE04EC0-301F-11D3-BF4B-00C04F79EFBC}") = "AStar.Dev.Utilities", "support\AStar.Dev.Utilities\AStar.Dev.Utilities.csproj", "{28720605-9CA9-4A33-BB00-655F4B76CA19}"
-EndProject
-Project("{FAE04EC0-301F-11D3-BF4B-00C04F79EFBC}") = "AStar.Dev.Infrastructure.FilesDb.Tests.Integration", "test\AStar.Dev.Infrastructure.FilesDb.Tests.Integration\AStar.Dev.Infrastructure.FilesDb.Tests.Integration.csproj", "{2860766A-6251-4874-9535-199ED5E29AA0}"
-EndProject
-Project("{FAE04EC0-301F-11D3-BF4B-00C04F79EFBC}") = "DbContextHelpers", "support\DbContextHelpers\DbContextHelpers.csproj", "{FE38F9CD-8573-44D1-A03F-73D318B6E86D}"
-EndProject
-Project("{2150E333-8FDC-42A3-9474-1A3956D46DE8}") = "Solution Items", "Solution Items", "{02EA681E-C7D8-13C7-8484-4AC65E1B71E8}"
- ProjectSection(SolutionItems) = preProject
- .editorconfig = .editorconfig
- EndProjectSection
-EndProject
-Project("{2150E333-8FDC-42A3-9474-1A3956D46DE8}") = ".github", ".github", "{EB916946-4AEB-4F7A-B6AF-E270D6574EC0}"
- ProjectSection(SolutionItems) = preProject
- .github\dependabot.yml = .github\dependabot.yml
- EndProjectSection
-EndProject
-Project("{2150E333-8FDC-42A3-9474-1A3956D46DE8}") = "workflows", "workflows", "{1B8EF033-F575-495D-BC9C-D0539E66EC28}"
- ProjectSection(SolutionItems) = preProject
- .github\workflows\main_astar-dev.yml = .github\workflows\main_astar-dev.yml
- EndProjectSection
-EndProject
-Project("{2150E333-8FDC-42A3-9474-1A3956D46DE8}") = "src", "src", "{D61F13DC-3A32-42BE-8687-F795D7332A51}"
-EndProject
-Project("{2150E333-8FDC-42A3-9474-1A3956D46DE8}") = "test", "test", "{D96E7D57-B3CF-4792-8532-59F03453A8B6}"
-EndProject
-Project("{2150E333-8FDC-42A3-9474-1A3956D46DE8}") = "support", "support", "{F06BC983-3361-41B2-B64F-7A77A2E32782}"
-EndProject
-Project("{FAE04EC0-301F-11D3-BF4B-00C04F79EFBC}") = "AStar.Dev.Infrastructure", "src\AStar.Dev.Infrastructure\AStar.Dev.Infrastructure.csproj", "{C00B2A62-E46E-4F6E-BC8A-39088261A17E}"
-EndProject
-Project("{FAE04EC0-301F-11D3-BF4B-00C04F79EFBC}") = "AStar.Dev.Infrastructure.FilesDb", "src\AStar.Dev.Infrastructure.FilesDb\AStar.Dev.Infrastructure.FilesDb.csproj", "{626B3E85-6C5D-4D8B-96BB-BF2D375326CA}"
-EndProject
-Project("{FAE04EC0-301F-11D3-BF4B-00C04F79EFBC}") = "AStar.Dev.Infrastructure.Tests.Unit", "test\AStar.Dev.Infrastructure.Tests.Unit\AStar.Dev.Infrastructure.Tests.Unit.csproj", "{1EC059E7-7C8D-4492-8C07-30BD79AEE465}"
-EndProject
-Project("{FAE04EC0-301F-11D3-BF4B-00C04F79EFBC}") = "AStar.Dev.Infrastructure.FilesDb.Tests.Unit", "test\AStar.Dev.Infrastructure.FilesDb.Tests.Unit\AStar.Dev.Infrastructure.FilesDb.Tests.Unit.csproj", "{019990B2-EFCD-4FB1-9FD1-CD98CCBFF670}"
-EndProject
-Project("{FAE04EC0-301F-11D3-BF4B-00C04F79EFBC}") = "AStar.Dev.Utilities.Tests.Unit", "test\AStar.Dev.Utilities.Tests.Unit\AStar.Dev.Utilities.Tests.Unit.csproj", "{55EB2B02-1528-45B8-A460-93F269527272}"
-EndProject
-Project("{FAE04EC0-301F-11D3-BF4B-00C04F79EFBC}") = "AStar.Dev.Technical.Debt.Reporting.Tests.Unit", "test\AStar.Dev.Technical.Debt.Reporting.Tests.Unit\AStar.Dev.Technical.Debt.Reporting.Tests.Unit.csproj", "{3C872AF9-A2A3-4CB8-B7BB-FC1BC3B57A82}"
-EndProject
-Global
- GlobalSection(SolutionConfigurationPlatforms) = preSolution
- Debug|Any CPU = Debug|Any CPU
- Release|Any CPU = Release|Any CPU
- EndGlobalSection
- GlobalSection(ProjectConfigurationPlatforms) = postSolution
- {08DE9921-9593-4530-B062-84A41A6FAA90}.Debug|Any CPU.ActiveCfg = Debug|Any CPU
- {08DE9921-9593-4530-B062-84A41A6FAA90}.Debug|Any CPU.Build.0 = Debug|Any CPU
- {08DE9921-9593-4530-B062-84A41A6FAA90}.Release|Any CPU.ActiveCfg = Release|Any CPU
- {08DE9921-9593-4530-B062-84A41A6FAA90}.Release|Any CPU.Build.0 = Release|Any CPU
- {28720605-9CA9-4A33-BB00-655F4B76CA19}.Debug|Any CPU.ActiveCfg = Debug|Any CPU
- {28720605-9CA9-4A33-BB00-655F4B76CA19}.Debug|Any CPU.Build.0 = Debug|Any CPU
- {28720605-9CA9-4A33-BB00-655F4B76CA19}.Release|Any CPU.ActiveCfg = Release|Any CPU
- {28720605-9CA9-4A33-BB00-655F4B76CA19}.Release|Any CPU.Build.0 = Release|Any CPU
- {2860766A-6251-4874-9535-199ED5E29AA0}.Debug|Any CPU.ActiveCfg = Debug|Any CPU
- {2860766A-6251-4874-9535-199ED5E29AA0}.Debug|Any CPU.Build.0 = Debug|Any CPU
- {2860766A-6251-4874-9535-199ED5E29AA0}.Release|Any CPU.ActiveCfg = Release|Any CPU
- {2860766A-6251-4874-9535-199ED5E29AA0}.Release|Any CPU.Build.0 = Release|Any CPU
- {FE38F9CD-8573-44D1-A03F-73D318B6E86D}.Debug|Any CPU.ActiveCfg = Debug|Any CPU
- {FE38F9CD-8573-44D1-A03F-73D318B6E86D}.Debug|Any CPU.Build.0 = Debug|Any CPU
- {FE38F9CD-8573-44D1-A03F-73D318B6E86D}.Release|Any CPU.ActiveCfg = Release|Any CPU
- {FE38F9CD-8573-44D1-A03F-73D318B6E86D}.Release|Any CPU.Build.0 = Release|Any CPU
- {C00B2A62-E46E-4F6E-BC8A-39088261A17E}.Debug|Any CPU.ActiveCfg = Debug|Any CPU
- {C00B2A62-E46E-4F6E-BC8A-39088261A17E}.Debug|Any CPU.Build.0 = Debug|Any CPU
- {C00B2A62-E46E-4F6E-BC8A-39088261A17E}.Release|Any CPU.ActiveCfg = Release|Any CPU
- {C00B2A62-E46E-4F6E-BC8A-39088261A17E}.Release|Any CPU.Build.0 = Release|Any CPU
- {626B3E85-6C5D-4D8B-96BB-BF2D375326CA}.Debug|Any CPU.ActiveCfg = Debug|Any CPU
- {626B3E85-6C5D-4D8B-96BB-BF2D375326CA}.Debug|Any CPU.Build.0 = Debug|Any CPU
- {626B3E85-6C5D-4D8B-96BB-BF2D375326CA}.Release|Any CPU.ActiveCfg = Release|Any CPU
- {626B3E85-6C5D-4D8B-96BB-BF2D375326CA}.Release|Any CPU.Build.0 = Release|Any CPU
- {1EC059E7-7C8D-4492-8C07-30BD79AEE465}.Debug|Any CPU.ActiveCfg = Debug|Any CPU
- {1EC059E7-7C8D-4492-8C07-30BD79AEE465}.Debug|Any CPU.Build.0 = Debug|Any CPU
- {1EC059E7-7C8D-4492-8C07-30BD79AEE465}.Release|Any CPU.ActiveCfg = Release|Any CPU
- {1EC059E7-7C8D-4492-8C07-30BD79AEE465}.Release|Any CPU.Build.0 = Release|Any CPU
- {019990B2-EFCD-4FB1-9FD1-CD98CCBFF670}.Debug|Any CPU.ActiveCfg = Debug|Any CPU
- {019990B2-EFCD-4FB1-9FD1-CD98CCBFF670}.Debug|Any CPU.Build.0 = Debug|Any CPU
- {019990B2-EFCD-4FB1-9FD1-CD98CCBFF670}.Release|Any CPU.ActiveCfg = Release|Any CPU
- {019990B2-EFCD-4FB1-9FD1-CD98CCBFF670}.Release|Any CPU.Build.0 = Release|Any CPU
- {55EB2B02-1528-45B8-A460-93F269527272}.Debug|Any CPU.ActiveCfg = Debug|Any CPU
- {55EB2B02-1528-45B8-A460-93F269527272}.Debug|Any CPU.Build.0 = Debug|Any CPU
- {55EB2B02-1528-45B8-A460-93F269527272}.Release|Any CPU.ActiveCfg = Release|Any CPU
- {55EB2B02-1528-45B8-A460-93F269527272}.Release|Any CPU.Build.0 = Release|Any CPU
- {3C872AF9-A2A3-4CB8-B7BB-FC1BC3B57A82}.Debug|Any CPU.ActiveCfg = Debug|Any CPU
- {3C872AF9-A2A3-4CB8-B7BB-FC1BC3B57A82}.Debug|Any CPU.Build.0 = Debug|Any CPU
- {3C872AF9-A2A3-4CB8-B7BB-FC1BC3B57A82}.Release|Any CPU.ActiveCfg = Release|Any CPU
- {3C872AF9-A2A3-4CB8-B7BB-FC1BC3B57A82}.Release|Any CPU.Build.0 = Release|Any CPU
- EndGlobalSection
- GlobalSection(SolutionProperties) = preSolution
- HideSolutionNode = FALSE
- EndGlobalSection
- GlobalSection(ExtensibilityGlobals) = postSolution
- SolutionGuid = {7F8498D7-2757-4147-B9D5-02595469FE7A}
- EndGlobalSection
- GlobalSection(NestedProjects) = preSolution
- {EB916946-4AEB-4F7A-B6AF-E270D6574EC0} = {02EA681E-C7D8-13C7-8484-4AC65E1B71E8}
- {1B8EF033-F575-495D-BC9C-D0539E66EC28} = {EB916946-4AEB-4F7A-B6AF-E270D6574EC0}
- {2860766A-6251-4874-9535-199ED5E29AA0} = {D96E7D57-B3CF-4792-8532-59F03453A8B6}
- {08DE9921-9593-4530-B062-84A41A6FAA90} = {F06BC983-3361-41B2-B64F-7A77A2E32782}
- {28720605-9CA9-4A33-BB00-655F4B76CA19} = {F06BC983-3361-41B2-B64F-7A77A2E32782}
- {FE38F9CD-8573-44D1-A03F-73D318B6E86D} = {F06BC983-3361-41B2-B64F-7A77A2E32782}
- {C00B2A62-E46E-4F6E-BC8A-39088261A17E} = {D61F13DC-3A32-42BE-8687-F795D7332A51}
- {626B3E85-6C5D-4D8B-96BB-BF2D375326CA} = {D61F13DC-3A32-42BE-8687-F795D7332A51}
- {1EC059E7-7C8D-4492-8C07-30BD79AEE465} = {D96E7D57-B3CF-4792-8532-59F03453A8B6}
- {019990B2-EFCD-4FB1-9FD1-CD98CCBFF670} = {D96E7D57-B3CF-4792-8532-59F03453A8B6}
- {55EB2B02-1528-45B8-A460-93F269527272} = {D96E7D57-B3CF-4792-8532-59F03453A8B6}
- {3C872AF9-A2A3-4CB8-B7BB-FC1BC3B57A82} = {D96E7D57-B3CF-4792-8532-59F03453A8B6}
- EndGlobalSection
-EndGlobal
diff --git a/src/AStar.Dev.Infrastructure.FilesDb/AStar.Dev.Infrastructure.FilesDb.csproj b/src/AStar.Dev.Infrastructure.FilesDb/AStar.Dev.Infrastructure.FilesDb.csproj
index 5819eaa..9f63e94 100644
--- a/src/AStar.Dev.Infrastructure.FilesDb/AStar.Dev.Infrastructure.FilesDb.csproj
+++ b/src/AStar.Dev.Infrastructure.FilesDb/AStar.Dev.Infrastructure.FilesDb.csproj
@@ -6,8 +6,8 @@
enable
astar.ico
true
- AStar Developement, Jason Barden
- AStar Developement, 2025
+ AStar Development, Jason Barden
+ AStar Development, 2025
https://github.com/astar-development/
https://github.com/astar-development/
git
@@ -20,15 +20,15 @@
-
+
-
-
+
+
all
runtime; build; native; contentfiles; analyzers; buildtransitive
-
-
+
+
all
runtime; build; native; contentfiles; analyzers; buildtransitive
diff --git a/src/AStar.Dev.Infrastructure.FilesDb/Data/Configurations/FileClassificationConfiguration.cs b/src/AStar.Dev.Infrastructure.FilesDb/Data/Configurations/FileClassificationConfiguration.cs
index fd3873f..23e7155 100644
--- a/src/AStar.Dev.Infrastructure.FilesDb/Data/Configurations/FileClassificationConfiguration.cs
+++ b/src/AStar.Dev.Infrastructure.FilesDb/Data/Configurations/FileClassificationConfiguration.cs
@@ -13,7 +13,7 @@ public void Configure(EntityTypeBuilder builder)
{
_ = builder
.ToTable(nameof(FileClassification), Constants.SchemaName)
- .HasKey(fileClassification => fileClassification.Id);
+ .HasKey(fileClassification => fileClassification.Id);
_ = builder.HasMany();
_ = builder.Property(fileClassification => fileClassification.Name).HasMaxLength(150);
diff --git a/src/AStar.Dev.Infrastructure.FilesDb/Data/Configurations/FileDetailConfiguration.cs b/src/AStar.Dev.Infrastructure.FilesDb/Data/Configurations/FileDetailConfiguration.cs
index 8cfc136..be851fd 100644
--- a/src/AStar.Dev.Infrastructure.FilesDb/Data/Configurations/FileDetailConfiguration.cs
+++ b/src/AStar.Dev.Infrastructure.FilesDb/Data/Configurations/FileDetailConfiguration.cs
@@ -17,7 +17,7 @@ public void Configure(EntityTypeBuilder builder)
builder.HasKey(file => file.Id);
builder.Property(file => file.Id)
- .HasConversion(fileId => fileId.Value, fileId => new (fileId));
+ .HasConversion(fileId => fileId.Value, fileId => new(fileId));
builder.Ignore(fileDetail => fileDetail.FileName);
builder.Ignore(fileDetail => fileDetail.DirectoryName);
@@ -25,7 +25,7 @@ public void Configure(EntityTypeBuilder builder)
builder.Property(file => file.FileHandle)
.HasColumnType("nvarchar(256)")
- .HasConversion(fileHandle => fileHandle.Value, fileHandle => new (fileHandle));
+ .HasConversion(fileHandle => fileHandle.Value, fileHandle => new(fileHandle));
builder.ComplexProperty(fileDetail => fileDetail.ImageDetail)
.Configure(new ImageDetailConfiguration());
diff --git a/src/AStar.Dev.Infrastructure.FilesDb/Data/Configurations/FileNamePartConfiguration.cs b/src/AStar.Dev.Infrastructure.FilesDb/Data/Configurations/FileNamePartConfiguration.cs
index f34c8f6..a69b177 100644
--- a/src/AStar.Dev.Infrastructure.FilesDb/Data/Configurations/FileNamePartConfiguration.cs
+++ b/src/AStar.Dev.Infrastructure.FilesDb/Data/Configurations/FileNamePartConfiguration.cs
@@ -13,7 +13,7 @@ public void Configure(EntityTypeBuilder builder)
{
_ = builder
.ToTable(nameof(FileNamePart), Constants.SchemaName)
- .HasKey(fileNamePart => fileNamePart.Id);
+ .HasKey(fileNamePart => fileNamePart.Id);
_ = builder.Property(fileNamePart => fileNamePart.Text).HasMaxLength(150);
}
diff --git a/src/AStar.Dev.Infrastructure.FilesDb/Data/FileDetailPagingExtensions.cs b/src/AStar.Dev.Infrastructure.FilesDb/Data/FileDetailPagingExtensions.cs
index 177713d..8f6e96e 100644
--- a/src/AStar.Dev.Infrastructure.FilesDb/Data/FileDetailPagingExtensions.cs
+++ b/src/AStar.Dev.Infrastructure.FilesDb/Data/FileDetailPagingExtensions.cs
@@ -16,7 +16,7 @@ public static IQueryable GetPage(this IQueryable files,
{
pageSize = RestrictPageSize(pageSize);
- if (pageNumber < 1)
+ if(pageNumber < 1)
{
pageNumber = 1;
}
diff --git a/src/AStar.Dev.Infrastructure.FilesDb/Data/FileDetailSearchTypeExtensions.cs b/src/AStar.Dev.Infrastructure.FilesDb/Data/FileDetailSearchTypeExtensions.cs
index a3b6610..c1833c9 100644
--- a/src/AStar.Dev.Infrastructure.FilesDb/Data/FileDetailSearchTypeExtensions.cs
+++ b/src/AStar.Dev.Infrastructure.FilesDb/Data/FileDetailSearchTypeExtensions.cs
@@ -23,6 +23,6 @@ public static IQueryable OfSearchType(this IQueryable fi
x.FileSize == f.FileSize &&
x.ImageDetail.Height == f.ImageDetail.Height &&
x.ImageDetail.Width == f.ImageDetail.Width) > 1),
- _ => throw new UnreachableException("If we reach here, a new SearchType has been added but not included...")
+ _ => throw new UnreachableException("If we reach here, a new SearchType has been added but not included...")
};
}
diff --git a/src/AStar.Dev.Infrastructure.FilesDb/Data/FilesContext.cs b/src/AStar.Dev.Infrastructure.FilesDb/Data/FilesContext.cs
index 8d3ae6a..dcc885c 100644
--- a/src/AStar.Dev.Infrastructure.FilesDb/Data/FilesContext.cs
+++ b/src/AStar.Dev.Infrastructure.FilesDb/Data/FilesContext.cs
@@ -22,7 +22,7 @@ public FilesContext(DbContextOptions options)
///
///
public FilesContext()
- : base(new DbContextOptions() )
+ : base(new DbContextOptions())
{
}
diff --git a/src/AStar.Dev.Infrastructure.FilesDb/Models/DuplicateDetail.cs b/src/AStar.Dev.Infrastructure.FilesDb/Models/DuplicateDetail.cs
index 9ce8bd7..914e4cc 100644
--- a/src/AStar.Dev.Infrastructure.FilesDb/Models/DuplicateDetail.cs
+++ b/src/AStar.Dev.Infrastructure.FilesDb/Models/DuplicateDetail.cs
@@ -22,17 +22,17 @@ public class DuplicateDetail
///
/// Gets or sets the File Height
///
- public int ImageHeight { get; set; }
+ public int ImageHeight { get; set; }
///
/// Gets or sets the File Width
///
- public int ImageWidth { get; set; }
+ public int ImageWidth { get; set; }
///
/// Gets or sets the File Size
///
- public long FileSize { get; set; }
+ public long FileSize { get; set; }
///
/// Gets or sets the File Handle
@@ -43,12 +43,12 @@ public class DuplicateDetail
///
/// Gets or sets whether File is an image
///
- public bool IsImage { get; set; }
+ public bool IsImage { get; set; }
///
/// Gets or sets the Instance count for the duplicate group
///
- public int Instances { get; set; }
+ public int Instances { get; set; }
///
/// Gets or sets the Details Last Updated
diff --git a/src/AStar.Dev.Infrastructure.FilesDb/Models/EventType.cs b/src/AStar.Dev.Infrastructure.FilesDb/Models/EventType.cs
index 96a2ef0..40d4f3c 100644
--- a/src/AStar.Dev.Infrastructure.FilesDb/Models/EventType.cs
+++ b/src/AStar.Dev.Infrastructure.FilesDb/Models/EventType.cs
@@ -22,42 +22,42 @@ private EventType(int value, string name)
///
/// Represents an 'Add' event type, typically used for new record creation.
///
- public static EventType Add => new (1, "Add");
+ public static EventType Add => new(1, "Add");
///
/// Represents an 'Update' event type, typically used for modifying existing records.
///
- public static EventType Update => new (2, "Update");
+ public static EventType Update => new(2, "Update");
///
/// Represents a 'SoftDelete' event type, typically used for 'soft' removing records.
///
- public static EventType SoftDelete => new (3, "SoftDelete");
+ public static EventType SoftDelete => new(3, "SoftDelete");
///
/// Represents a 'HardDelete' event type, typically used for permanently removing records.
///
- public static EventType HardDelete => new (4, "HardDelete");
+ public static EventType HardDelete => new(4, "HardDelete");
///
/// Gets the integer value associated with the event type.
///
- public int Value { get; }
+ public int Value { get; }
///
/// Gets the string name of the event type.
///
- public string Name { get; }
+ public string Name { get; }
///
public bool Equals(EventType? other)
{
- if (other is null)
+ if(other is null)
{
return false;
}
- if (ReferenceEquals(this, other))
+ if(ReferenceEquals(this, other))
{
return true;
}
diff --git a/src/AStar.Dev.Infrastructure.FilesDb/Models/FileClassification.cs b/src/AStar.Dev.Infrastructure.FilesDb/Models/FileClassification.cs
index 108d15a..669eec0 100644
--- a/src/AStar.Dev.Infrastructure.FilesDb/Models/FileClassification.cs
+++ b/src/AStar.Dev.Infrastructure.FilesDb/Models/FileClassification.cs
@@ -14,7 +14,7 @@ public class FileClassification
///
///
- public ICollection FileDetails { get ; set ; } = [];
+ public ICollection FileDetails { get; set; } = [];
///
///
@@ -22,5 +22,5 @@ public class FileClassification
///
///
- public ICollection FileNameParts { get ; set ; } = [];
+ public ICollection FileNameParts { get; set; } = [];
}
diff --git a/src/AStar.Dev.Infrastructure.FilesDb/Models/FileDetail.cs b/src/AStar.Dev.Infrastructure.FilesDb/Models/FileDetail.cs
index cc0c084..97002c6 100644
--- a/src/AStar.Dev.Infrastructure.FilesDb/Models/FileDetail.cs
+++ b/src/AStar.Dev.Infrastructure.FilesDb/Models/FileDetail.cs
@@ -31,7 +31,7 @@ public FileDetail(IFileInfo fileInfo)
///
///
- public ICollection FileClassifications { get ; set ; } = [];
+ public ICollection FileClassifications { get; set; } = [];
///
/// Gets or sets the ID of the . I know, shocking...
diff --git a/src/AStar.Dev.Infrastructure.FilesDb/Models/FileNamePart.cs b/src/AStar.Dev.Infrastructure.FilesDb/Models/FileNamePart.cs
index 00db166..0f2e69a 100644
--- a/src/AStar.Dev.Infrastructure.FilesDb/Models/FileNamePart.cs
+++ b/src/AStar.Dev.Infrastructure.FilesDb/Models/FileNamePart.cs
@@ -14,5 +14,5 @@ public class FileNamePart
///
///
- public virtual ICollection FileClassifications { get ; set ; } = [];
+ public virtual ICollection FileClassifications { get; set; } = [];
}
diff --git a/src/AStar.Dev.Infrastructure/AStar.Dev.Infrastructure.csproj b/src/AStar.Dev.Infrastructure/AStar.Dev.Infrastructure.csproj
index 99fec80..e7502b0 100644
--- a/src/AStar.Dev.Infrastructure/AStar.Dev.Infrastructure.csproj
+++ b/src/AStar.Dev.Infrastructure/AStar.Dev.Infrastructure.csproj
@@ -6,8 +6,8 @@
enable
astar.ico
true
- AStar Developement, Jason Barden
- AStar Developement, 2025
+ AStar Development, Jason Barden
+ AStar Development, 2025
https://github.com/astar-development/
https://github.com/astar-development/
git
@@ -25,8 +25,8 @@
-
-
+
+
diff --git a/support/AStar.Dev.Technical.Debt.Reporting/AStar.Dev.Technical.Debt.Reporting.csproj b/support/AStar.Dev.Technical.Debt.Reporting/AStar.Dev.Technical.Debt.Reporting.csproj
index 8788c48..9b991b8 100644
--- a/support/AStar.Dev.Technical.Debt.Reporting/AStar.Dev.Technical.Debt.Reporting.csproj
+++ b/support/AStar.Dev.Technical.Debt.Reporting/AStar.Dev.Technical.Debt.Reporting.csproj
@@ -6,8 +6,8 @@
enable
astar.ico
true
- AStar Developement, Jason Barden
- AStar Developement, 2025
+ AStar Development, Jason Barden
+ AStar Development, 2025
https://github.com/astar-development/
https://github.com/astar-development/
git
diff --git a/support/AStar.Dev.Utilities/AStar.Dev.Utilities.csproj b/support/AStar.Dev.Utilities/AStar.Dev.Utilities.csproj
index 7df4593..50588e5 100644
--- a/support/AStar.Dev.Utilities/AStar.Dev.Utilities.csproj
+++ b/support/AStar.Dev.Utilities/AStar.Dev.Utilities.csproj
@@ -43,7 +43,7 @@
-
+
Always
diff --git a/support/AStar.Dev.Utilities/EncryptionExtensions.cs b/support/AStar.Dev.Utilities/EncryptionExtensions.cs
index ad27b7f..68c06c3 100644
--- a/support/AStar.Dev.Utilities/EncryptionExtensions.cs
+++ b/support/AStar.Dev.Utilities/EncryptionExtensions.cs
@@ -36,7 +36,7 @@ public static string Encrypt(this string plainText, string? key = null, string?
using var msEncrypt = new MemoryStream();
using var csEncrypt = new CryptoStream(msEncrypt, encryptor, CryptoStreamMode.Write);
- using (var swEncrypt = new StreamWriter(csEncrypt))
+ using(var swEncrypt = new StreamWriter(csEncrypt))
{
swEncrypt.Write(plainText);
}
diff --git a/support/AStar.Dev.Utilities/LinqExtensions.cs b/support/AStar.Dev.Utilities/LinqExtensions.cs
index 3a28600..2db8783 100644
--- a/support/AStar.Dev.Utilities/LinqExtensions.cs
+++ b/support/AStar.Dev.Utilities/LinqExtensions.cs
@@ -11,7 +11,7 @@ public static class LinqExtensions
///
public static void ForEach(this IEnumerable enumerable, Action action)
{
- foreach (var item in enumerable)
+ foreach(var item in enumerable)
{
action(item);
}
diff --git a/support/DbContextHelpers/DbContextHelpers.csproj b/support/DbContextHelpers/DbContextHelpers.csproj
index 0824889..12fbb50 100644
--- a/support/DbContextHelpers/DbContextHelpers.csproj
+++ b/support/DbContextHelpers/DbContextHelpers.csproj
@@ -8,14 +8,14 @@
-
-
-
-
-
+
+
+
+
+
-
+
all
runtime; build; native; contentfiles; analyzers; buildtransitive
diff --git a/support/DbContextHelpers/TestConstants.cs b/support/DbContextHelpers/TestConstants.cs
index 6847c1a..917b41b 100644
--- a/support/DbContextHelpers/TestConstants.cs
+++ b/support/DbContextHelpers/TestConstants.cs
@@ -1,6 +1,6 @@
namespace DbContextHelpers;
-public static class TestConstants
+public static class TestConstants
{
public const string SharedIntegrationCollection = "Shared Integration Collection";
}
diff --git a/test/AStar.Dev.Infrastructure.FilesDb.Tests.Integration/AStar.Dev.Infrastructure.FilesDb.Tests.Integration.csproj b/test/AStar.Dev.Infrastructure.FilesDb.Tests.Integration/AStar.Dev.Infrastructure.FilesDb.Tests.Integration.csproj
index 5a613a9..75db9ec 100644
--- a/test/AStar.Dev.Infrastructure.FilesDb.Tests.Integration/AStar.Dev.Infrastructure.FilesDb.Tests.Integration.csproj
+++ b/test/AStar.Dev.Infrastructure.FilesDb.Tests.Integration/AStar.Dev.Infrastructure.FilesDb.Tests.Integration.csproj
@@ -18,13 +18,13 @@
all
runtime; build; native; contentfiles; analyzers; buildtransitive
-
-
-
+
+
+
-
+
all
runtime; build; native; contentfiles; analyzers; buildtransitive
diff --git a/test/AStar.Dev.Infrastructure.FilesDb.Tests.Integration/FileDetailDeletionStatusExtensionsShould.cs b/test/AStar.Dev.Infrastructure.FilesDb.Tests.Integration/FileDetailDeletionStatusExtensionsShould.cs
index 9a64854..4742260 100644
--- a/test/AStar.Dev.Infrastructure.FilesDb.Tests.Integration/FileDetailDeletionStatusExtensionsShould.cs
+++ b/test/AStar.Dev.Infrastructure.FilesDb.Tests.Integration/FileDetailDeletionStatusExtensionsShould.cs
@@ -1,12 +1,11 @@
using AStar.Dev.Infrastructure.FilesDb.Data;
using DbContextHelpers.Fixtures;
-using Shouldly;
namespace AStar.Dev.Infrastructure.FilesDb.Tests.Integration;
///
///
-public class FileDetailDeletionStatusExtensionsShould (FilesContextFixture filesContextFixture) : IClassFixture
+public class FileDetailDeletionStatusExtensionsShould(FilesContextFixture filesContextFixture) : IClassFixture
{
[Fact]
public void ShouldReturnExpectedFileDetailsWhenIncludeDeletedOrDeletePendingIsFalse()
diff --git a/test/AStar.Dev.Infrastructure.FilesDb.Tests.Integration/FileDetailDirectoryNameExtensionsShould.cs b/test/AStar.Dev.Infrastructure.FilesDb.Tests.Integration/FileDetailDirectoryNameExtensionsShould.cs
index 6a4fd1b..ed993ba 100644
--- a/test/AStar.Dev.Infrastructure.FilesDb.Tests.Integration/FileDetailDirectoryNameExtensionsShould.cs
+++ b/test/AStar.Dev.Infrastructure.FilesDb.Tests.Integration/FileDetailDirectoryNameExtensionsShould.cs
@@ -1,11 +1,10 @@
using AStar.Dev.Infrastructure.FilesDb.Data;
using AStar.Dev.Infrastructure.FilesDb.Models;
using DbContextHelpers.Fixtures;
-using Shouldly;
namespace AStar.Dev.Infrastructure.FilesDb.Tests.Integration;
-public class FileDetailDirectoryNameExtensionsShould (FilesContextFixture filesContextFixture) : IClassFixture
+public class FileDetailDirectoryNameExtensionsShould(FilesContextFixture filesContextFixture) : IClassFixture
{
[Fact]
public void ShouldReturnExpectedFileDetailsWhenDirectoryNameSpecifiedAndRecursionIsFalse()
diff --git a/test/AStar.Dev.Infrastructure.FilesDb.Tests.Integration/FileDetailOrderingExtensionsShould.cs b/test/AStar.Dev.Infrastructure.FilesDb.Tests.Integration/FileDetailOrderingExtensionsShould.cs
index a4a63f0..367ccd5 100644
--- a/test/AStar.Dev.Infrastructure.FilesDb.Tests.Integration/FileDetailOrderingExtensionsShould.cs
+++ b/test/AStar.Dev.Infrastructure.FilesDb.Tests.Integration/FileDetailOrderingExtensionsShould.cs
@@ -1,13 +1,12 @@
using AStar.Dev.Infrastructure.FilesDb.Data;
using AStar.Dev.Infrastructure.FilesDb.Models;
using DbContextHelpers.Fixtures;
-using Shouldly;
namespace AStar.Dev.Infrastructure.FilesDb.Tests.Integration;
///
///
-public class FileDetailOrderingExtensionsShould (FilesContextFixture filesContextFixture) : IClassFixture
+public class FileDetailOrderingExtensionsShould(FilesContextFixture filesContextFixture) : IClassFixture
{
[Fact]
public void ShouldReturnExpectedFileDetailsOrderedByNameAscending()
diff --git a/test/AStar.Dev.Infrastructure.FilesDb.Tests.Integration/FileDetailPagingExtensionsShould.cs b/test/AStar.Dev.Infrastructure.FilesDb.Tests.Integration/FileDetailPagingExtensionsShould.cs
index 292f8fe..3be807f 100644
--- a/test/AStar.Dev.Infrastructure.FilesDb.Tests.Integration/FileDetailPagingExtensionsShould.cs
+++ b/test/AStar.Dev.Infrastructure.FilesDb.Tests.Integration/FileDetailPagingExtensionsShould.cs
@@ -1,12 +1,11 @@
using AStar.Dev.Infrastructure.FilesDb.Data;
using DbContextHelpers.Fixtures;
-using Shouldly;
namespace AStar.Dev.Infrastructure.FilesDb.Tests.Integration;
///
///
-public class FileDetailPagingExtensionsShould (FilesContextFixture filesContextFixture) : IClassFixture
+public class FileDetailPagingExtensionsShould(FilesContextFixture filesContextFixture) : IClassFixture
{
[Fact]
public void ShouldReturnExpectedFirstPageOfTenResultsWithCorrectDetails()
diff --git a/test/AStar.Dev.Infrastructure.FilesDb.Tests.Integration/FileDetailSearchTypeExtensionsShould.cs b/test/AStar.Dev.Infrastructure.FilesDb.Tests.Integration/FileDetailSearchTypeExtensionsShould.cs
index 44da0c7..503fb4a 100644
--- a/test/AStar.Dev.Infrastructure.FilesDb.Tests.Integration/FileDetailSearchTypeExtensionsShould.cs
+++ b/test/AStar.Dev.Infrastructure.FilesDb.Tests.Integration/FileDetailSearchTypeExtensionsShould.cs
@@ -1,13 +1,12 @@
using AStar.Dev.Infrastructure.FilesDb.Data;
using AStar.Dev.Infrastructure.FilesDb.Models;
using DbContextHelpers.Fixtures;
-using Shouldly;
namespace AStar.Dev.Infrastructure.FilesDb.Tests.Integration;
///
///
-public class FileDetailSearchTypeExtensionsShould (FilesContextFixture filesContextFixture) : IClassFixture
+public class FileDetailSearchTypeExtensionsShould(FilesContextFixture filesContextFixture) : IClassFixture
{
[Fact]
public void ShouldReturnExpectedFileDetailsWhenSearchTypeIsSetToAll()
diff --git a/test/AStar.Dev.Infrastructure.FilesDb.Tests.Integration/FileDetailTextContainsExtensionsShould.cs b/test/AStar.Dev.Infrastructure.FilesDb.Tests.Integration/FileDetailTextContainsExtensionsShould.cs
index c7fa323..0f56fd1 100644
--- a/test/AStar.Dev.Infrastructure.FilesDb.Tests.Integration/FileDetailTextContainsExtensionsShould.cs
+++ b/test/AStar.Dev.Infrastructure.FilesDb.Tests.Integration/FileDetailTextContainsExtensionsShould.cs
@@ -1,12 +1,11 @@
using AStar.Dev.Infrastructure.FilesDb.Data;
using DbContextHelpers.Fixtures;
-using Shouldly;
namespace AStar.Dev.Infrastructure.FilesDb.Tests.Integration;
///
///
-public class FileDetailTextContainsExtensionsShould (FilesContextFixture filesContextFixture) : IClassFixture
+public class FileDetailTextContainsExtensionsShould(FilesContextFixture filesContextFixture) : IClassFixture
{
[Fact]
public void ReturnTheExpectedFilesMatchingTheSuppliedTextWhenExistsInTheDirectoryNameOnly()
diff --git a/test/AStar.Dev.Infrastructure.FilesDb.Tests.Integration/FilesContextLastViewedExtensionsShould.cs b/test/AStar.Dev.Infrastructure.FilesDb.Tests.Integration/FilesContextLastViewedExtensionsShould.cs
index 9afa813..f71cc9c 100644
--- a/test/AStar.Dev.Infrastructure.FilesDb.Tests.Integration/FilesContextLastViewedExtensionsShould.cs
+++ b/test/AStar.Dev.Infrastructure.FilesDb.Tests.Integration/FilesContextLastViewedExtensionsShould.cs
@@ -1,7 +1,6 @@
using AStar.Dev.Infrastructure.FilesDb.Data;
using DbContextHelpers.Fixtures;
using Microsoft.Extensions.Time.Testing;
-using Shouldly;
namespace AStar.Dev.Infrastructure.FilesDb.Tests.Integration;
diff --git a/test/AStar.Dev.Infrastructure.FilesDb.Tests.Unit/AStar.Dev.Infrastructure.FilesDb.Tests.Unit.csproj b/test/AStar.Dev.Infrastructure.FilesDb.Tests.Unit/AStar.Dev.Infrastructure.FilesDb.Tests.Unit.csproj
index 496984a..03f429d 100644
--- a/test/AStar.Dev.Infrastructure.FilesDb.Tests.Unit/AStar.Dev.Infrastructure.FilesDb.Tests.Unit.csproj
+++ b/test/AStar.Dev.Infrastructure.FilesDb.Tests.Unit/AStar.Dev.Infrastructure.FilesDb.Tests.Unit.csproj
@@ -12,12 +12,18 @@
-
-
-
+
+ all
+ runtime; build; native; contentfiles; analyzers; buildtransitive
+
+
+
-
-
+
+
+ all
+ runtime; build; native; contentfiles; analyzers; buildtransitive
+
all
diff --git a/test/AStar.Dev.Infrastructure.FilesDb.Tests.Unit/Models/DeletionStatusShould.cs b/test/AStar.Dev.Infrastructure.FilesDb.Tests.Unit/Models/DeletionStatusShould.cs
index afdcb41..8fb7a92 100644
--- a/test/AStar.Dev.Infrastructure.FilesDb.Tests.Unit/Models/DeletionStatusShould.cs
+++ b/test/AStar.Dev.Infrastructure.FilesDb.Tests.Unit/Models/DeletionStatusShould.cs
@@ -1,6 +1,5 @@
using AStar.Dev.Infrastructure.FilesDb.Models;
using AStar.Dev.Utilities;
-using Shouldly;
namespace AStar.Dev.Infrastructure.FilesDb.Tests.Unit.Models;
diff --git a/test/AStar.Dev.Infrastructure.FilesDb.Tests.Unit/Models/DirectoryNameShould.cs b/test/AStar.Dev.Infrastructure.FilesDb.Tests.Unit/Models/DirectoryNameShould.cs
index 7ca7500..b2ddd2f 100644
--- a/test/AStar.Dev.Infrastructure.FilesDb.Tests.Unit/Models/DirectoryNameShould.cs
+++ b/test/AStar.Dev.Infrastructure.FilesDb.Tests.Unit/Models/DirectoryNameShould.cs
@@ -1,6 +1,5 @@
using AStar.Dev.Infrastructure.FilesDb.Models;
using AStar.Dev.Utilities;
-using Shouldly;
namespace AStar.Dev.Infrastructure.FilesDb.Tests.Unit.Models;
@@ -8,7 +7,7 @@ public class DirectoryNameShould
{
[Fact]
public void ContainTheExpectedProperties()
- => new DirectoryName ( "test")
+ => new DirectoryName("test")
.ToJson()
.ShouldMatchApproved();
}
diff --git a/test/AStar.Dev.Infrastructure.FilesDb.Tests.Unit/Models/DuplicateDetailShould.cs b/test/AStar.Dev.Infrastructure.FilesDb.Tests.Unit/Models/DuplicateDetailShould.cs
index 93bc491..c479010 100644
--- a/test/AStar.Dev.Infrastructure.FilesDb.Tests.Unit/Models/DuplicateDetailShould.cs
+++ b/test/AStar.Dev.Infrastructure.FilesDb.Tests.Unit/Models/DuplicateDetailShould.cs
@@ -1,6 +1,5 @@
using AStar.Dev.Infrastructure.FilesDb.Models;
using AStar.Dev.Utilities;
-using Shouldly;
namespace AStar.Dev.Infrastructure.FilesDb.Tests.Unit.Models;
@@ -10,13 +9,13 @@ public class DuplicateDetailShould
public void ContainTheExpectedProperties()
=> new DuplicateDetail
{
- FileHandle = new ("mock-file-handle"),
- DirectoryName = new ("mock-directory-name"),
- FileName = new ("mock-file-name"),
+ FileHandle = new("mock-file-handle"),
+ DirectoryName = new("mock-directory-name"),
+ FileName = new("mock-file-name"),
FileSize = 1245,
IsImage = true,
FileLastViewed = new DateTimeOffset(2025, 07, 28, 11, 22, 33, TimeSpan.Zero),
- UpdatedOn = new (2025, 07, 28, 8, 7, 9, TimeSpan.Zero),
+ UpdatedOn = new(2025, 07, 28, 8, 7, 9, TimeSpan.Zero),
MoveRequired = true,
ImageHeight = 123,
ImageWidth = 345,
diff --git a/test/AStar.Dev.Infrastructure.FilesDb.Tests.Unit/Models/EventShould.cs b/test/AStar.Dev.Infrastructure.FilesDb.Tests.Unit/Models/EventShould.cs
index e1ac6bb..beea81b 100644
--- a/test/AStar.Dev.Infrastructure.FilesDb.Tests.Unit/Models/EventShould.cs
+++ b/test/AStar.Dev.Infrastructure.FilesDb.Tests.Unit/Models/EventShould.cs
@@ -1,6 +1,5 @@
using AStar.Dev.Infrastructure.FilesDb.Models;
using AStar.Dev.Utilities;
-using Shouldly;
namespace AStar.Dev.Infrastructure.FilesDb.Tests.Unit.Models;
@@ -13,13 +12,13 @@ public void ShouldContainTheExpectedProperties()
FileName = "FileName",
DirectoryName = "DirectoryName",
FileSize = 124,
- FileCreated = new (2025, 07, 28, 11, 22, 33, TimeSpan.Zero) ,
- FileLastModified = new (2025, 07, 28, 1, 2, 3, TimeSpan.Zero),
+ FileCreated = new(2025, 07, 28, 11, 22, 33, TimeSpan.Zero),
+ FileLastModified = new(2025, 07, 28, 1, 2, 3, TimeSpan.Zero),
Height = 456,
Id = 1324,
UpdatedBy = "TestUser",
Width = 987,
- EventOccurredAt = new (2025, 07, 28, 1, 24, 34, TimeSpan.Zero),
+ EventOccurredAt = new(2025, 07, 28, 1, 24, 34, TimeSpan.Zero),
Handle = "mock-handle",
Type = EventType.Add
}
diff --git a/test/AStar.Dev.Infrastructure.FilesDb.Tests.Unit/Models/FileDetailShould.cs b/test/AStar.Dev.Infrastructure.FilesDb.Tests.Unit/Models/FileDetailShould.cs
index 2dddf93..c57ba51 100644
--- a/test/AStar.Dev.Infrastructure.FilesDb.Tests.Unit/Models/FileDetailShould.cs
+++ b/test/AStar.Dev.Infrastructure.FilesDb.Tests.Unit/Models/FileDetailShould.cs
@@ -1,8 +1,6 @@
using System.IO.Abstractions;
using AStar.Dev.Infrastructure.FilesDb.Models;
-using JetBrains.Annotations;
using NSubstitute;
-using Shouldly;
namespace AStar.Dev.Infrastructure.FilesDb.Tests.Unit.Models;
@@ -16,24 +14,24 @@ public void ReturnTheExpectedToStringRepresentation()
{
Id = new(1),
DirectoryName = new("MockDirectoryName"),
- FileCreated = new (new (2025, 6, 28, 22, 15, 37, DateTimeKind.Utc)),
- FileLastModified = new (new (2025, 6, 28, 22, 15, 37, DateTimeKind.Utc)),
- DeletionStatus =
+ FileCreated = new(new(2025, 6, 28, 22, 15, 37, DateTimeKind.Utc)),
+ FileLastModified = new(new(2025, 6, 28, 22, 15, 37, DateTimeKind.Utc)),
+ DeletionStatus =
new()
{
- SoftDeleted = new DateTimeOffset(new (2025, 6, 28, 22, 21, 37, DateTimeKind.Utc)),
- SoftDeletePending = new DateTimeOffset(new (2025, 6, 28, 22, 22, 37, DateTimeKind.Utc)),
- HardDeletePending = new DateTimeOffset(new (2025, 6, 28, 22, 23, 37, DateTimeKind.Utc))
+ SoftDeleted = new DateTimeOffset(new(2025, 6, 28, 22, 21, 37, DateTimeKind.Utc)),
+ SoftDeletePending = new DateTimeOffset(new(2025, 6, 28, 22, 22, 37, DateTimeKind.Utc)),
+ HardDeletePending = new DateTimeOffset(new(2025, 6, 28, 22, 23, 37, DateTimeKind.Utc))
},
FileName = new("MockFileName"),
FileSize = 1234,
FileHandle = new("MockFileHandle"),
- FileLastViewed = new DateTimeOffset(new (2025, 6, 28, 22, 20, 37, DateTimeKind.Utc)),
+ FileLastViewed = new DateTimeOffset(new(2025, 6, 28, 22, 20, 37, DateTimeKind.Utc)),
IsImage = true,
ImageDetail = new(1234, 5678),
UpdatedBy = "Test User",
- UpdatedOn = new (new (2025, 6, 28, 22, 30, 37, DateTimeKind.Utc)),
- FileClassifications = [new () { Id = 1, Name = "Test Classification", Celebrity = true }],
+ UpdatedOn = new(new(2025, 6, 28, 22, 30, 37, DateTimeKind.Utc)),
+ FileClassifications = [new() { Id = 1, Name = "Test Classification", Celebrity = true }],
MoveRequired = true
};
@@ -43,15 +41,12 @@ public void ReturnTheExpectedToStringRepresentation()
[Fact(Skip = "Dunno why this is failing on the build server but not locally")]
public void ReturnTheExpectedDataFromTheCopyConstructor()
{
- var mockFileInfo = Substitute.For();
+ var mockFileInfo = Substitute.For();
mockFileInfo.Name.Returns("MockFileName");
mockFileInfo.DirectoryName.Returns("MockDirectoryName");
mockFileInfo.Length.Returns(1234);
- var fileDetail = new FileDetail(mockFileInfo)
- {
- FileName = new("Mock File Name"), DirectoryName = new("Mock Directory Name"), UpdatedOn = new (new (2025, 6, 28, 22, 20, 37, DateTimeKind.Utc))
- };
+ var fileDetail = new FileDetail(mockFileInfo) { FileName = new("Mock File Name"), DirectoryName = new("Mock Directory Name"), UpdatedOn = new(new(2025, 6, 28, 22, 20, 37, DateTimeKind.Utc)) };
fileDetail.ToString().ShouldMatchApproved();
}
diff --git a/test/AStar.Dev.Infrastructure.FilesDb.Tests.Unit/Models/FileHandleShould.cs b/test/AStar.Dev.Infrastructure.FilesDb.Tests.Unit/Models/FileHandleShould.cs
index 18e25bf..9eb4d40 100644
--- a/test/AStar.Dev.Infrastructure.FilesDb.Tests.Unit/Models/FileHandleShould.cs
+++ b/test/AStar.Dev.Infrastructure.FilesDb.Tests.Unit/Models/FileHandleShould.cs
@@ -1,7 +1,5 @@
using AStar.Dev.Infrastructure.FilesDb.Models;
using AStar.Dev.Utilities;
-using JetBrains.Annotations;
-using Shouldly;
namespace AStar.Dev.Infrastructure.FilesDb.Tests.Unit.Models;
diff --git a/test/AStar.Dev.Infrastructure.FilesDb.Tests.Unit/Models/FileIdShould.cs b/test/AStar.Dev.Infrastructure.FilesDb.Tests.Unit/Models/FileIdShould.cs
index 7f3ba85..cb0adc8 100644
--- a/test/AStar.Dev.Infrastructure.FilesDb.Tests.Unit/Models/FileIdShould.cs
+++ b/test/AStar.Dev.Infrastructure.FilesDb.Tests.Unit/Models/FileIdShould.cs
@@ -1,6 +1,5 @@
using AStar.Dev.Infrastructure.FilesDb.Models;
using AStar.Dev.Utilities;
-using Shouldly;
namespace AStar.Dev.Infrastructure.FilesDb.Tests.Unit.Models;
diff --git a/test/AStar.Dev.Infrastructure.FilesDb.Tests.Unit/Models/FileNamePartShould.cs b/test/AStar.Dev.Infrastructure.FilesDb.Tests.Unit/Models/FileNamePartShould.cs
index a9104d1..6386340 100644
--- a/test/AStar.Dev.Infrastructure.FilesDb.Tests.Unit/Models/FileNamePartShould.cs
+++ b/test/AStar.Dev.Infrastructure.FilesDb.Tests.Unit/Models/FileNamePartShould.cs
@@ -1,7 +1,5 @@
using AStar.Dev.Infrastructure.FilesDb.Models;
using AStar.Dev.Utilities;
-using JetBrains.Annotations;
-using Shouldly;
namespace AStar.Dev.Infrastructure.FilesDb.Tests.Unit.Models;
@@ -10,6 +8,6 @@ public class FileNamePartShould
{
[Fact]
public void ContainTheExpectedProperties()
- => new FileNamePart { Id = 1, Text = "Mock Text", FileClassifications = new List { new () { Id = 1, Celebrity = true, Name = "Mock Classification" } } }.ToJson()
- .ShouldMatchApproved();
+ => new FileNamePart { Id = 1, Text = "Mock Text", FileClassifications = new List { new() { Id = 1, Celebrity = true, Name = "Mock Classification" } } }.ToJson()
+ .ShouldMatchApproved();
}
diff --git a/test/AStar.Dev.Infrastructure.FilesDb.Tests.Unit/Models/FileNameShould.cs b/test/AStar.Dev.Infrastructure.FilesDb.Tests.Unit/Models/FileNameShould.cs
index 924e2d3..f701931 100644
--- a/test/AStar.Dev.Infrastructure.FilesDb.Tests.Unit/Models/FileNameShould.cs
+++ b/test/AStar.Dev.Infrastructure.FilesDb.Tests.Unit/Models/FileNameShould.cs
@@ -1,6 +1,5 @@
using AStar.Dev.Infrastructure.FilesDb.Models;
using AStar.Dev.Utilities;
-using Shouldly;
namespace AStar.Dev.Infrastructure.FilesDb.Tests.Unit.Models;
@@ -8,7 +7,7 @@ public class FileNameShould
{
[Fact]
public void ContainTheExpectedProperties()
- => new FileName ("mock-file-name")
+ => new FileName("mock-file-name")
.ToJson()
.ShouldMatchApproved();
}
diff --git a/test/AStar.Dev.Infrastructure.FilesDb.Tests.Unit/Models/FileSizeEqualityComparerShould.cs b/test/AStar.Dev.Infrastructure.FilesDb.Tests.Unit/Models/FileSizeEqualityComparerShould.cs
index 1de9b2b..5653d37 100644
--- a/test/AStar.Dev.Infrastructure.FilesDb.Tests.Unit/Models/FileSizeEqualityComparerShould.cs
+++ b/test/AStar.Dev.Infrastructure.FilesDb.Tests.Unit/Models/FileSizeEqualityComparerShould.cs
@@ -1,5 +1,4 @@
using AStar.Dev.Infrastructure.FilesDb.Models;
-using Shouldly;
namespace AStar.Dev.Infrastructure.FilesDb.Tests.Unit.Models;
diff --git a/test/AStar.Dev.Infrastructure.FilesDb.Tests.Unit/Models/FileSizeShould.cs b/test/AStar.Dev.Infrastructure.FilesDb.Tests.Unit/Models/FileSizeShould.cs
index ae5d3d6..456faec 100644
--- a/test/AStar.Dev.Infrastructure.FilesDb.Tests.Unit/Models/FileSizeShould.cs
+++ b/test/AStar.Dev.Infrastructure.FilesDb.Tests.Unit/Models/FileSizeShould.cs
@@ -1,6 +1,5 @@
using AStar.Dev.Infrastructure.FilesDb.Models;
using AStar.Dev.Utilities;
-using Shouldly;
namespace AStar.Dev.Infrastructure.FilesDb.Tests.Unit.Models;
diff --git a/test/AStar.Dev.Infrastructure.FilesDb.Tests.Unit/Models/ImageDetailShould.cs b/test/AStar.Dev.Infrastructure.FilesDb.Tests.Unit/Models/ImageDetailShould.cs
index 041fba4..792fa02 100644
--- a/test/AStar.Dev.Infrastructure.FilesDb.Tests.Unit/Models/ImageDetailShould.cs
+++ b/test/AStar.Dev.Infrastructure.FilesDb.Tests.Unit/Models/ImageDetailShould.cs
@@ -1,6 +1,5 @@
using AStar.Dev.Infrastructure.FilesDb.Models;
using AStar.Dev.Utilities;
-using Shouldly;
namespace AStar.Dev.Infrastructure.FilesDb.Tests.Unit.Models;
@@ -8,7 +7,7 @@ public class ImageDetailShould
{
[Fact]
public void ContainTheExpectedProperties()
- => new ImageDetail ( 123, 456)
+ => new ImageDetail(123, 456)
.ToJson()
.ShouldMatchApproved();
}
diff --git a/test/AStar.Dev.Infrastructure.FilesDb.Tests.Unit/Models/ImageDetailsShould.cs b/test/AStar.Dev.Infrastructure.FilesDb.Tests.Unit/Models/ImageDetailsShould.cs
index e85af90..d5a2c3d 100644
--- a/test/AStar.Dev.Infrastructure.FilesDb.Tests.Unit/Models/ImageDetailsShould.cs
+++ b/test/AStar.Dev.Infrastructure.FilesDb.Tests.Unit/Models/ImageDetailsShould.cs
@@ -1,7 +1,5 @@
using AStar.Dev.Infrastructure.FilesDb.Models;
using AStar.Dev.Utilities;
-using JetBrains.Annotations;
-using Shouldly;
namespace AStar.Dev.Infrastructure.FilesDb.Tests.Unit.Models;
diff --git a/test/AStar.Dev.Infrastructure.Tests.Unit/AStar.Dev.Infrastructure.Tests.Unit.csproj b/test/AStar.Dev.Infrastructure.Tests.Unit/AStar.Dev.Infrastructure.Tests.Unit.csproj
index 7a7161e..0c9876e 100644
--- a/test/AStar.Dev.Infrastructure.Tests.Unit/AStar.Dev.Infrastructure.Tests.Unit.csproj
+++ b/test/AStar.Dev.Infrastructure.Tests.Unit/AStar.Dev.Infrastructure.Tests.Unit.csproj
@@ -12,12 +12,18 @@
-
-
-
+
+ all
+ runtime; build; native; contentfiles; analyzers; buildtransitive
+
+
+
-
-
+
+
+ all
+ runtime; build; native; contentfiles; analyzers; buildtransitive
+
diff --git a/test/AStar.Dev.Infrastructure.Tests.Unit/AuditableEntityShould.cs b/test/AStar.Dev.Infrastructure.Tests.Unit/AuditableEntityShould.cs
index 7ca46b5..d4e1854 100644
--- a/test/AStar.Dev.Infrastructure.Tests.Unit/AuditableEntityShould.cs
+++ b/test/AStar.Dev.Infrastructure.Tests.Unit/AuditableEntityShould.cs
@@ -7,7 +7,7 @@ public class AuditableEntityShould
{
[Fact]
public void ContainTheExpectedProperties()
- => new MockAuditableEntity { UpdatedBy = "Test User", UpdatedOn = new (2000, 1, 1, 0, 0, 0, TimeSpan.Zero) }
+ => new MockAuditableEntity { UpdatedBy = "Test User", UpdatedOn = new(2000, 1, 1, 0, 0, 0, TimeSpan.Zero) }
.ToJson()
.ShouldMatchApproved();
diff --git a/test/AStar.Dev.Technical.Debt.Reporting.Tests.Unit/AStar.Dev.Technical.Debt.Reporting.Tests.Unit.csproj b/test/AStar.Dev.Technical.Debt.Reporting.Tests.Unit/AStar.Dev.Technical.Debt.Reporting.Tests.Unit.csproj
index 981827c..c9109a6 100644
--- a/test/AStar.Dev.Technical.Debt.Reporting.Tests.Unit/AStar.Dev.Technical.Debt.Reporting.Tests.Unit.csproj
+++ b/test/AStar.Dev.Technical.Debt.Reporting.Tests.Unit/AStar.Dev.Technical.Debt.Reporting.Tests.Unit.csproj
@@ -19,9 +19,9 @@
-
+
-
+
all
runtime; build; native; contentfiles; analyzers; buildtransitive
diff --git a/test/AStar.Dev.Technical.Debt.Reporting.Tests.Unit/RefactorAttributeShould.cs b/test/AStar.Dev.Technical.Debt.Reporting.Tests.Unit/RefactorAttributeShould.cs
index dfcc4b4..f5cad87 100644
--- a/test/AStar.Dev.Technical.Debt.Reporting.Tests.Unit/RefactorAttributeShould.cs
+++ b/test/AStar.Dev.Technical.Debt.Reporting.Tests.Unit/RefactorAttributeShould.cs
@@ -15,10 +15,9 @@ public void ShouldContainOnlyExpectedPublicPropertiesWithCorrectValues()
var expectedProperties = new[]
{
- new { Name = "PainEstimate", Type = typeof(int), Value = (object)expectedPainEstimate },
- new { Name = "HoursToResolve", Type = typeof(int), Value = (object)expectedHoursToResolve },
- new { Name = "Description", Type = typeof(string), Value = (object)expectedDescription },
- new { Name = "TypeId", Type = typeof(object), Value = attribute.TypeId }
+ new { Name = "PainEstimate", Type = typeof(int), Value = (object)expectedPainEstimate },
+ new { Name = "HoursToResolve", Type = typeof(int), Value = (object)expectedHoursToResolve },
+ new { Name = "Description", Type = typeof(string), Value = (object)expectedDescription }, new { Name = "TypeId", Type = typeof(object), Value = attribute.TypeId }
};
var actualProperties = typeof(RefactorAttribute)
@@ -26,7 +25,7 @@ public void ShouldContainOnlyExpectedPublicPropertiesWithCorrectValues()
actualProperties.Length.ShouldBe(expectedProperties.Length);
- foreach (var expected in expectedProperties)
+ foreach(var expected in expectedProperties)
{
var actual = actualProperties.SingleOrDefault(p => p.Name == expected.Name);
actual.ShouldNotBeNull();
diff --git a/test/AStar.Dev.Utilities.Tests.Unit/AStar.Dev.Utilities.Tests.Unit.csproj b/test/AStar.Dev.Utilities.Tests.Unit/AStar.Dev.Utilities.Tests.Unit.csproj
index c89ed37..0aa3fd5 100644
--- a/test/AStar.Dev.Utilities.Tests.Unit/AStar.Dev.Utilities.Tests.Unit.csproj
+++ b/test/AStar.Dev.Utilities.Tests.Unit/AStar.Dev.Utilities.Tests.Unit.csproj
@@ -18,10 +18,10 @@
runtime; build; native; contentfiles; analyzers; buildtransitive
-
+
-
+
all
runtime; build; native; contentfiles; analyzers; buildtransitive
diff --git a/test/AStar.Dev.Utilities.Tests.Unit/StringExtensionsShould.cs b/test/AStar.Dev.Utilities.Tests.Unit/StringExtensionsShould.cs
index 2c80eb3..7a4a5cd 100644
--- a/test/AStar.Dev.Utilities.Tests.Unit/StringExtensionsShould.cs
+++ b/test/AStar.Dev.Utilities.Tests.Unit/StringExtensionsShould.cs
@@ -2,11 +2,11 @@
public sealed class StringExtensionsShould
{
- private const string AnyJson = "{\"AnyInt\":0,\"AnyString\":\"\"}";
- private const string NotNullString = "value does not matter";
- private const string WhitespaceString = " ";
+ private const string AnyJson = "{\"AnyInt\":0,\"AnyString\":\"\"}";
+ private const string NotNullString = "value does not matter";
+ private const string WhitespaceString = " ";
#pragma warning disable CA1805
- private readonly string? nullString = null;
+ private readonly string? nullString = null;
#pragma warning restore CA1805
[Fact]
@@ -47,18 +47,18 @@ public void ContainTheIsImageExtensionReturningTheExpectedResults(string fileNam
fileName.IsImage().ShouldBe(expectedResponse);
[Theory]
- [InlineData("no-Truncation", 20, "no-Truncation")]
- [InlineData("Small-String-Truncation.txt", 10, "Small-Stri")]
- [InlineData("Small-String-Truncation.DOC", 15, "Small-String-Tr")]
- [InlineData("Small-String-Truncation.PdF", 20, "Small-String-Truncat")]
- [InlineData("Large-String-Large-String-Large-String-Large-String-Large-String-Large-String-Large-String-Large-String-Large-String-Large-String-Large-String-Large-String--Truncation.jpG", 100,
+ [InlineData("no-Truncation", 20, "no-Truncation")]
+ [InlineData("Small-String-Truncation.txt", 10, "Small-Stri")]
+ [InlineData("Small-String-Truncation.DOC", 15, "Small-String-Tr")]
+ [InlineData("Small-String-Truncation.PdF", 20, "Small-String-Truncat")]
+ [InlineData("Large-String-Large-String-Large-String-Large-String-Large-String-Large-String-Large-String-Large-String-Large-String-Large-String-Large-String-Large-String--Truncation.jpG", 100,
"Large-String-Large-String-Large-String-Large-String-Large-String-Large-String-Large-String-Large-Str")]
- [InlineData("Large-String-Large-String-Large-String-Large-String-Large-String-Large-String-Large-String-Large-String-Large-String-Large-String-Large-String-Large-String--Truncation.jpeG", 120,
+ [InlineData("Large-String-Large-String-Large-String-Large-String-Large-String-Large-String-Large-String-Large-String-Large-String-Large-String-Large-String-Large-String--Truncation.jpeG", 120,
"Large-String-Large-String-Large-String-Large-String-Large-String-Large-String-Large-String-Large-String-Large-String-Lar")]
- [InlineData("Large-String-Large-String-Large-String-Large-String-Large-String-Large-String-Large-String-Large-String-Large-String-Large-String-Large-String-Large-String--Truncation.bmp", 140,
+ [InlineData("Large-String-Large-String-Large-String-Large-String-Large-String-Large-String-Large-String-Large-String-Large-String-Large-String-Large-String-Large-String--Truncation.bmp", 140,
"Large-String-Large-String-Large-String-Large-String-Large-String-Large-String-Large-String-Large-String-Large-String-Large-String-Large-Stri")]
- [InlineData("Write-Truncation.png", 10, "Write-Trun")]
- [InlineData("Large-String-Large-String-Large-String-Large-String-Large-String-Large-String-Large-String-Large-String-Large-String-Large-String-Large-String-Large-String--Truncation.gif", 160,
+ [InlineData("Write-Truncation.png", 10, "Write-Trun")]
+ [InlineData("Large-String-Large-String-Large-String-Large-String-Large-String-Large-String-Large-String-Large-String-Large-String-Large-String-Large-String-Large-String--Truncation.gif", 160,
"Large-String-Large-String-Large-String-Large-String-Large-String-Large-String-Large-String-Large-String-Large-String-Large-String-Large-String-Large-String--Tru")]
public void ContainTheTruncateIfRequiredReturningTheExpectedResults(string fileName, int truncateLength, string expectedResponse) =>
fileName.TruncateIfRequired(truncateLength).ShouldBe(expectedResponse);