Skip to content

Commit 2315842

Browse files
v2.0.0 (New library naming) (#4)
* Renaming the packages from PosInformatique.UnitTests.Databases to PosInformatique.UnitTests.Databases
1 parent 694d4aa commit 2315842

File tree

153 files changed

+296
-293
lines changed

Some content is hidden

Large Commits have some content hidden by default. Use the searchbox below for content that may be hidden.

153 files changed

+296
-293
lines changed

.github/workflows/github-actions-ci.yaml

+8-8
Original file line numberDiff line numberDiff line change
@@ -16,27 +16,27 @@ jobs:
1616
uses: nuget/setup-nuget@v2
1717

1818
- name: Restore NuGet packages
19-
run: nuget restore PosInformatique.UnitTests.Databases.sln
19+
run: nuget restore PosInformatique.Testing.Databases.sln
2020

2121
- name: Add msbuild to PATH
2222
uses: microsoft/setup-msbuild@v2
2323

2424
- name: Build
25-
run: msbuild "PosInformatique.UnitTests.Databases.sln" /p:Configuration=Debug
25+
run: msbuild "PosInformatique.Testing.Databases.sln" /p:Configuration=Debug
2626

2727
- name: Restore NuGet packages
28-
run: nuget restore "samples/PosInformatique.UnitTests.Databases.Samples.sln"
28+
run: nuget restore "samples/PosInformatique.Testing.Databases.Samples.sln"
2929

3030
- name: Build the samples
31-
run: msbuild "samples/PosInformatique.UnitTests.Databases.Samples.sln" /p:Configuration=Debug
31+
run: msbuild "samples/PosInformatique.Testing.Databases.Samples.sln" /p:Configuration=Debug
3232

33-
- name: Creates the LocalDB for the unit tests
33+
- name: Creates the LocalDB for the tests
3434
shell: cmd
35-
run: SqlLocalDB create posinfo-unit-tests
35+
run: SqlLocalDB create posinfo-tests
3636

37-
- name: Creates the SQL Login service accounts for the unit tests
37+
- name: Creates the SQL Login service accounts for the tests
3838
shell: cmd
39-
run: sqlcmd -S "(localDB)\posinfo-unit-tests" -Q "IF NOT EXISTS (SELECT 1 FROM [sys].[server_principals] WHERE [Name] = 'ServiceAccountLogin') CREATE LOGIN [ServiceAccountLogin] WITH PASSWORD = 'P@ssw0rd'"
39+
run: sqlcmd -S "(localDB)\posinfo-tests" -Q "IF NOT EXISTS (SELECT 1 FROM [sys].[server_principals] WHERE [Name] = 'ServiceAccountLogin') CREATE LOGIN [ServiceAccountLogin] WITH PASSWORD = 'P@ssw0rd'"
4040

4141
# Use this fix https://github.com/microsoft/vstest-action/issues/31#issuecomment-2159463764
4242
- name: Test with the dotnet CLI

.github/workflows/github-actions-release.yml

+6-6
Original file line numberDiff line numberDiff line change
@@ -25,26 +25,26 @@ jobs:
2525
with:
2626
dotnet-version: '8.x'
2727

28-
- name: Build UnitTests.Databases.SqlServer
28+
- name: Build Testing.Databases.SqlServer
2929
run: dotnet pack
3030
--property:Configuration=Release
3131
--property:VersionPrefix=${{ github.event.inputs.VersionPrefix }}
3232
--property:VersionSuffix=${{ github.event.inputs.VersionSuffix }}
33-
"src/UnitTests.Databases.SqlServer/UnitTests.Databases.SqlServer.csproj"
33+
"src/Testing.Databases.SqlServer/Testing.Databases.SqlServer.csproj"
3434

35-
- name: Build UnitTests.Databases.SqlServer.EntityFramework
35+
- name: Build Testing.Databases.SqlServer.EntityFramework
3636
run: dotnet pack
3737
--property:Configuration=Release
3838
--property:VersionPrefix=${{ github.event.inputs.VersionPrefix }}
3939
--property:VersionSuffix=${{ github.event.inputs.VersionSuffix }}
40-
"src/UnitTests.Databases.SqlServer.EntityFramework/UnitTests.Databases.SqlServer.EntityFramework.csproj"
40+
"src/Testing.Databases.SqlServer.EntityFramework/Testing.Databases.SqlServer.EntityFramework.csproj"
4141

42-
- name: Build UnitTests.Databases.SqlServer.Dac
42+
- name: Build Testing.Databases.SqlServer.Dac
4343
run: dotnet pack
4444
--property:Configuration=Release
4545
--property:VersionPrefix=${{ github.event.inputs.VersionPrefix }}
4646
--property:VersionSuffix=${{ github.event.inputs.VersionSuffix }}
47-
"src/UnitTests.Databases.SqlServer.Dac/UnitTests.Databases.SqlServer.Dac.csproj"
47+
"src/Testing.Databases.SqlServer.Dac/Testing.Databases.SqlServer.Dac.csproj"
4848

4949
- name: Publish the package to nuget.org
5050
run: dotnet nuget push "src/**/bin/Release/*.nupkg" --api-key "${{ secrets.NUGET_APIKEY }}" --source https://api.nuget.org/v3/index.json

Directory.Build.props

+1-1
Original file line numberDiff line numberDiff line change
@@ -6,7 +6,7 @@
66
<Company>P.O.S Informatique</Company>
77
<Product>P.O.S Informatique</Product>
88
<Copyright>Copyright (c) P.O.S Informatique. All rights reserved.</Copyright>
9-
<RepositoryUrl>https://github.com/PosInformatique/PosInformatique.UnitTests.Databases</RepositoryUrl>
9+
<RepositoryUrl>https://github.com/PosInformatique/PosInformatique.Testing.Databases</RepositoryUrl>
1010
<RepositoryType>git</RepositoryType>
1111

1212
<!-- Enable the last version of C# -->

PosInformatique.UnitTests.Databases.sln PosInformatique.Testing.Databases.sln

+10-10
Original file line numberDiff line numberDiff line change
@@ -15,23 +15,23 @@ Project("{2150E333-8FDC-42A3-9474-1A3956D46DE8}") = "Solution Items", "Solution
1515
stylecop.json = stylecop.json
1616
EndProjectSection
1717
EndProject
18-
Project("{9A19103F-16F7-4668-BE54-9A1E7A4F7556}") = "UnitTests.Databases.SqlServer", "src\UnitTests.Databases.SqlServer\UnitTests.Databases.SqlServer.csproj", "{4CE1DA94-B254-45D3-8014-EB8055E38A01}"
18+
Project("{9A19103F-16F7-4668-BE54-9A1E7A4F7556}") = "Testing.Databases.SqlServer", "src\Testing.Databases.SqlServer\Testing.Databases.SqlServer.csproj", "{4CE1DA94-B254-45D3-8014-EB8055E38A01}"
1919
EndProject
2020
Project("{2150E333-8FDC-42A3-9474-1A3956D46DE8}") = "tests", "tests", "{1E437195-1225-443D-BD19-8796F31B1E2B}"
2121
ProjectSection(SolutionItems) = preProject
2222
tests\.editorconfig = tests\.editorconfig
2323
tests\Directory.Build.props = tests\Directory.Build.props
2424
EndProjectSection
2525
EndProject
26-
Project("{9A19103F-16F7-4668-BE54-9A1E7A4F7556}") = "UnitTests.Databases.SqlServer.Tests", "tests\UnitTests.Databases.SqlServer.Tests\UnitTests.Databases.SqlServer.Tests.csproj", "{C87E8F0D-D96D-4D77-9713-5564DC2E3597}"
26+
Project("{9A19103F-16F7-4668-BE54-9A1E7A4F7556}") = "Testing.Databases.SqlServer.Tests", "tests\Testing.Databases.SqlServer.Tests\Testing.Databases.SqlServer.Tests.csproj", "{C87E8F0D-D96D-4D77-9713-5564DC2E3597}"
2727
EndProject
2828
Project("{2150E333-8FDC-42A3-9474-1A3956D46DE8}") = "src", "src", "{49103176-7D08-4386-B445-76E9823503F8}"
2929
ProjectSection(SolutionItems) = preProject
3030
src\.editorconfig = src\.editorconfig
3131
src\Directory.Build.props = src\Directory.Build.props
3232
EndProjectSection
3333
EndProject
34-
Project("{00D1A9C2-B5F0-4AF3-8072-F6C62B433612}") = "UnitTests.Databases.SqlServer.Tests.DacPac", "tests\UnitTests.Databases.SqlServer.Tests.DacPac\UnitTests.Databases.SqlServer.Tests.DacPac.sqlproj", "{5F618225-0E1C-46A7-BBCC-23A6243D5CEE}"
34+
Project("{00D1A9C2-B5F0-4AF3-8072-F6C62B433612}") = "Testing.Databases.SqlServer.Tests.DacPac", "tests\Testing.Databases.SqlServer.Tests.DacPac\Testing.Databases.SqlServer.Tests.DacPac.sqlproj", "{5F618225-0E1C-46A7-BBCC-23A6243D5CEE}"
3535
EndProject
3636
Project("{2150E333-8FDC-42A3-9474-1A3956D46DE8}") = ".github", ".github", "{91BFD2B1-6AB6-4B07-9D2E-430C93F150D4}"
3737
EndProject
@@ -41,21 +41,21 @@ Project("{2150E333-8FDC-42A3-9474-1A3956D46DE8}") = "workflows", "workflows", "{
4141
.github\workflows\github-actions-release.yml = .github\workflows\github-actions-release.yml
4242
EndProjectSection
4343
EndProject
44-
Project("{00D1A9C2-B5F0-4AF3-8072-F6C62B433612}") = "UnitTests.Databases.SqlServer.Tests.Source", "tests\UnitTests.Databases.SqlServer.Tests.Source\UnitTests.Databases.SqlServer.Tests.Source.sqlproj", "{A261D4FF-9BEA-475C-8671-E9BACFDCE960}"
44+
Project("{00D1A9C2-B5F0-4AF3-8072-F6C62B433612}") = "Testing.Databases.SqlServer.Tests.Source", "tests\Testing.Databases.SqlServer.Tests.Source\Testing.Databases.SqlServer.Tests.Source.sqlproj", "{A261D4FF-9BEA-475C-8671-E9BACFDCE960}"
4545
EndProject
46-
Project("{00D1A9C2-B5F0-4AF3-8072-F6C62B433612}") = "UnitTests.Databases.SqlServer.Tests.Target", "tests\UnitTests.Databases.SqlServer.Tests.Target\UnitTests.Databases.SqlServer.Tests.Target.sqlproj", "{6CD3F177-053F-4816-A37E-5CA6F293D34C}"
46+
Project("{00D1A9C2-B5F0-4AF3-8072-F6C62B433612}") = "Testing.Databases.SqlServer.Tests.Target", "tests\Testing.Databases.SqlServer.Tests.Target\Testing.Databases.SqlServer.Tests.Target.sqlproj", "{6CD3F177-053F-4816-A37E-5CA6F293D34C}"
4747
EndProject
48-
Project("{9A19103F-16F7-4668-BE54-9A1E7A4F7556}") = "UnitTests.Databases.SqlServer.EntityFramework", "src\UnitTests.Databases.SqlServer.EntityFramework\UnitTests.Databases.SqlServer.EntityFramework.csproj", "{157DDF0D-9410-4646-94B9-9CEE4C140F5E}"
48+
Project("{9A19103F-16F7-4668-BE54-9A1E7A4F7556}") = "Testing.Databases.SqlServer.EntityFramework", "src\Testing.Databases.SqlServer.EntityFramework\Testing.Databases.SqlServer.EntityFramework.csproj", "{157DDF0D-9410-4646-94B9-9CEE4C140F5E}"
4949
EndProject
50-
Project("{9A19103F-16F7-4668-BE54-9A1E7A4F7556}") = "UnitTests.Databases.SqlServer.EntityFramework.Tests", "tests\UnitTests.Databases.SqlServer.EntityFramework.Tests\UnitTests.Databases.SqlServer.EntityFramework.Tests.csproj", "{04A7AE8F-FE77-435B-9250-600388BB8065}"
50+
Project("{9A19103F-16F7-4668-BE54-9A1E7A4F7556}") = "Testing.Databases.SqlServer.EntityFramework.Tests", "tests\Testing.Databases.SqlServer.EntityFramework.Tests\Testing.Databases.SqlServer.EntityFramework.Tests.csproj", "{04A7AE8F-FE77-435B-9250-600388BB8065}"
5151
EndProject
5252
Project("{2150E333-8FDC-42A3-9474-1A3956D46DE8}") = "docs", "docs", "{8500A9B6-CAA0-432C-BABB-DDC86CE08994}"
5353
ProjectSection(SolutionItems) = preProject
54-
docs\WriteUnitTests.md = docs\WriteUnitTests.md
55-
docs\WriteDatabaseMigrationUnitTest.md = docs\WriteDatabaseMigrationUnitTest.md
54+
docs\WriteTest.md = docs\WriteTest.md
55+
docs\WriteDatabaseMigrationTest.md = docs\WriteDatabaseMigrationTest.md
5656
EndProjectSection
5757
EndProject
58-
Project("{FAE04EC0-301F-11D3-BF4B-00C04F79EFBC}") = "UnitTests.Databases.SqlServer.Dac", "src\UnitTests.Databases.SqlServer.Dac\UnitTests.Databases.SqlServer.Dac.csproj", "{8BE60460-EBA5-43DE-B85D-C756E2988DC8}"
58+
Project("{9A19103F-16F7-4668-BE54-9A1E7A4F7556}") = "Testing.Databases.SqlServer.Dac", "src\Testing.Databases.SqlServer.Dac\Testing.Databases.SqlServer.Dac.csproj", "{8BE60460-EBA5-43DE-B85D-C756E2988DC8}"
5959
EndProject
6060
Global
6161
GlobalSection(SolutionConfigurationPlatforms) = preSolution

0 commit comments

Comments
 (0)