diff --git a/.github/workflows/github-actions-ci.yaml b/.github/workflows/github-actions-ci.yaml
index 13a7a7c..7457777 100644
--- a/.github/workflows/github-actions-ci.yaml
+++ b/.github/workflows/github-actions-ci.yaml
@@ -16,27 +16,27 @@ jobs:
uses: nuget/setup-nuget@v2
- name: Restore NuGet packages
- run: nuget restore PosInformatique.UnitTests.Databases.sln
+ run: nuget restore PosInformatique.Testing.Databases.sln
- name: Add msbuild to PATH
uses: microsoft/setup-msbuild@v2
- name: Build
- run: msbuild "PosInformatique.UnitTests.Databases.sln" /p:Configuration=Debug
+ run: msbuild "PosInformatique.Testing.Databases.sln" /p:Configuration=Debug
- name: Restore NuGet packages
- run: nuget restore "samples/PosInformatique.UnitTests.Databases.Samples.sln"
+ run: nuget restore "samples/PosInformatique.Testing.Databases.Samples.sln"
- name: Build the samples
- run: msbuild "samples/PosInformatique.UnitTests.Databases.Samples.sln" /p:Configuration=Debug
+ run: msbuild "samples/PosInformatique.Testing.Databases.Samples.sln" /p:Configuration=Debug
- - name: Creates the LocalDB for the unit tests
+ - name: Creates the LocalDB for the tests
shell: cmd
- run: SqlLocalDB create posinfo-unit-tests
+ run: SqlLocalDB create posinfo-tests
- - name: Creates the SQL Login service accounts for the unit tests
+ - name: Creates the SQL Login service accounts for the tests
shell: cmd
- 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'"
+ 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'"
# Use this fix https://github.com/microsoft/vstest-action/issues/31#issuecomment-2159463764
- name: Test with the dotnet CLI
diff --git a/.github/workflows/github-actions-release.yml b/.github/workflows/github-actions-release.yml
index b0d6b57..11e893c 100644
--- a/.github/workflows/github-actions-release.yml
+++ b/.github/workflows/github-actions-release.yml
@@ -25,26 +25,26 @@ jobs:
with:
dotnet-version: '8.x'
- - name: Build UnitTests.Databases.SqlServer
+ - name: Build Testing.Databases.SqlServer
run: dotnet pack
--property:Configuration=Release
--property:VersionPrefix=${{ github.event.inputs.VersionPrefix }}
--property:VersionSuffix=${{ github.event.inputs.VersionSuffix }}
- "src/UnitTests.Databases.SqlServer/UnitTests.Databases.SqlServer.csproj"
+ "src/Testing.Databases.SqlServer/Testing.Databases.SqlServer.csproj"
- - name: Build UnitTests.Databases.SqlServer.EntityFramework
+ - name: Build Testing.Databases.SqlServer.EntityFramework
run: dotnet pack
--property:Configuration=Release
--property:VersionPrefix=${{ github.event.inputs.VersionPrefix }}
--property:VersionSuffix=${{ github.event.inputs.VersionSuffix }}
- "src/UnitTests.Databases.SqlServer.EntityFramework/UnitTests.Databases.SqlServer.EntityFramework.csproj"
+ "src/Testing.Databases.SqlServer.EntityFramework/Testing.Databases.SqlServer.EntityFramework.csproj"
- - name: Build UnitTests.Databases.SqlServer.Dac
+ - name: Build Testing.Databases.SqlServer.Dac
run: dotnet pack
--property:Configuration=Release
--property:VersionPrefix=${{ github.event.inputs.VersionPrefix }}
--property:VersionSuffix=${{ github.event.inputs.VersionSuffix }}
- "src/UnitTests.Databases.SqlServer.Dac/UnitTests.Databases.SqlServer.Dac.csproj"
+ "src/Testing.Databases.SqlServer.Dac/Testing.Databases.SqlServer.Dac.csproj"
- name: Publish the package to nuget.org
run: dotnet nuget push "src/**/bin/Release/*.nupkg" --api-key "${{ secrets.NUGET_APIKEY }}" --source https://api.nuget.org/v3/index.json
diff --git a/Directory.Build.props b/Directory.Build.props
index b1cd747..47a3a52 100644
--- a/Directory.Build.props
+++ b/Directory.Build.props
@@ -6,7 +6,7 @@
P.O.S InformatiqueP.O.S InformatiqueCopyright (c) P.O.S Informatique. All rights reserved.
- https://github.com/PosInformatique/PosInformatique.UnitTests.Databases
+ https://github.com/PosInformatique/PosInformatique.Testing.Databasesgit
diff --git a/PosInformatique.UnitTests.Databases.sln b/PosInformatique.Testing.Databases.sln
similarity index 75%
rename from PosInformatique.UnitTests.Databases.sln
rename to PosInformatique.Testing.Databases.sln
index 63afd20..d1c2105 100644
--- a/PosInformatique.UnitTests.Databases.sln
+++ b/PosInformatique.Testing.Databases.sln
@@ -15,7 +15,7 @@ Project("{2150E333-8FDC-42A3-9474-1A3956D46DE8}") = "Solution Items", "Solution
stylecop.json = stylecop.json
EndProjectSection
EndProject
-Project("{9A19103F-16F7-4668-BE54-9A1E7A4F7556}") = "UnitTests.Databases.SqlServer", "src\UnitTests.Databases.SqlServer\UnitTests.Databases.SqlServer.csproj", "{4CE1DA94-B254-45D3-8014-EB8055E38A01}"
+Project("{9A19103F-16F7-4668-BE54-9A1E7A4F7556}") = "Testing.Databases.SqlServer", "src\Testing.Databases.SqlServer\Testing.Databases.SqlServer.csproj", "{4CE1DA94-B254-45D3-8014-EB8055E38A01}"
EndProject
Project("{2150E333-8FDC-42A3-9474-1A3956D46DE8}") = "tests", "tests", "{1E437195-1225-443D-BD19-8796F31B1E2B}"
ProjectSection(SolutionItems) = preProject
@@ -23,7 +23,7 @@ Project("{2150E333-8FDC-42A3-9474-1A3956D46DE8}") = "tests", "tests", "{1E437195
tests\Directory.Build.props = tests\Directory.Build.props
EndProjectSection
EndProject
-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}"
+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}"
EndProject
Project("{2150E333-8FDC-42A3-9474-1A3956D46DE8}") = "src", "src", "{49103176-7D08-4386-B445-76E9823503F8}"
ProjectSection(SolutionItems) = preProject
@@ -31,7 +31,7 @@ Project("{2150E333-8FDC-42A3-9474-1A3956D46DE8}") = "src", "src", "{49103176-7D0
src\Directory.Build.props = src\Directory.Build.props
EndProjectSection
EndProject
-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}"
+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}"
EndProject
Project("{2150E333-8FDC-42A3-9474-1A3956D46DE8}") = ".github", ".github", "{91BFD2B1-6AB6-4B07-9D2E-430C93F150D4}"
EndProject
@@ -41,21 +41,21 @@ Project("{2150E333-8FDC-42A3-9474-1A3956D46DE8}") = "workflows", "workflows", "{
.github\workflows\github-actions-release.yml = .github\workflows\github-actions-release.yml
EndProjectSection
EndProject
-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}"
+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}"
EndProject
-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}"
+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}"
EndProject
-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}"
+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}"
EndProject
-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}"
+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}"
EndProject
Project("{2150E333-8FDC-42A3-9474-1A3956D46DE8}") = "docs", "docs", "{8500A9B6-CAA0-432C-BABB-DDC86CE08994}"
ProjectSection(SolutionItems) = preProject
- docs\WriteUnitTests.md = docs\WriteUnitTests.md
- docs\WriteDatabaseMigrationUnitTest.md = docs\WriteDatabaseMigrationUnitTest.md
+ docs\WriteTest.md = docs\WriteTest.md
+ docs\WriteDatabaseMigrationTest.md = docs\WriteDatabaseMigrationTest.md
EndProjectSection
EndProject
-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}"
+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}"
EndProject
Global
GlobalSection(SolutionConfigurationPlatforms) = preSolution
diff --git a/README.md b/README.md
index f59a6ca..af3e966 100644
--- a/README.md
+++ b/README.md
@@ -1,10 +1,10 @@
-# PosInformatique.UnitTests.Databases
+# PosInformatique.Testing.Databases
-**PosInformatique.UnitTests.Databases** is a set of tools for unit testing databases.
+**PosInformatique.Testing.Databases** is a set of tools for testing databases.
It simplifies writing and executing tests, helping ensure your database and data access code are reliable and bug-free.
It is ideal for developers who want to validate data access based on SQL Server code during their development.
-This set of tools supports unit testing of the persistence layer based on SQL Server.
+This set of tools supports testing of the persistence layer based on SQL Server.
Any kind of data access framework can be used with these tools:
- Raw ADO .NET queries.
- Entity Framework.
@@ -19,26 +19,26 @@ Since the version 2.0.0 this tools provide a comparer to compare the schema of t
## The approach of these tools
-The main approach of these tools is to perform unit tests without using mocking or in-memory alternatives for ADO .NET code or Entity Framework `DbContext`, instead using a real SQL Server database.
+The main approach of these tools is to perform tests without using mocking or in-memory alternatives for ADO .NET code or Entity Framework `DbContext`, instead using a real SQL Server database.
Also, these tools offer simple way to compare two SQL databases to test migration script (or Entity Framework migration) when upgrading a database.
### Why is this approach recommended?
-- Around 30% to 40% of the code in applications is located in the persistence layer or repository components. Because it is hard to unit test, developers often skip testing,
+- Around 30% to 40% of the code in applications is located in the persistence layer or repository components. Because it is hard to test, developers often skip testing,
resulting in lower code coverage.
- When using a mock or in-memory approach for a `DbContext`, you don't truly test the Entity Framework mapping to your database, especially additional SQL constraints like nullability, uniqueness, foreign key cascades, etc.
You also miss technical behaviors like transactions, connection management, triggers, etc.
- When inserting data, it is crucial to ensure that the data in the columns are stored correctly (null/not null values, enum values to numerical values, custom or JSON serialized data, etc.).
- If you use Entity Framework, you can detect warnings/errors raised by the `DbContext` during the development.
-- You perform unit test cases, meaning you write simple tests to validate small features instead of writing complex integration tests.
+- You perform test cases, meaning you write simple tests to validate small features instead of writing complex integration tests.
- When changing the schema of the database, it is important to test and have a *safeguard* to check that the migration script (or Entity Framework migration actions) will update the database to the expected schema.
-## How to unit test a persistence layer
+## How to test a persistence layer
-To perform unit tests of a persistence layer, the approach is straightforward using the Arrange/Act/Assert pattern:
+To perform tests of a persistence layer, the approach is straightforward using the Arrange/Act/Assert pattern:
-Before each unit test (`TestMethod` or `Fact` methods):
+Before each test (`TestMethod` or `Fact` methods):
1. Create an empty database with the SQL schema of the application.
@@ -55,11 +55,11 @@ Before each unit test (`TestMethod` or `Fact` methods):
- If the tested method returns data (performs a SELECT query), assert the returned objects using your favorite assertion framework (e.g., FluentAssertions).
- If the method inserts, updates, or deletes data, assert the content of the tables to check that all data is stored correctly.
-To write a unit test using this approach with the [PosInformatique.UnitTests.Databases](https://github.com/PosInformatique/PosInformatique.UnitTests.Databases) tools, see the [Write unit tests to test the Data Access Layer](./docs/WriteUnitTests.md) page.
+To write a test using this approach with the [PosInformatique.Testing.Databases](https://github.com/PosInformatique/PosInformatique.Testing.Databases) tools, see the [ Write tests to test the persistence layer](./docs/WriteTest.md) page.
-## How to unit test database migration
+## How to test database migration
-To perform unit tests of a database migration, the approach is straightforward and required only a unit test which perform the following actions:
+To perform tests of a database migration, the approach is straightforward and required only a test which perform the following actions:
1. Create an empty database (*initial database*).
@@ -82,15 +82,17 @@ To perform unit tests of a database migration, the approach is straightforward a
> **NB**: The initial database is not necessarily empty. It can be at a specific schema version X if we want to test the migration from version X to Y.
This approach does not test the migration of the data within the database. We can modify this process to inject some data in the first step to test it,
-but writing the unit test can be time-consuming. By focusing on the schema migration of the database, you can verify at least 80-90% of your database
+but writing the test can be time-consuming. By focusing on the schema migration of the database, you can verify at least 80-90% of your database
migration code. It's better than nothing and very useful for detecting issues during development or in a CI process!
-## What do the PosInformatique.UnitTests.Databases tools provide?
+To write a test using this approach with the [PosInformatique.Testing.Databases](https://github.com/PosInformatique/PosInformatique.Testing.Databases) tools, see the [Write tests to test database migration](./docs/WriteDatabaseMigrationTest.md) page.
-Using the previous approach, the [PosInformatique.UnitTests.Databases](https://github.com/PosInformatique/PosInformatique.UnitTests.Databases) libraries allow you to:
+## What do the PosInformatique.Testing.Databases tools provide?
-- Easily deploy a database before each unit test execution.
- Database and schema creation can take a lot of time (around 5 to 10 seconds). The [PosInformatique.UnitTests.Databases](https://github.com/PosInformatique/PosInformatique.UnitTests.Databases) libraries physically create the database during the first unit test execution. For subsequent tests, all data is deleted in the database, which speeds up the unit test execution.
+Using the previous approach, the [PosInformatique.Testing.Databases](https://github.com/PosInformatique/PosInformatique.Testing.Databases) libraries allow you to:
+
+- Easily deploy a database before each test execution.
+ Database and schema creation can take a lot of time (around 5 to 10 seconds). The [PosInformatique.Testing.Databases](https://github.com/PosInformatique/PosInformatique.Testing.Databases) libraries physically create the database during the first test execution. For subsequent tests, all data is deleted in the database, which speeds up the test execution.
- Provide a simple syntax to fill the tables with sample data.
@@ -100,17 +102,17 @@ Using the previous approach, the [PosInformatique.UnitTests.Databases](https://g
## NuGet packages
-The [PosInformatique.UnitTests.Databases](https://github.com/PosInformatique/PosInformatique.UnitTests.Databases) tools are provided in two NuGet packages:
+The [PosInformatique.Testing.Databases](https://github.com/PosInformatique/PosInformatique.Testing.Databases) tools are provided in two NuGet packages:
-- [PosInformatique.UnitTests.Databases.SqlServer](https://www.nuget.org/packages/PosInformatique.UnitTests.Databases.SqlServer) NuGet package which contains:
+- [PosInformatique.Testing.Databases.SqlServer](https://www.nuget.org/packages/PosInformatique.Testing.Databases.SqlServer) NuGet package which contains:
- Helpers to initialize SQL Server databases with sample data.
- Helpers to easily query SQL Server databases.
- Helpers to compare the schema of two SQL Server databases.
-- [PosInformatique.UnitTests.Databases.SqlServer.Dac](https://www.nuget.org/packages/PosInformatique.UnitTests.Databases.SqlServer.Dac) NuGet package which contains:
- - Tools to deploy a SQL Server database using a DACPAC file before each unit test.
+- [PosInformatique.Testing.Databases.SqlServer.Dac](https://www.nuget.org/packages/PosInformatique.Testing.Databases.SqlServer.Dac) NuGet package which contains:
+ - Tools to deploy a SQL Server database using a DACPAC file before each test.
-- [PosInformatique.UnitTests.Databases.SqlServer.EntityFramework](https://www.nuget.org/packages/PosInformatique.UnitTests.Databases.SqlServer.EntityFramework) NuGet package which contains:
+- [PosInformatique.Testing.Databases.SqlServer.EntityFramework](https://www.nuget.org/packages/PosInformatique.Testing.Databases.SqlServer.EntityFramework) NuGet package which contains:
- Tools to deploy a SQL Server database using a DbContext.
## Samples / Demo
@@ -119,38 +121,38 @@ A complete sample solution is available in this repository inside the [samples](
The solution contains the following sample projects:
- [DemoApp.Domain](./samples/DemoApp.Domain/DemoApp.Domain.csproj): Represents the domain of the application with a set of sample business entities.
-- [DemoApp.DataAccessLayer](./samples/DemoApp.DataAccessLayer/DemoApp.DataAccessLayer.csproj): Represents a persistence layer with a set of repositories to unit test.
-- [DemoApp.DataAccessLayer.Tests](./samples/DemoApp.DataAccessLayer.Tests/DemoApp.DataAccessLayer.Tests.csproj): Unit test project to test the [DemoApp.DataAccessLayer](./samples/DemoApp.DataAccessLayer/DemoApp.DataAccessLayer.csproj)
-project using the [PosInformatique.UnitTests.Databases.SqlServer.EntityFramework](https://www.nuget.org/packages/PosInformatique.UnitTests.Databases.SqlServer.EntityFramework) package.
-
-## Writing unit tests for a persistence layer
-
-To write unit tests for a persistence layer, follow the [Write unit tests to test the persistence layer](./docs/WriteUnitTests.md) documentation page, which explains the different steps to perform
-using the [PosInformatique.UnitTests.Databases.SqlServer.EntityFramework](https://www.nuget.org/packages/PosInformatique.UnitTests.Databases.SqlServer.EntityFramework) library:
-
-- [Create the SQL Server instance](./docs/WriteUnitTests.md#create-the-sql-server-instance)
- - [Create the LocalDB instance](./docs/WriteUnitTests.md#create-the-localdb-instance)
-- [Create the unit tests project](./docs/WriteUnitTests.md#create-the-unit-tests-project)
-- [Add the NuGet packages](./docs/WriteUnitTests.md#add-the-nuget-packages)
-- [Unit test class](./docs/WriteUnitTests.md#unit-test-class)
- - [Deploy a new instance of the database from a DbContext](./docs/WriteUnitTests.md#deploy-a-new-instance-of-the-database-from-a-dbcontext)
- - [Parallel execution of the unit tests](./docs/WriteUnitTests.md#parallel-execution-of-the-unit-tests)
- - [Initialize the database data](./docs/WriteUnitTests.md#initializes-the-data-of-the-database)
-- [Write the unit tests for methods that retrieve data](./docs/WriteUnitTests.md#write-the-unit-tests-for-methods-that-retrieve-data)
-- [Write the unit tests for methods that update the data](./docs/WriteUnitTests.md#write-the-unit-tests-for-methods-that-update-the-data)
-- [Execute the unit tests](./docs/WriteUnitTests.md#execute-the-unit-tests)
-- [Check the database state after a unit test has failed](./docs/WriteUnitTests.md#check-the-database-state-after-an-unit-test-has-been-failed)
-
-## Writing unit test to check database migration
-
-To write an unit test to check the migration of database, follow the [Write unit tests to test database migration](./docs/WriteDatabaseMigrationUnitTest.md)
+- [DemoApp.DataAccessLayer](./samples/DemoApp.DataAccessLayer/DemoApp.DataAccessLayer.csproj): Represents a persistence layer with a set of repositories to test.
+- [DemoApp.DataAccessLayer.Tests](./samples/DemoApp.DataAccessLayer.Tests/DemoApp.DataAccessLayer.Tests.csproj): Test project to test the [DemoApp.DataAccessLayer](./samples/DemoApp.DataAccessLayer/DemoApp.DataAccessLayer.csproj)
+project using the [PosInformatique.Testing.Databases.SqlServer.EntityFramework](https://www.nuget.org/packages/PosInformatique.Testing.Databases.SqlServer.EntityFramework) package.
+
+## Writing tests for a persistence layer
+
+To write tests for a persistence layer, follow the [Write tests to test the persistence layer](./docs/WriteTest.md) documentation page, which explains the different steps to perform
+using the [PosInformatique.Testing.Databases.SqlServer.EntityFramework](https://www.nuget.org/packages/PosInformatique.Testing.Databases.SqlServer.EntityFramework) library:
+
+- [Create the SQL Server instance](./docs/WriteTest.md#create-the-sql-server-instance)
+ - [Create the LocalDB instance](./docs/WriteTest.md#create-the-localdb-instance)
+- [Create the tests project](./docs/WriteTest.md#create-the-tests-project)
+- [Add the NuGet packages](./docs/WriteTest.md#add-the-nuget-packages)
+- [Test class](./docs/WriteTest.md#test-class)
+ - [Deploy a new instance of the database from a DbContext](./docs/WriteTest.md#deploy-a-new-instance-of-the-database-from-a-dbcontext)
+ - [Parallel execution of the tests](./docs/WriteTest.md#parallel-execution-of-the-tests)
+ - [Initialize the database data](./docs/WriteTest.md#initializes-the-data-of-the-database)
+- [Write the tests for methods that retrieve data](./docs/WriteTest.md#write-the-tests-for-methods-that-retrieve-data)
+- [Write the tests for methods that update the data](./docs/WriteTest.md#write-the-tests-for-methods-that-update-the-data)
+- [Execute the tests](./docs/WriteTest.md#execute-the-tests)
+- [Check the database state after a test has failed](./docs/WriteTest.md#check-the-database-state-after-an-test-has-been-failed)
+
+## Writing test to check database migration
+
+To write an test to check the migration of database, follow the [Write tests to test database migration](./docs/WriteDatabaseMigrationTest.md)
documentation page.
For Entity Framework migration:
-- [Create the SQL Server instance](./docs/WriteUnitTests.md#create-the-sql-server-instance)
- - [Create the LocalDB instance](./docs/WriteUnitTests.md#create-the-localdb-instance)
-- [Entity Framework migration approach](./docs/WriteDatabaseMigrationUnitTest.md#entity-framework-migration-approach)
- - [Create the unit tests project](./docs/WriteDatabaseMigrationUnitTest.md#create-the-unit-tests-project)
- - [Add the NuGet packages](./docs/WriteDatabaseMigrationUnitTest.md#add-the-nuget-packages)
- - [Write unit test to check the migration of the database](./docs/WriteDatabaseMigrationUnitTest.md#write-unit-test-to-check-the-migration-of-the-database)
- - [Check the report details of the `SqlServerDatabaseComparer` tool](./docs/WriteDatabaseMigrationUnitTest.md#check-the-report-details-of-the-sqlserverdatabasecomparer-tool)
+- [Create the SQL Server instance](./docs/WriteTest.md#create-the-sql-server-instance)
+ - [Create the LocalDB instance](./docs/WriteTest.md#create-the-localdb-instance)
+- [Entity Framework migration approach](./docs/WriteDatabaseMigrationTest.md#entity-framework-migration-approach)
+ - [Create the tests project](./docs/WriteDatabaseMigrationTest.md#create-the-tests-project)
+ - [Add the NuGet packages](./docs/WriteDatabaseMigrationTest.md#add-the-nuget-packages)
+ - [Write test to check the migration of the database](./docs/WriteDatabaseMigrationTest.md#write-test-to-check-the-migration-of-the-database)
+ - [Check the report details of the `SqlServerDatabaseComparer` tool](./docs/WriteDatabaseMigrationTest.md#check-the-report-details-of-the-sqlserverdatabasecomparer-tool)
diff --git a/docs/Schemas.drawio b/docs/Schemas.drawio
index e069b4f..854007d 100644
--- a/docs/Schemas.drawio
+++ b/docs/Schemas.drawio
@@ -60,7 +60,7 @@
-
+
diff --git a/docs/UnitTestExecutionSpeed.png b/docs/TestsExecutionSpeed.png
similarity index 100%
rename from docs/UnitTestExecutionSpeed.png
rename to docs/TestsExecutionSpeed.png
diff --git a/docs/WriteDatabaseMigrationUnitTest.md b/docs/WriteDatabaseMigrationTest.md
similarity index 82%
rename from docs/WriteDatabaseMigrationUnitTest.md
rename to docs/WriteDatabaseMigrationTest.md
index b913a85..2fe85ba 100644
--- a/docs/WriteDatabaseMigrationUnitTest.md
+++ b/docs/WriteDatabaseMigrationTest.md
@@ -1,18 +1,18 @@
-# Write unit tests to test database migration
+# Write tests to test database migration
-This section explain how to write an unit test to test the database migration. The code samples
-used here can be found in the [PosInformatique.UnitTests.Databases.Samples](../samples/PosInformatique.UnitTests.Databases.Samples.sln)
+This section explain how to write an test to test the database migration. The code samples
+used here can be found in the [PosInformatique.Testing.Databases.Samples](../samples/PosInformatique.Testing.Databases.Samples.sln)
solution inside the `samples` directory of the repository.
Before continuing, ensures that you followed these steps in the
-[Write unit tests to test the Data Access Layer](./WriteUnitTests.md) section:
+[Write tests to test the Data Access Layer](./WriteTest.md) section:
-- [Create the SQL Server instance](./WriteUnitTests.md#create-the-sql-server-instance)
- - [Create the LocalDB instance](./WriteUnitTests.md#create-the-localdb-instance)
+- [Create the SQL Server instance](./WriteTest.md#create-the-sql-server-instance)
+ - [Create the LocalDB instance](./WriteTest.md#create-the-localdb-instance)
## Entity Framework migration approach
-In this subsection, we will write a unit test to check that our `DemoAppDbContext` migrations work.
+In this subsection, we will write a test to check that our `DemoAppDbContext` migrations work.
Do not hesitate to read the official [Microsoft Entity Framework migrations documentation](https://learn.microsoft.com/en-us/ef/core/managing-schemas/migrations/) to learn how to generate Entity Framework code.
To execute the migration of our database, we create a simple console application that executes the Entity Framework generated migration code.
@@ -39,10 +39,10 @@ public static class Program
}
```
-In the following section, we will see the step to write a unit test to test the console application which perform
+In the following section, we will see the step to write a test to test the console application which perform
the migration of the database.
-### Create the unit tests project
+### Create the tests project
To test the console application, we create an `xUnit Test Project` in Visual Studio which reference our console application project
that contains the `Main()` method.
@@ -50,7 +50,7 @@ that contains the `Main()` method.
### Add the NuGet packages
In the test project, we add the
-[PosInformatique.UnitTests.Databases.SqlServer.EntityFramework](https://www.nuget.org/packages/PosInformatique.UnitTests.Databases.SqlServer.EntityFramework)
+[PosInformatique.Testing.Databases.SqlServer.EntityFramework](https://www.nuget.org/packages/PosInformatique.Testing.Databases.SqlServer.EntityFramework)
NuGet package.
This package will allow us to:
@@ -58,9 +58,9 @@ This package will allow us to:
- Create the *target database* using the `DemoAppDbContext`.
- Compare the *initial* and *target* databases to check if the console application migrates the *initial* database to the *target* database schema.
-### Write unit test to check the migration of the database
+### Write test to check the migration of the database
-To test if the migration code of the database works, we create a unit test `MigrationWithConsoleApp` which perform the following steps:
+To test if the migration code of the database works, we create a test `MigrationWithConsoleApp` which perform the following steps:
- Create an empty `DemoApp_InitialDatabase` SQL Server database.
- Create a SQL Server database `DemoApp_TargetDatabase` using the `DemoAppDbContext`
- Call the `Main()` method of the console application with the connection string.
@@ -155,8 +155,8 @@ protected override void Up(MigrationBuilder migrationBuilder)
}
```
-Run the `MigrationWithConsoleApp` unit test and you will see that an exception is occured (the unit test failed has been failed).
-If you look at the output of the unit test, you will the following FluentAssertion error message:
+Run the `MigrationWithConsoleApp` test and you will see that an exception is occured (the test failed has been failed).
+If you look at the output of the test, you will the following FluentAssertion error message:
```
Expected differences.IsIdentical to be true because
diff --git a/docs/WriteUnitTests.md b/docs/WriteTest.md
similarity index 69%
rename from docs/WriteUnitTests.md
rename to docs/WriteTest.md
index 524c7f1..60cc4f3 100644
--- a/docs/WriteUnitTests.md
+++ b/docs/WriteTest.md
@@ -1,7 +1,7 @@
-# Write unit tests to test the persistence layer
+# Write tests to test the persistence layer
-This section explain how to write the unit tests to test a persistence layer. The code samples
-used here can be found in the [PosInformatique.UnitTests.Databases.Samples](../samples/PosInformatique.UnitTests.Databases.Samples.sln) solution inside the `samples` directory of the repository.
+This section explain how to write the tests to test a persistence layer. The code samples
+used here can be found in the [PosInformatique.Testing.Databases.Samples](../samples/PosInformatique.Testing.Databases.Samples.sln) solution inside the `samples` directory of the repository.
In this section we will test a repository called `CustomerRepository` inside a project called `DemoApp.DataAccessLayer`:
@@ -90,14 +90,14 @@ public class DemoAppDbContext : DbContext
## Create the SQL Server instance
-Before writing and executing the unit tests for a persistence layer, an instance of SQL Server is required.
+Before writing and executing the tests for a persistence layer, an instance of SQL Server is required.
You can use the following approaches:
- Using LocalDB instance (installed with Visual Studio). No setup is required for the developers on their machine, this is the easy approach recommanded.
- Using SQL Server Express or SQL Server Developer Edition instances. The developers will have to install manually this instance to their computer.
-- Using a docker image of SQL Server. This approach is recommanded if you plan to execute your unit tests on Linux computers / servers.
+- Using a docker image of SQL Server. This approach is recommanded if you plan to execute your tests on Linux computers / servers.
### Create the LocalDB instance
-If you want to use a LocalDB instance to execute your unit tests, execute the following command:
+If you want to use a LocalDB instance to execute your tests, execute the following command:
```cmd
sqllocaldb c
@@ -106,29 +106,29 @@ sqllocaldb c
With:
- ``: The name of the instance to create. For example: `demoapp`.
-## Create the unit tests project
+## Create the tests project
To test the `CustomerRepository`, we create an `xUnit Test Project` in Visual Studio which reference our project that contains the
persistence layer to test.
By using xUnit, we will be able to use a feature called the `Class Fixture`. This xUnit feature allows the xUnit engine to create an instance
-of the class and pass it in the constructor of the unit tests class each time an unit test (`Fact` method) is executed.
+of the class and pass it in the constructor of the tests class each time an test (`Fact` method) is executed.
## Add the NuGet packages
-In the test project, we add the [PosInformatique.UnitTests.Databases.SqlServer.EntityFramework](https://www.nuget.org/packages/PosInformatique.UnitTests.Databases.SqlServer.EntityFramework) NuGet package
+In the test project, we add the [PosInformatique.Testing.Databases.SqlServer.EntityFramework](https://www.nuget.org/packages/PosInformatique.Testing.Databases.SqlServer.EntityFramework) NuGet package
package.
This package will allow to create database based on Entity Framework `DbContext` (The `DemoAppDbContext` in our example).
-## Unit test class
+## Test class
-The unit test class of our repository have to use a component called `SqlServerDatabaseInitializer`. This component contains
-an `Initialize()` method which have to be called before each unit tests. The `Initialize()` method allows to create a database
+The test class of our repository have to use a component called `SqlServerDatabaseInitializer`. This component contains
+an `Initialize()` method which have to be called before each tests. The `Initialize()` method allows to create a database
based on Entity Framework `DbContext`.
-The `SqlServerDatabaseInitializer` instance have to be instantiate only one time for all the unit tests of the class to execute.
-For that, we will implements the `IClassFixture` for our unit test class and we will
+The `SqlServerDatabaseInitializer` instance have to be instantiate only one time for all the tests of the class to execute.
+For that, we will implements the `IClassFixture` for our test class and we will
retrieve the instance as parameter of the `CustomerRepositoryTest()` constructor.
```csharp
@@ -143,20 +143,20 @@ public class CustomerRepositoryTest : IClassFixture NB: To increase the speed of the execution of the unit tests, the `SqlServerDatabaseInitializer.Initialize()` will create physically the database
-at the first unit test execution, and will empty the data for the other unit tests.
+> NB: To increase the speed of the execution of the tests, the `SqlServerDatabaseInitializer.Initialize()` will create physically the database
+at the first test execution, and will empty the data for the other tests.
### Deploy a new instance of the database from a DbContext
To deploy a new instance of the database:
- Creates an instance of the `DbContext` which contains the Entity Framework model that will be use to create the schema of the database.
- Call the `SqlServerDatabaseInitializer.Initialize(DbContext)` with the instance of the DbContext previously instantiated.
-- The `SqlServerDatabase` value returned by a `SqlServerDatabaseInitializer.Initialize(DbContext)` should be stored inside ass private member of the unit tests class.
- This `SqlServerDatabase` will allows to initialize data on the database and can be used in the unit tests to performs some SQL query to assert the tests.
+- The `SqlServerDatabase` value returned by a `SqlServerDatabaseInitializer.Initialize(DbContext)` should be stored inside ass private member of the tests class.
+ This `SqlServerDatabase` will allows to initialize data on the database and can be used in the tests to performs some SQL query to assert the tests.
```csharp
[Collection(DatabaseName)]
@@ -169,19 +169,19 @@ public class CustomerRepositoryTest : IClassFixture(DatabaseName));
+ using var dbContext = new DemoAppDbContext(DatabaseTestsConnectionStrings.CreateDbContextOptions(DatabaseName));
this.database = initializer.Initialize(dbContext);
}
}
```
-The `UnitTestsConnectionStrings` class is just a simple helper class in the unit tests projects which allows to centralize
+The `DatabaseTestsConnectionStrings` class is just a simple helper class in the tests projects which allows to centralize
the connection string and the `DbContextOptions` building.
```csharp
-public static class UnitTestsConnectionStrings
+public static class DatabaseTestsConnectionStrings
{
public static DbContextOptions CreateDbContextOptions(string databaseName)
where TContext : DbContext
@@ -195,22 +195,22 @@ public static class UnitTestsConnectionStrings
```
> NB: We recommand to create this kind of helper which allows to change easily the connection string
-depending of the SQL Server instance your target. It is also very useful if you plan to execute the unit tests
+depending of the SQL Server instance your target. It is also very useful if you plan to execute the tests
in a CI process (Git Actions, Azure Pipelines,...).
-### Parallel execution of the unit tests
+### Parallel execution of the tests
-By default, with XUnit all the unit tests will be executed in parallel. Also, our unit tests in the `CustomerRepositoryTest`
-will works on the same database. It will not work of course, so it is mean that our unit tests must be executed in series
+By default, with XUnit all the tests will be executed in parallel. Also, our tests in the `CustomerRepositoryTest`
+will works on the same database. It will not work of course, so it is mean that our tests must be executed in series
and not in parallel.
-For that, we must add the `Collection` attribute with an unique name to indicate to XUnit that all the unit tests
+For that, we must add the `Collection` attribute with an unique name to indicate to xUnit that all the tests
in the class, must not be executed in parallel.
We recommand to put the name of the database in the arguments of the `Collection` attribute.
-If you plan to write unit tests for different repositories, do not hesitate to use differents databases (we recommand to use the name of the repository tested).
-Using this approach will allows to execute all the unit tests of a class in series, but will allows to execute the unit tests of differents repositories
+If you plan to write tests for different repositories, do not hesitate to use differents databases (we recommand to use the name of the repository tested).
+Using this approach will allows to execute all the tests of a class in series, but will allows to execute the tests of differents repositories
in parallel.
```csharp
@@ -225,11 +225,11 @@ public class CustomerRepositoryTest : IClassFixture(DatabaseName));
+ using var dbContext = new DemoAppDbContext(DatabaseTestsConnectionStrings.CreateDbContextOptions(DatabaseName));
this.database = initializer.Initialize(dbContext);
@@ -295,26 +295,26 @@ public CustomerRepositoryTest(SqlServerDatabaseInitializer initializer)
}
```
-Now, every time we will execute an unit test in the `CustomerRepositoryTest` class,
-a database will be deployed with these 3 `Customer` before the execution of the unit test.
+Now, every time we will execute an test in the `CustomerRepositoryTest` class,
+a database will be deployed with these 3 `Customer` before the execution of the test.
-## Write the unit tests for methods that retrieve data
+## Write the tests for methods that retrieve data
-This section describes how to write an unit test for methods that retrieve data (SELECT queries).
-By respecting the Arrange/Act/Assert pattern, the unit test will peform the following things:
+This section describes how to write an test for methods that retrieve data (SELECT queries).
+By respecting the Arrange/Act/Assert pattern, the test will peform the following things:
- Arrange: Prepare the `DbContext`, the repository to test and the parameters of the method to call.
- Act: Call the method that retrieve the data in the database.
- Assert: The content of the business entity returned by the method must be assert.
-In our `CustomerRepository` class, if we want to test the `GetAsync()` method, we have to write the unit code like that:
+In our `CustomerRepository` class, if we want to test the `GetAsync()` method, we have to write the code like that:
```csharp
[Fact]
public async Task GetAsync()
{
// Arrange
- using var dbContext = new DemoAppDbContext(UnitTestsConnectionStrings.CreateDbContextOptions(DatabaseName));
+ using var dbContext = new DemoAppDbContext(DatabaseTestsConnectionStrings.CreateDbContextOptions(DatabaseName));
var repository = new CustomerRepository(dbContext);
@@ -329,26 +329,26 @@ public async Task GetAsync()
}
```
-Remember that in the previous section, in the constructor of the unit test class, a set of `Customer` are always inserted in the database.
+Remember that in the previous section, in the constructor of the test class, a set of `Customer` are always inserted in the database.
In our case, we use the `Customer` with the `ID` define to `15`.
-## Write the unit tests for methods that update the data
+## Write the tests for methods that update the data
-This section describes how to write an unit test for methods the update data (INSERT, UPDATE, DELETE, ... commands).
-By respecting the Arrange/Act/Assert pattern, the unit test will peform the following things:
+This section describes how to write an test for methods the update data (INSERT, UPDATE, DELETE, ... commands).
+By respecting the Arrange/Act/Assert pattern, the test will peform the following things:
- Arrange: Prepare the `DbContext`, the repository to test and the parameters of the method to call.
- Act: Call the method that update the data in the database.
- Assert: Query the tables in the database and assert the content of it.
-In our `CustomerRepository` class, if we want to test the `CreateAsync()` method, we have to write the unit code like that:
+In our `CustomerRepository` class, if we want to test the `CreateAsync()` method, we have to write the code like that:
```csharp
[Fact]
public async Task CreateAsync()
{
// Arrange
- using var dbContext = new DemoAppDbContext(UnitTestsConnectionStrings.CreateDbContextOptions(DatabaseName));
+ using var dbContext = new DemoAppDbContext(DatabaseTestsConnectionStrings.CreateDbContextOptions(DatabaseName));
var repository = new CustomerRepository(dbContext);
@@ -372,9 +372,9 @@ public async Task CreateAsync()
```
> **NB**: Please stop to contact me about "possible SQL Injection" in my samples code. The SQL code executed
-in the `ExecuteQuery()` is executed only in the unit tests and will never be compiled for the production code!!!
+in the `ExecuteQuery()` is executed only in the tests and will never be compiled for the production code!!!
-In this unit test, we call the `CreateAsync()` method with the `Customer` to insert
+In this test, we call the `CreateAsync()` method with the `Customer` to insert
in the database. In the `Assert` stage, we use the `ExecuteQuery()` helper method on the `SqlServerDatabase`
initialized which allows to retrieve the raw SQL data of the customer inserted.
@@ -383,24 +383,24 @@ to performs assertion of the raw SQL values (rows / columns).
> **Advice**: Developers should test only the "raw" values in the SQL Server table.
Don't use Entity Framework or other framework / helper (even Dapper) and don't wrap the results inside a complex .NET class.
-The main goal of this kind of unit tests, is to assert that the contains of the table
+The main goal of this kind of tests, is to assert that the contains of the table
match perfecly what the `CreateAsync()` should do.
-## Execute the unit tests
+## Execute the tests
-To execute the units, it is very simple, just use your favorite unit tests runner, the Test Explorer in Visual Studio for example,
-and run the unit tests:
+To execute the tests, it is very simple, just use your favorite tests runner, the Test Explorer in Visual Studio for example,
+and run the tests:
-![Unit Test Execution Speed](UnitTestExecutionSpeed.png)
+![Tests Execution Speed](TestsExecutionSpeed.png)
-You will remarks in the previous screenshot, that the execution of one the unit tests is around *10 sec* and the other unit tests
-are executed very faster. This is because the first unit test executed create the database and initialize the schema, the other
-unit tests clean the database before their execution, which is most faster.
+You will remarks in the previous screenshot, that the execution of one the tests is around *10 sec* and the other tests
+are executed very faster. This is because the first test executed create the database and initialize the schema, the other
+ tests clean the database before their execution, which is most faster.
-### Check the database state after an unit test has been failed
+### Check the database state after an test has been failed
-When executing an unit test, if this one failed, developers can check the content of the database.
-This behavior is possible, because the data are not clean after the execution of the unit tests, but only **before** execution the unit test.
+When executing an test, if this one failed, developers can check the content of the database.
+This behavior is possible, because the data are not clean after the execution of the tests, but only **before** execution the test.
For exemple, if we have a wrong assertion raised by Visual Studio:
![Assertion With Exception Thrown](AssertionWithExceptionThrown.png)
diff --git a/samples/DemoApp.DataAccessLayer.Migrations.Tests/DatabaseMigrationTest.cs b/samples/DemoApp.DataAccessLayer.Migrations.Tests/DatabaseMigrationTest.cs
index 4d6e41f..bb05aa4 100644
--- a/samples/DemoApp.DataAccessLayer.Migrations.Tests/DatabaseMigrationTest.cs
+++ b/samples/DemoApp.DataAccessLayer.Migrations.Tests/DatabaseMigrationTest.cs
@@ -8,8 +8,8 @@ namespace PosInformatique.DemoApp.DataAccessLayer.Migrations.Tests
{
using FluentAssertions;
using Microsoft.EntityFrameworkCore;
- using PosInformatique.UnitTests.Databases;
- using PosInformatique.UnitTests.Databases.SqlServer;
+ using PosInformatique.Testing.Databases;
+ using PosInformatique.Testing.Databases.SqlServer;
public class DatabaseMigrationTest
{
diff --git a/samples/DemoApp.DataAccessLayer.Migrations.Tests/DemoApp.DataAccessLayer.Migrations.Tests.csproj b/samples/DemoApp.DataAccessLayer.Migrations.Tests/DemoApp.DataAccessLayer.Migrations.Tests.csproj
index a35f5a9..2d29966 100644
--- a/samples/DemoApp.DataAccessLayer.Migrations.Tests/DemoApp.DataAccessLayer.Migrations.Tests.csproj
+++ b/samples/DemoApp.DataAccessLayer.Migrations.Tests/DemoApp.DataAccessLayer.Migrations.Tests.csproj
@@ -13,7 +13,7 @@
-
+
diff --git a/samples/DemoApp.DataAccessLayer.Tests/CustomerRepositoryTest.cs b/samples/DemoApp.DataAccessLayer.Tests/CustomerRepositoryTest.cs
index dd392c3..4124519 100644
--- a/samples/DemoApp.DataAccessLayer.Tests/CustomerRepositoryTest.cs
+++ b/samples/DemoApp.DataAccessLayer.Tests/CustomerRepositoryTest.cs
@@ -7,7 +7,7 @@
namespace PosInformatique.DemoApp.DataAccessLayer.Tests
{
using FluentAssertions;
- using PosInformatique.UnitTests.Databases.SqlServer;
+ using PosInformatique.Testing.Databases.SqlServer;
[Collection(DatabaseName)]
public class CustomerRepositoryTest : IClassFixture
@@ -19,7 +19,7 @@ public class CustomerRepositoryTest : IClassFixture(DatabaseName));
+ using var dbContext = new DemoAppDbContext(DatabaseTestsConnectionStrings.CreateDbContextOptions(DatabaseName));
this.database = initializer.Initialize(dbContext);
@@ -30,7 +30,7 @@ public CustomerRepositoryTest(SqlServerDatabaseInitializer initializer)
// - Here we force to set the ID of the customer to 15.
this.database.InsertInto("Customer", disableIdentityInsert: true, new { Id = 15, FirstName = "Marcel", LastName = "DUPONT", Revenue = 4852.45 });
- // - Here, to simplify the syntax (recommanded approach) we use an extension method in the unit tests project.
+ // - Here, to simplify the syntax (recommanded approach) we use an extension method in the tests project.
// Using extension methods, make the code more readable.
// Also, we recommand to force to set the IDENTITY column values explicit to avoid
// to update lot of code if you delete some rows later...
@@ -41,7 +41,7 @@ public CustomerRepositoryTest(SqlServerDatabaseInitializer initializer)
public async Task CreateAsync()
{
// Arrange
- using var dbContext = new DemoAppDbContext(UnitTestsConnectionStrings.CreateDbContextOptions(DatabaseName));
+ using var dbContext = new DemoAppDbContext(DatabaseTestsConnectionStrings.CreateDbContextOptions(DatabaseName));
var repository = new CustomerRepository(dbContext);
@@ -71,7 +71,7 @@ public async Task CreateAsync()
public async Task DeleteAsync()
{
// Arrange
- using var dbContext = new DemoAppDbContext(UnitTestsConnectionStrings.CreateDbContextOptions(DatabaseName));
+ using var dbContext = new DemoAppDbContext(DatabaseTestsConnectionStrings.CreateDbContextOptions(DatabaseName));
var repository = new CustomerRepository(dbContext);
@@ -90,7 +90,7 @@ public async Task DeleteAsync()
public async Task DeleteAsync_CustomerNotFound()
{
// Arrange
- using var dbContext = new DemoAppDbContext(UnitTestsConnectionStrings.CreateDbContextOptions(DatabaseName));
+ using var dbContext = new DemoAppDbContext(DatabaseTestsConnectionStrings.CreateDbContextOptions(DatabaseName));
var repository = new CustomerRepository(dbContext);
@@ -107,7 +107,7 @@ await invoking.Should().ThrowExactlyAsync()
public async Task GetAsync()
{
// Arrange
- using var dbContext = new DemoAppDbContext(UnitTestsConnectionStrings.CreateDbContextOptions(DatabaseName));
+ using var dbContext = new DemoAppDbContext(DatabaseTestsConnectionStrings.CreateDbContextOptions(DatabaseName));
var repository = new CustomerRepository(dbContext);
@@ -127,7 +127,7 @@ public async Task GetAsync()
public async Task GetAsync_CustomerNotFound()
{
// Arrange
- using var dbContext = new DemoAppDbContext(UnitTestsConnectionStrings.CreateDbContextOptions(DatabaseName));
+ using var dbContext = new DemoAppDbContext(DatabaseTestsConnectionStrings.CreateDbContextOptions(DatabaseName));
var repository = new CustomerRepository(dbContext);
@@ -144,7 +144,7 @@ await invoking.Should().ThrowExactlyAsync()
public async Task ResetRevenue()
{
// Arrange
- using var dbContext = new DemoAppDbContext(UnitTestsConnectionStrings.CreateDbContextOptions(DatabaseName));
+ using var dbContext = new DemoAppDbContext(DatabaseTestsConnectionStrings.CreateDbContextOptions(DatabaseName));
var repository = new CustomerRepository(dbContext);
diff --git a/samples/DemoApp.DataAccessLayer.Tests/UnitTestsConnectionStrings.cs b/samples/DemoApp.DataAccessLayer.Tests/DatabaseTestsConnectionStrings.cs
similarity index 85%
rename from samples/DemoApp.DataAccessLayer.Tests/UnitTestsConnectionStrings.cs
rename to samples/DemoApp.DataAccessLayer.Tests/DatabaseTestsConnectionStrings.cs
index 213347e..a7c02e9 100644
--- a/samples/DemoApp.DataAccessLayer.Tests/UnitTestsConnectionStrings.cs
+++ b/samples/DemoApp.DataAccessLayer.Tests/DatabaseTestsConnectionStrings.cs
@@ -1,5 +1,5 @@
//-----------------------------------------------------------------------
-//
+//
// Copyright (c) P.O.S Informatique. All rights reserved.
//
//-----------------------------------------------------------------------
@@ -10,9 +10,9 @@ namespace PosInformatique.DemoApp.DataAccessLayer.Tests
///
/// This helper allows to centralize the connection string
- /// and the creation of the for the unit tests.
+ /// and the creation of the for the tests.
///
- public static class UnitTestsConnectionStrings
+ public static class DatabaseTestsConnectionStrings
{
public static DbContextOptions CreateDbContextOptions(string databaseName)
where TContext : DbContext
diff --git a/samples/DemoApp.DataAccessLayer.Tests/DemoApp.DataAccessLayer.Tests.csproj b/samples/DemoApp.DataAccessLayer.Tests/DemoApp.DataAccessLayer.Tests.csproj
index 14a5068..a4d5b7e 100644
--- a/samples/DemoApp.DataAccessLayer.Tests/DemoApp.DataAccessLayer.Tests.csproj
+++ b/samples/DemoApp.DataAccessLayer.Tests/DemoApp.DataAccessLayer.Tests.csproj
@@ -13,7 +13,7 @@
-
+
diff --git a/samples/DemoApp.DataAccessLayer.Tests/DemoAppDatabaseExtensions.cs b/samples/DemoApp.DataAccessLayer.Tests/DemoAppDatabaseExtensions.cs
index f2127b8..0e86818 100644
--- a/samples/DemoApp.DataAccessLayer.Tests/DemoAppDatabaseExtensions.cs
+++ b/samples/DemoApp.DataAccessLayer.Tests/DemoAppDatabaseExtensions.cs
@@ -6,7 +6,7 @@
namespace PosInformatique.DemoApp.DataAccessLayer.Tests
{
- using PosInformatique.UnitTests.Databases.SqlServer;
+ using PosInformatique.Testing.Databases.SqlServer;
///
/// Contains static methods to insert data in the database.
diff --git a/samples/Directory.Packages.props b/samples/Directory.Packages.props
index 622cef4..6728226 100644
--- a/samples/Directory.Packages.props
+++ b/samples/Directory.Packages.props
@@ -11,7 +11,7 @@
-
+
diff --git a/samples/PosInformatique.UnitTests.Databases.Samples.sln b/samples/PosInformatique.Testing.Databases.Samples.sln
similarity index 100%
rename from samples/PosInformatique.UnitTests.Databases.Samples.sln
rename to samples/PosInformatique.Testing.Databases.Samples.sln
diff --git a/src/Directory.Build.props b/src/Directory.Build.props
index 79e1104..688bf32 100644
--- a/src/Directory.Build.props
+++ b/src/Directory.Build.props
@@ -7,7 +7,7 @@
enableIcon.png
- https://github.com/PosInformatique/PosInformatique.UnitTests.Databases
+ https://github.com/PosInformatique/PosInformatique.Testing.DatabasesREADME.mdMIT
@@ -19,7 +19,7 @@
-
+
<_Parameter1>$(AssemblyName).Tests
diff --git a/src/UnitTests.Databases.SqlServer.Dac/Icon.png b/src/Testing.Databases.SqlServer.Dac/Icon.png
similarity index 100%
rename from src/UnitTests.Databases.SqlServer.Dac/Icon.png
rename to src/Testing.Databases.SqlServer.Dac/Icon.png
diff --git a/src/UnitTests.Databases.SqlServer.Dac/SqlServerDacDatabaseInitializer.cs b/src/Testing.Databases.SqlServer.Dac/SqlServerDacDatabaseInitializer.cs
similarity index 94%
rename from src/UnitTests.Databases.SqlServer.Dac/SqlServerDacDatabaseInitializer.cs
rename to src/Testing.Databases.SqlServer.Dac/SqlServerDacDatabaseInitializer.cs
index 426eca7..1724b3e 100644
--- a/src/UnitTests.Databases.SqlServer.Dac/SqlServerDacDatabaseInitializer.cs
+++ b/src/Testing.Databases.SqlServer.Dac/SqlServerDacDatabaseInitializer.cs
@@ -4,12 +4,12 @@
//
//-----------------------------------------------------------------------
-namespace PosInformatique.UnitTests.Databases.SqlServer
+namespace PosInformatique.Testing.Databases.SqlServer
{
using Microsoft.Data.SqlClient;
///
- /// Initializer used to initialize the database for the unit tests.
+ /// Initializer used to initialize the database for the tests.
/// Call the method to initialize a database from
/// a DACPAC file.
///
diff --git a/src/UnitTests.Databases.SqlServer.Dac/SqlServerDacExtensions.cs b/src/Testing.Databases.SqlServer.Dac/SqlServerDacExtensions.cs
similarity index 96%
rename from src/UnitTests.Databases.SqlServer.Dac/SqlServerDacExtensions.cs
rename to src/Testing.Databases.SqlServer.Dac/SqlServerDacExtensions.cs
index 35e2360..e37145f 100644
--- a/src/UnitTests.Databases.SqlServer.Dac/SqlServerDacExtensions.cs
+++ b/src/Testing.Databases.SqlServer.Dac/SqlServerDacExtensions.cs
@@ -4,7 +4,7 @@
//
//-----------------------------------------------------------------------
-namespace PosInformatique.UnitTests.Databases.SqlServer
+namespace PosInformatique.Testing.Databases.SqlServer
{
using Microsoft.SqlServer.Dac;
diff --git a/src/UnitTests.Databases.SqlServer.Dac/UnitTests.Databases.SqlServer.Dac.csproj b/src/Testing.Databases.SqlServer.Dac/Testing.Databases.SqlServer.Dac.csproj
similarity index 53%
rename from src/UnitTests.Databases.SqlServer.Dac/UnitTests.Databases.SqlServer.Dac.csproj
rename to src/Testing.Databases.SqlServer.Dac/Testing.Databases.SqlServer.Dac.csproj
index c0a14ef..63d2390 100644
--- a/src/UnitTests.Databases.SqlServer.Dac/UnitTests.Databases.SqlServer.Dac.csproj
+++ b/src/Testing.Databases.SqlServer.Dac/Testing.Databases.SqlServer.Dac.csproj
@@ -3,7 +3,8 @@
net8.0
- UnitTests.Databases.SqlServer.Dac is a library that contains a set of tools for unit testing to deploy DAC (Data-tier Applications) packages (.dacpac files).
+ Testing.Databases.SqlServer.Dac is a library that contains a set of tools for testing to deploy DAC (Data-tier Applications) packages (.dacpac files).
+ testing unittest sqlserver repository tdd dataaccesslayer dacpac dac
@@ -19,7 +20,7 @@
-
+
diff --git a/src/UnitTests.Databases.SqlServer.EntityFramework/EntityFrameworkDatabaseInitializerExtensions.cs b/src/Testing.Databases.SqlServer.EntityFramework/EntityFrameworkDatabaseInitializerExtensions.cs
similarity index 97%
rename from src/UnitTests.Databases.SqlServer.EntityFramework/EntityFrameworkDatabaseInitializerExtensions.cs
rename to src/Testing.Databases.SqlServer.EntityFramework/EntityFrameworkDatabaseInitializerExtensions.cs
index 8fc71d9..7d9db85 100644
--- a/src/UnitTests.Databases.SqlServer.EntityFramework/EntityFrameworkDatabaseInitializerExtensions.cs
+++ b/src/Testing.Databases.SqlServer.EntityFramework/EntityFrameworkDatabaseInitializerExtensions.cs
@@ -4,7 +4,7 @@
//
//-----------------------------------------------------------------------
-namespace PosInformatique.UnitTests.Databases.SqlServer
+namespace PosInformatique.Testing.Databases.SqlServer
{
using Microsoft.Data.SqlClient;
using Microsoft.EntityFrameworkCore;
diff --git a/src/UnitTests.Databases.SqlServer.EntityFramework/EntityFrameworkSqlServerExtensions.cs b/src/Testing.Databases.SqlServer.EntityFramework/EntityFrameworkSqlServerExtensions.cs
similarity index 96%
rename from src/UnitTests.Databases.SqlServer.EntityFramework/EntityFrameworkSqlServerExtensions.cs
rename to src/Testing.Databases.SqlServer.EntityFramework/EntityFrameworkSqlServerExtensions.cs
index 11cf033..73eb0d3 100644
--- a/src/UnitTests.Databases.SqlServer.EntityFramework/EntityFrameworkSqlServerExtensions.cs
+++ b/src/Testing.Databases.SqlServer.EntityFramework/EntityFrameworkSqlServerExtensions.cs
@@ -4,7 +4,7 @@
//
//-----------------------------------------------------------------------
-namespace PosInformatique.UnitTests.Databases.SqlServer
+namespace PosInformatique.Testing.Databases.SqlServer
{
using Microsoft.EntityFrameworkCore;
diff --git a/src/UnitTests.Databases.SqlServer.EntityFramework/Icon.png b/src/Testing.Databases.SqlServer.EntityFramework/Icon.png
similarity index 100%
rename from src/UnitTests.Databases.SqlServer.EntityFramework/Icon.png
rename to src/Testing.Databases.SqlServer.EntityFramework/Icon.png
diff --git a/src/UnitTests.Databases.SqlServer.EntityFramework/UnitTests.Databases.SqlServer.EntityFramework.csproj b/src/Testing.Databases.SqlServer.EntityFramework/Testing.Databases.SqlServer.EntityFramework.csproj
similarity index 55%
rename from src/UnitTests.Databases.SqlServer.EntityFramework/UnitTests.Databases.SqlServer.EntityFramework.csproj
rename to src/Testing.Databases.SqlServer.EntityFramework/Testing.Databases.SqlServer.EntityFramework.csproj
index f263820..403ab7e 100644
--- a/src/UnitTests.Databases.SqlServer.EntityFramework/UnitTests.Databases.SqlServer.EntityFramework.csproj
+++ b/src/Testing.Databases.SqlServer.EntityFramework/Testing.Databases.SqlServer.EntityFramework.csproj
@@ -4,8 +4,8 @@
net8.0True
- UnitTests.Databases.SqlServer.EntityFramework is a library that contains a set of tools for unit testing Data Access Layer (repositories) based on Entity Framework and SQL Server.
- unittest entityframework sqlserver repository tdd dataaccesslayer
+ Testing.Databases.SqlServer.EntityFramework is a library that contains a set of tools for testing Data Access Layer (repositories) based on Entity Framework and SQL Server.
+ testing unittest entityframework sqlserver repository tdd dataaccesslayer
@@ -21,7 +21,7 @@
-
+
diff --git a/src/UnitTests.Databases.SqlServer/Comparer/ISqlObjectDifferencesVisitor.cs b/src/Testing.Databases.SqlServer/Comparer/ISqlObjectDifferencesVisitor.cs
similarity index 94%
rename from src/UnitTests.Databases.SqlServer/Comparer/ISqlObjectDifferencesVisitor.cs
rename to src/Testing.Databases.SqlServer/Comparer/ISqlObjectDifferencesVisitor.cs
index fe73c4f..f912b8f 100644
--- a/src/UnitTests.Databases.SqlServer/Comparer/ISqlObjectDifferencesVisitor.cs
+++ b/src/Testing.Databases.SqlServer/Comparer/ISqlObjectDifferencesVisitor.cs
@@ -4,7 +4,7 @@
//
//-----------------------------------------------------------------------
-namespace PosInformatique.UnitTests.Databases
+namespace PosInformatique.Testing.Databases
{
internal interface ISqlObjectDifferencesVisitor
{
diff --git a/src/UnitTests.Databases.SqlServer/Comparer/SqlDatabaseComparerOptions.cs b/src/Testing.Databases.SqlServer/Comparer/SqlDatabaseComparerOptions.cs
similarity index 95%
rename from src/UnitTests.Databases.SqlServer/Comparer/SqlDatabaseComparerOptions.cs
rename to src/Testing.Databases.SqlServer/Comparer/SqlDatabaseComparerOptions.cs
index ba3180b..cf2a92d 100644
--- a/src/UnitTests.Databases.SqlServer/Comparer/SqlDatabaseComparerOptions.cs
+++ b/src/Testing.Databases.SqlServer/Comparer/SqlDatabaseComparerOptions.cs
@@ -4,7 +4,7 @@
//
//-----------------------------------------------------------------------
-namespace PosInformatique.UnitTests.Databases
+namespace PosInformatique.Testing.Databases
{
using System.Collections.ObjectModel;
diff --git a/src/UnitTests.Databases.SqlServer/Comparer/SqlDatabaseComparisonResults.cs b/src/Testing.Databases.SqlServer/Comparer/SqlDatabaseComparisonResults.cs
similarity index 98%
rename from src/UnitTests.Databases.SqlServer/Comparer/SqlDatabaseComparisonResults.cs
rename to src/Testing.Databases.SqlServer/Comparer/SqlDatabaseComparisonResults.cs
index 930e0bf..1b4b7b6 100644
--- a/src/UnitTests.Databases.SqlServer/Comparer/SqlDatabaseComparisonResults.cs
+++ b/src/Testing.Databases.SqlServer/Comparer/SqlDatabaseComparisonResults.cs
@@ -4,7 +4,7 @@
//
//-----------------------------------------------------------------------
-namespace PosInformatique.UnitTests.Databases
+namespace PosInformatique.Testing.Databases
{
using System.Collections.ObjectModel;
diff --git a/src/UnitTests.Databases.SqlServer/Comparer/SqlDatabaseComparisonResultsTextGenerator.cs b/src/Testing.Databases.SqlServer/Comparer/SqlDatabaseComparisonResultsTextGenerator.cs
similarity index 99%
rename from src/UnitTests.Databases.SqlServer/Comparer/SqlDatabaseComparisonResultsTextGenerator.cs
rename to src/Testing.Databases.SqlServer/Comparer/SqlDatabaseComparisonResultsTextGenerator.cs
index b0d485e..638d892 100644
--- a/src/UnitTests.Databases.SqlServer/Comparer/SqlDatabaseComparisonResultsTextGenerator.cs
+++ b/src/Testing.Databases.SqlServer/Comparer/SqlDatabaseComparisonResultsTextGenerator.cs
@@ -4,7 +4,7 @@
//
//-----------------------------------------------------------------------
-namespace PosInformatique.UnitTests.Databases
+namespace PosInformatique.Testing.Databases
{
internal sealed class SqlDatabaseComparisonResultsTextGenerator : ISqlObjectDifferencesVisitor, IDisposable
{
diff --git a/src/UnitTests.Databases.SqlServer/Comparer/SqlForeignKeyDifferences.cs b/src/Testing.Databases.SqlServer/Comparer/SqlForeignKeyDifferences.cs
similarity index 97%
rename from src/UnitTests.Databases.SqlServer/Comparer/SqlForeignKeyDifferences.cs
rename to src/Testing.Databases.SqlServer/Comparer/SqlForeignKeyDifferences.cs
index aa61c60..4216a3c 100644
--- a/src/UnitTests.Databases.SqlServer/Comparer/SqlForeignKeyDifferences.cs
+++ b/src/Testing.Databases.SqlServer/Comparer/SqlForeignKeyDifferences.cs
@@ -4,7 +4,7 @@
//
//-----------------------------------------------------------------------
-namespace PosInformatique.UnitTests.Databases
+namespace PosInformatique.Testing.Databases
{
using System.Collections.ObjectModel;
diff --git a/src/UnitTests.Databases.SqlServer/Comparer/SqlIndexDifferences.cs b/src/Testing.Databases.SqlServer/Comparer/SqlIndexDifferences.cs
similarity index 97%
rename from src/UnitTests.Databases.SqlServer/Comparer/SqlIndexDifferences.cs
rename to src/Testing.Databases.SqlServer/Comparer/SqlIndexDifferences.cs
index 3f883d4..953fd6f 100644
--- a/src/UnitTests.Databases.SqlServer/Comparer/SqlIndexDifferences.cs
+++ b/src/Testing.Databases.SqlServer/Comparer/SqlIndexDifferences.cs
@@ -4,7 +4,7 @@
//
//-----------------------------------------------------------------------
-namespace PosInformatique.UnitTests.Databases
+namespace PosInformatique.Testing.Databases
{
using System.Collections.ObjectModel;
diff --git a/src/UnitTests.Databases.SqlServer/Comparer/SqlObjectComparer.cs b/src/Testing.Databases.SqlServer/Comparer/SqlObjectComparer.cs
similarity index 99%
rename from src/UnitTests.Databases.SqlServer/Comparer/SqlObjectComparer.cs
rename to src/Testing.Databases.SqlServer/Comparer/SqlObjectComparer.cs
index cd8254e..31b2ccf 100644
--- a/src/UnitTests.Databases.SqlServer/Comparer/SqlObjectComparer.cs
+++ b/src/Testing.Databases.SqlServer/Comparer/SqlObjectComparer.cs
@@ -4,7 +4,7 @@
//
//-----------------------------------------------------------------------
-namespace PosInformatique.UnitTests.Databases.SqlServer
+namespace PosInformatique.Testing.Databases.SqlServer
{
internal sealed class SqlObjectComparer : ISqlObjectVisitor
{
diff --git a/src/UnitTests.Databases.SqlServer/Comparer/SqlObjectDifferenceType.cs b/src/Testing.Databases.SqlServer/Comparer/SqlObjectDifferenceType.cs
similarity index 95%
rename from src/UnitTests.Databases.SqlServer/Comparer/SqlObjectDifferenceType.cs
rename to src/Testing.Databases.SqlServer/Comparer/SqlObjectDifferenceType.cs
index 071eda5..a45c1a4 100644
--- a/src/UnitTests.Databases.SqlServer/Comparer/SqlObjectDifferenceType.cs
+++ b/src/Testing.Databases.SqlServer/Comparer/SqlObjectDifferenceType.cs
@@ -4,7 +4,7 @@
//
//-----------------------------------------------------------------------
-namespace PosInformatique.UnitTests.Databases
+namespace PosInformatique.Testing.Databases
{
///
/// Indicate the difference type between and .
diff --git a/src/UnitTests.Databases.SqlServer/Comparer/SqlObjectDifferences.cs b/src/Testing.Databases.SqlServer/Comparer/SqlObjectDifferences.cs
similarity index 92%
rename from src/UnitTests.Databases.SqlServer/Comparer/SqlObjectDifferences.cs
rename to src/Testing.Databases.SqlServer/Comparer/SqlObjectDifferences.cs
index 413d5e1..3e099da 100644
--- a/src/UnitTests.Databases.SqlServer/Comparer/SqlObjectDifferences.cs
+++ b/src/Testing.Databases.SqlServer/Comparer/SqlObjectDifferences.cs
@@ -4,7 +4,7 @@
//
//-----------------------------------------------------------------------
-namespace PosInformatique.UnitTests.Databases
+namespace PosInformatique.Testing.Databases
{
///
/// Represents the differences of between two databases.
diff --git a/src/UnitTests.Databases.SqlServer/Comparer/SqlObjectDifferences{TSqlObject}.cs b/src/Testing.Databases.SqlServer/Comparer/SqlObjectDifferences{TSqlObject}.cs
similarity index 98%
rename from src/UnitTests.Databases.SqlServer/Comparer/SqlObjectDifferences{TSqlObject}.cs
rename to src/Testing.Databases.SqlServer/Comparer/SqlObjectDifferences{TSqlObject}.cs
index b78e9c8..656f7e2 100644
--- a/src/UnitTests.Databases.SqlServer/Comparer/SqlObjectDifferences{TSqlObject}.cs
+++ b/src/Testing.Databases.SqlServer/Comparer/SqlObjectDifferences{TSqlObject}.cs
@@ -4,7 +4,7 @@
//
//-----------------------------------------------------------------------
-namespace PosInformatique.UnitTests.Databases
+namespace PosInformatique.Testing.Databases
{
using System.Collections.ObjectModel;
diff --git a/src/UnitTests.Databases.SqlServer/Comparer/SqlObjectPropertyDifference.cs b/src/Testing.Databases.SqlServer/Comparer/SqlObjectPropertyDifference.cs
similarity index 96%
rename from src/UnitTests.Databases.SqlServer/Comparer/SqlObjectPropertyDifference.cs
rename to src/Testing.Databases.SqlServer/Comparer/SqlObjectPropertyDifference.cs
index c2495de..7f50f57 100644
--- a/src/UnitTests.Databases.SqlServer/Comparer/SqlObjectPropertyDifference.cs
+++ b/src/Testing.Databases.SqlServer/Comparer/SqlObjectPropertyDifference.cs
@@ -4,7 +4,7 @@
//
//-----------------------------------------------------------------------
-namespace PosInformatique.UnitTests.Databases
+namespace PosInformatique.Testing.Databases
{
///
/// Represents a difference of property value of compared .
diff --git a/src/UnitTests.Databases.SqlServer/Comparer/SqlPrimaryKeyDifferences.cs b/src/Testing.Databases.SqlServer/Comparer/SqlPrimaryKeyDifferences.cs
similarity index 96%
rename from src/UnitTests.Databases.SqlServer/Comparer/SqlPrimaryKeyDifferences.cs
rename to src/Testing.Databases.SqlServer/Comparer/SqlPrimaryKeyDifferences.cs
index 9e16767..4225313 100644
--- a/src/UnitTests.Databases.SqlServer/Comparer/SqlPrimaryKeyDifferences.cs
+++ b/src/Testing.Databases.SqlServer/Comparer/SqlPrimaryKeyDifferences.cs
@@ -4,7 +4,7 @@
//
//-----------------------------------------------------------------------
-namespace PosInformatique.UnitTests.Databases
+namespace PosInformatique.Testing.Databases
{
using System.Collections.ObjectModel;
diff --git a/src/UnitTests.Databases.SqlServer/Comparer/SqlServerDatabaseComparer.cs b/src/Testing.Databases.SqlServer/Comparer/SqlServerDatabaseComparer.cs
similarity index 98%
rename from src/UnitTests.Databases.SqlServer/Comparer/SqlServerDatabaseComparer.cs
rename to src/Testing.Databases.SqlServer/Comparer/SqlServerDatabaseComparer.cs
index 0216062..15011ac 100644
--- a/src/UnitTests.Databases.SqlServer/Comparer/SqlServerDatabaseComparer.cs
+++ b/src/Testing.Databases.SqlServer/Comparer/SqlServerDatabaseComparer.cs
@@ -4,7 +4,7 @@
//
//-----------------------------------------------------------------------
-namespace PosInformatique.UnitTests.Databases.SqlServer
+namespace PosInformatique.Testing.Databases.SqlServer
{
using System.Collections.ObjectModel;
diff --git a/src/UnitTests.Databases.SqlServer/Comparer/SqlTableDifferences.cs b/src/Testing.Databases.SqlServer/Comparer/SqlTableDifferences.cs
similarity index 98%
rename from src/UnitTests.Databases.SqlServer/Comparer/SqlTableDifferences.cs
rename to src/Testing.Databases.SqlServer/Comparer/SqlTableDifferences.cs
index 66d84f4..1aefe42 100644
--- a/src/UnitTests.Databases.SqlServer/Comparer/SqlTableDifferences.cs
+++ b/src/Testing.Databases.SqlServer/Comparer/SqlTableDifferences.cs
@@ -4,7 +4,7 @@
//
//-----------------------------------------------------------------------
-namespace PosInformatique.UnitTests.Databases
+namespace PosInformatique.Testing.Databases
{
using System.Collections.ObjectModel;
diff --git a/src/UnitTests.Databases.SqlServer/Comparer/SqlUniqueConstraintDifferences.cs b/src/Testing.Databases.SqlServer/Comparer/SqlUniqueConstraintDifferences.cs
similarity index 97%
rename from src/UnitTests.Databases.SqlServer/Comparer/SqlUniqueConstraintDifferences.cs
rename to src/Testing.Databases.SqlServer/Comparer/SqlUniqueConstraintDifferences.cs
index 7475295..5525a83 100644
--- a/src/UnitTests.Databases.SqlServer/Comparer/SqlUniqueConstraintDifferences.cs
+++ b/src/Testing.Databases.SqlServer/Comparer/SqlUniqueConstraintDifferences.cs
@@ -4,7 +4,7 @@
//
//-----------------------------------------------------------------------
-namespace PosInformatique.UnitTests.Databases
+namespace PosInformatique.Testing.Databases
{
using System.Collections.ObjectModel;
diff --git a/src/UnitTests.Databases.SqlServer/Comparer/TsqlCodeHelper.cs b/src/Testing.Databases.SqlServer/Comparer/TsqlCodeHelper.cs
similarity index 92%
rename from src/UnitTests.Databases.SqlServer/Comparer/TsqlCodeHelper.cs
rename to src/Testing.Databases.SqlServer/Comparer/TsqlCodeHelper.cs
index 7ba481a..a5b0ff2 100644
--- a/src/UnitTests.Databases.SqlServer/Comparer/TsqlCodeHelper.cs
+++ b/src/Testing.Databases.SqlServer/Comparer/TsqlCodeHelper.cs
@@ -4,7 +4,7 @@
//
//-----------------------------------------------------------------------
-namespace PosInformatique.UnitTests.Databases.SqlServer
+namespace PosInformatique.Testing.Databases.SqlServer
{
internal static class TsqlCodeHelper
{
diff --git a/src/UnitTests.Databases.SqlServer/Icon.png b/src/Testing.Databases.SqlServer/Icon.png
similarity index 100%
rename from src/UnitTests.Databases.SqlServer/Icon.png
rename to src/Testing.Databases.SqlServer/Icon.png
diff --git a/src/UnitTests.Databases.SqlServer/ObjectModel/ISqlObjectVisitor.cs b/src/Testing.Databases.SqlServer/ObjectModel/ISqlObjectVisitor.cs
similarity index 99%
rename from src/UnitTests.Databases.SqlServer/ObjectModel/ISqlObjectVisitor.cs
rename to src/Testing.Databases.SqlServer/ObjectModel/ISqlObjectVisitor.cs
index 097f7ed..ed564f8 100644
--- a/src/UnitTests.Databases.SqlServer/ObjectModel/ISqlObjectVisitor.cs
+++ b/src/Testing.Databases.SqlServer/ObjectModel/ISqlObjectVisitor.cs
@@ -4,7 +4,7 @@
//
//-----------------------------------------------------------------------
-namespace PosInformatique.UnitTests.Databases
+namespace PosInformatique.Testing.Databases
{
///
/// Used to visit all the .
diff --git a/src/UnitTests.Databases.SqlServer/ObjectModel/SqlCheckConstraint.cs b/src/Testing.Databases.SqlServer/ObjectModel/SqlCheckConstraint.cs
similarity index 95%
rename from src/UnitTests.Databases.SqlServer/ObjectModel/SqlCheckConstraint.cs
rename to src/Testing.Databases.SqlServer/ObjectModel/SqlCheckConstraint.cs
index b17d8ad..bb76e8f 100644
--- a/src/UnitTests.Databases.SqlServer/ObjectModel/SqlCheckConstraint.cs
+++ b/src/Testing.Databases.SqlServer/ObjectModel/SqlCheckConstraint.cs
@@ -4,7 +4,7 @@
//
//-----------------------------------------------------------------------
-namespace PosInformatique.UnitTests.Databases
+namespace PosInformatique.Testing.Databases
{
///
/// Represents a check constraint in SQL table.
diff --git a/src/UnitTests.Databases.SqlServer/ObjectModel/SqlColumn.cs b/src/Testing.Databases.SqlServer/ObjectModel/SqlColumn.cs
similarity index 98%
rename from src/UnitTests.Databases.SqlServer/ObjectModel/SqlColumn.cs
rename to src/Testing.Databases.SqlServer/ObjectModel/SqlColumn.cs
index 0c44125..450b2d2 100644
--- a/src/UnitTests.Databases.SqlServer/ObjectModel/SqlColumn.cs
+++ b/src/Testing.Databases.SqlServer/ObjectModel/SqlColumn.cs
@@ -4,7 +4,7 @@
//
//-----------------------------------------------------------------------
-namespace PosInformatique.UnitTests.Databases
+namespace PosInformatique.Testing.Databases
{
///
/// Represents a column of a table in SQL database.
diff --git a/src/UnitTests.Databases.SqlServer/ObjectModel/SqlForeignKey.cs b/src/Testing.Databases.SqlServer/ObjectModel/SqlForeignKey.cs
similarity index 97%
rename from src/UnitTests.Databases.SqlServer/ObjectModel/SqlForeignKey.cs
rename to src/Testing.Databases.SqlServer/ObjectModel/SqlForeignKey.cs
index 9949078..0319a0e 100644
--- a/src/UnitTests.Databases.SqlServer/ObjectModel/SqlForeignKey.cs
+++ b/src/Testing.Databases.SqlServer/ObjectModel/SqlForeignKey.cs
@@ -4,7 +4,7 @@
//
//-----------------------------------------------------------------------
-namespace PosInformatique.UnitTests.Databases
+namespace PosInformatique.Testing.Databases
{
using System.Collections.ObjectModel;
diff --git a/src/UnitTests.Databases.SqlServer/ObjectModel/SqlForeignKeyColumn.cs b/src/Testing.Databases.SqlServer/ObjectModel/SqlForeignKeyColumn.cs
similarity index 96%
rename from src/UnitTests.Databases.SqlServer/ObjectModel/SqlForeignKeyColumn.cs
rename to src/Testing.Databases.SqlServer/ObjectModel/SqlForeignKeyColumn.cs
index 3ff61ac..7af9443 100644
--- a/src/UnitTests.Databases.SqlServer/ObjectModel/SqlForeignKeyColumn.cs
+++ b/src/Testing.Databases.SqlServer/ObjectModel/SqlForeignKeyColumn.cs
@@ -4,7 +4,7 @@
//
//-----------------------------------------------------------------------
-namespace PosInformatique.UnitTests.Databases
+namespace PosInformatique.Testing.Databases
{
///
/// Represents a column of a foreign key.
diff --git a/src/UnitTests.Databases.SqlServer/ObjectModel/SqlIndex.cs b/src/Testing.Databases.SqlServer/ObjectModel/SqlIndex.cs
similarity index 97%
rename from src/UnitTests.Databases.SqlServer/ObjectModel/SqlIndex.cs
rename to src/Testing.Databases.SqlServer/ObjectModel/SqlIndex.cs
index bb69b09..31e6077 100644
--- a/src/UnitTests.Databases.SqlServer/ObjectModel/SqlIndex.cs
+++ b/src/Testing.Databases.SqlServer/ObjectModel/SqlIndex.cs
@@ -4,7 +4,7 @@
//
//-----------------------------------------------------------------------
-namespace PosInformatique.UnitTests.Databases
+namespace PosInformatique.Testing.Databases
{
using System.Collections.ObjectModel;
diff --git a/src/UnitTests.Databases.SqlServer/ObjectModel/SqlIndexColumn.cs b/src/Testing.Databases.SqlServer/ObjectModel/SqlIndexColumn.cs
similarity index 95%
rename from src/UnitTests.Databases.SqlServer/ObjectModel/SqlIndexColumn.cs
rename to src/Testing.Databases.SqlServer/ObjectModel/SqlIndexColumn.cs
index b9ac16f..e143b4d 100644
--- a/src/UnitTests.Databases.SqlServer/ObjectModel/SqlIndexColumn.cs
+++ b/src/Testing.Databases.SqlServer/ObjectModel/SqlIndexColumn.cs
@@ -4,7 +4,7 @@
//
//-----------------------------------------------------------------------
-namespace PosInformatique.UnitTests.Databases
+namespace PosInformatique.Testing.Databases
{
///
/// Represents a column of an index.
diff --git a/src/UnitTests.Databases.SqlServer/ObjectModel/SqlObject.cs b/src/Testing.Databases.SqlServer/ObjectModel/SqlObject.cs
similarity index 95%
rename from src/UnitTests.Databases.SqlServer/ObjectModel/SqlObject.cs
rename to src/Testing.Databases.SqlServer/ObjectModel/SqlObject.cs
index cc7fa8a..f10198b 100644
--- a/src/UnitTests.Databases.SqlServer/ObjectModel/SqlObject.cs
+++ b/src/Testing.Databases.SqlServer/ObjectModel/SqlObject.cs
@@ -4,7 +4,7 @@
//
//-----------------------------------------------------------------------
-namespace PosInformatique.UnitTests.Databases
+namespace PosInformatique.Testing.Databases
{
///
/// Common class to represent a SQL object (Table, Stored procedure,...)
diff --git a/src/UnitTests.Databases.SqlServer/ObjectModel/SqlPrimaryKey.cs b/src/Testing.Databases.SqlServer/ObjectModel/SqlPrimaryKey.cs
similarity index 96%
rename from src/UnitTests.Databases.SqlServer/ObjectModel/SqlPrimaryKey.cs
rename to src/Testing.Databases.SqlServer/ObjectModel/SqlPrimaryKey.cs
index f49ab25..03b7998 100644
--- a/src/UnitTests.Databases.SqlServer/ObjectModel/SqlPrimaryKey.cs
+++ b/src/Testing.Databases.SqlServer/ObjectModel/SqlPrimaryKey.cs
@@ -4,7 +4,7 @@
//
//-----------------------------------------------------------------------
-namespace PosInformatique.UnitTests.Databases
+namespace PosInformatique.Testing.Databases
{
using System.Collections.ObjectModel;
diff --git a/src/UnitTests.Databases.SqlServer/ObjectModel/SqlPrimaryKeyColumn.cs b/src/Testing.Databases.SqlServer/ObjectModel/SqlPrimaryKeyColumn.cs
similarity index 96%
rename from src/UnitTests.Databases.SqlServer/ObjectModel/SqlPrimaryKeyColumn.cs
rename to src/Testing.Databases.SqlServer/ObjectModel/SqlPrimaryKeyColumn.cs
index e1b98cb..79431f2 100644
--- a/src/UnitTests.Databases.SqlServer/ObjectModel/SqlPrimaryKeyColumn.cs
+++ b/src/Testing.Databases.SqlServer/ObjectModel/SqlPrimaryKeyColumn.cs
@@ -4,7 +4,7 @@
//
//-----------------------------------------------------------------------
-namespace PosInformatique.UnitTests.Databases
+namespace PosInformatique.Testing.Databases
{
///
/// Represents a column of a primary key.
diff --git a/src/UnitTests.Databases.SqlServer/ObjectModel/SqlStoredProcedure.cs b/src/Testing.Databases.SqlServer/ObjectModel/SqlStoredProcedure.cs
similarity index 96%
rename from src/UnitTests.Databases.SqlServer/ObjectModel/SqlStoredProcedure.cs
rename to src/Testing.Databases.SqlServer/ObjectModel/SqlStoredProcedure.cs
index 80be7e8..f8911cc 100644
--- a/src/UnitTests.Databases.SqlServer/ObjectModel/SqlStoredProcedure.cs
+++ b/src/Testing.Databases.SqlServer/ObjectModel/SqlStoredProcedure.cs
@@ -4,7 +4,7 @@
//
//-----------------------------------------------------------------------
-namespace PosInformatique.UnitTests.Databases
+namespace PosInformatique.Testing.Databases
{
///
/// Represents a stored procedure in SQL database.
diff --git a/src/UnitTests.Databases.SqlServer/ObjectModel/SqlTable.cs b/src/Testing.Databases.SqlServer/ObjectModel/SqlTable.cs
similarity index 98%
rename from src/UnitTests.Databases.SqlServer/ObjectModel/SqlTable.cs
rename to src/Testing.Databases.SqlServer/ObjectModel/SqlTable.cs
index 10665cc..b31174b 100644
--- a/src/UnitTests.Databases.SqlServer/ObjectModel/SqlTable.cs
+++ b/src/Testing.Databases.SqlServer/ObjectModel/SqlTable.cs
@@ -4,7 +4,7 @@
//
//-----------------------------------------------------------------------
-namespace PosInformatique.UnitTests.Databases
+namespace PosInformatique.Testing.Databases
{
using System.Collections.ObjectModel;
diff --git a/src/UnitTests.Databases.SqlServer/ObjectModel/SqlTrigger.cs b/src/Testing.Databases.SqlServer/ObjectModel/SqlTrigger.cs
similarity index 96%
rename from src/UnitTests.Databases.SqlServer/ObjectModel/SqlTrigger.cs
rename to src/Testing.Databases.SqlServer/ObjectModel/SqlTrigger.cs
index 11a441f..4733baa 100644
--- a/src/UnitTests.Databases.SqlServer/ObjectModel/SqlTrigger.cs
+++ b/src/Testing.Databases.SqlServer/ObjectModel/SqlTrigger.cs
@@ -4,7 +4,7 @@
//
//-----------------------------------------------------------------------
-namespace PosInformatique.UnitTests.Databases
+namespace PosInformatique.Testing.Databases
{
///
/// Represents a trigger in SQL database.
diff --git a/src/UnitTests.Databases.SqlServer/ObjectModel/SqlUniqueConstraint.cs b/src/Testing.Databases.SqlServer/ObjectModel/SqlUniqueConstraint.cs
similarity index 96%
rename from src/UnitTests.Databases.SqlServer/ObjectModel/SqlUniqueConstraint.cs
rename to src/Testing.Databases.SqlServer/ObjectModel/SqlUniqueConstraint.cs
index 3f7f7e8..c4ba4bd 100644
--- a/src/UnitTests.Databases.SqlServer/ObjectModel/SqlUniqueConstraint.cs
+++ b/src/Testing.Databases.SqlServer/ObjectModel/SqlUniqueConstraint.cs
@@ -4,7 +4,7 @@
//
//-----------------------------------------------------------------------
-namespace PosInformatique.UnitTests.Databases
+namespace PosInformatique.Testing.Databases
{
using System.Collections.ObjectModel;
diff --git a/src/UnitTests.Databases.SqlServer/ObjectModel/SqlUserType.cs b/src/Testing.Databases.SqlServer/ObjectModel/SqlUserType.cs
similarity index 96%
rename from src/UnitTests.Databases.SqlServer/ObjectModel/SqlUserType.cs
rename to src/Testing.Databases.SqlServer/ObjectModel/SqlUserType.cs
index f5e48b4..180958a 100644
--- a/src/UnitTests.Databases.SqlServer/ObjectModel/SqlUserType.cs
+++ b/src/Testing.Databases.SqlServer/ObjectModel/SqlUserType.cs
@@ -4,7 +4,7 @@
//
//-----------------------------------------------------------------------
-namespace PosInformatique.UnitTests.Databases
+namespace PosInformatique.Testing.Databases
{
///
/// Represents a user type in SQL database.
diff --git a/src/UnitTests.Databases.SqlServer/ObjectModel/SqlView.cs b/src/Testing.Databases.SqlServer/ObjectModel/SqlView.cs
similarity index 96%
rename from src/UnitTests.Databases.SqlServer/ObjectModel/SqlView.cs
rename to src/Testing.Databases.SqlServer/ObjectModel/SqlView.cs
index 8e26d7c..04f563b 100644
--- a/src/UnitTests.Databases.SqlServer/ObjectModel/SqlView.cs
+++ b/src/Testing.Databases.SqlServer/ObjectModel/SqlView.cs
@@ -4,7 +4,7 @@
//
//-----------------------------------------------------------------------
-namespace PosInformatique.UnitTests.Databases
+namespace PosInformatique.Testing.Databases
{
///
/// Represents a view in SQL database.
diff --git a/src/UnitTests.Databases.SqlServer/SqlServer.cs b/src/Testing.Databases.SqlServer/SqlServer.cs
similarity index 98%
rename from src/UnitTests.Databases.SqlServer/SqlServer.cs
rename to src/Testing.Databases.SqlServer/SqlServer.cs
index 70f3ce8..4351791 100644
--- a/src/UnitTests.Databases.SqlServer/SqlServer.cs
+++ b/src/Testing.Databases.SqlServer/SqlServer.cs
@@ -4,7 +4,7 @@
//
//-----------------------------------------------------------------------
-namespace PosInformatique.UnitTests.Databases.SqlServer
+namespace PosInformatique.Testing.Databases.SqlServer
{
using Microsoft.Data.SqlClient;
diff --git a/src/UnitTests.Databases.SqlServer/SqlServerDatabase.cs b/src/Testing.Databases.SqlServer/SqlServerDatabase.cs
similarity index 98%
rename from src/UnitTests.Databases.SqlServer/SqlServerDatabase.cs
rename to src/Testing.Databases.SqlServer/SqlServerDatabase.cs
index c69e9c4..462a2b0 100644
--- a/src/UnitTests.Databases.SqlServer/SqlServerDatabase.cs
+++ b/src/Testing.Databases.SqlServer/SqlServerDatabase.cs
@@ -4,7 +4,7 @@
//
//-----------------------------------------------------------------------
-namespace PosInformatique.UnitTests.Databases.SqlServer
+namespace PosInformatique.Testing.Databases.SqlServer
{
using System.Data;
using Microsoft.Data.SqlClient;
diff --git a/src/UnitTests.Databases.SqlServer/SqlServerDatabaseExtensions.cs b/src/Testing.Databases.SqlServer/SqlServerDatabaseExtensions.cs
similarity index 99%
rename from src/UnitTests.Databases.SqlServer/SqlServerDatabaseExtensions.cs
rename to src/Testing.Databases.SqlServer/SqlServerDatabaseExtensions.cs
index a587808..c13471f 100644
--- a/src/UnitTests.Databases.SqlServer/SqlServerDatabaseExtensions.cs
+++ b/src/Testing.Databases.SqlServer/SqlServerDatabaseExtensions.cs
@@ -4,7 +4,7 @@
//
//-----------------------------------------------------------------------
-namespace PosInformatique.UnitTests.Databases.SqlServer
+namespace PosInformatique.Testing.Databases.SqlServer
{
using System.Globalization;
using System.Text;
diff --git a/src/UnitTests.Databases.SqlServer/SqlServerDatabaseInitializer.cs b/src/Testing.Databases.SqlServer/SqlServerDatabaseInitializer.cs
similarity index 73%
rename from src/UnitTests.Databases.SqlServer/SqlServerDatabaseInitializer.cs
rename to src/Testing.Databases.SqlServer/SqlServerDatabaseInitializer.cs
index 7da20d8..ea65332 100644
--- a/src/UnitTests.Databases.SqlServer/SqlServerDatabaseInitializer.cs
+++ b/src/Testing.Databases.SqlServer/SqlServerDatabaseInitializer.cs
@@ -4,12 +4,12 @@
//
//-----------------------------------------------------------------------
-namespace PosInformatique.UnitTests.Databases.SqlServer
+namespace PosInformatique.Testing.Databases.SqlServer
{
///
- /// Initializer used to initialize the database for the unit tests.
+ /// Initializer used to initialize the database for the tests.
/// Depending of the strategy to use (initialize from Entity Framework DbContext or .dacpac package)
- /// add the PosInformatique.UnitTests.Databases.SqlServer.EntityFramework or PosInformatique.UnitTests.Databases.SqlServer.Dac
+ /// add the PosInformatique.Testing.Databases.SqlServer.EntityFramework or PosInformatique.Testing.Databases.SqlServer.Dac
/// NuGet packages and call the Initialize() method.
///
public class SqlServerDatabaseInitializer
diff --git a/src/UnitTests.Databases.SqlServer/SqlServerDatabaseObjectExtensions.cs b/src/Testing.Databases.SqlServer/SqlServerDatabaseObjectExtensions.cs
similarity index 99%
rename from src/UnitTests.Databases.SqlServer/SqlServerDatabaseObjectExtensions.cs
rename to src/Testing.Databases.SqlServer/SqlServerDatabaseObjectExtensions.cs
index 2e00bbd..10adaae 100644
--- a/src/UnitTests.Databases.SqlServer/SqlServerDatabaseObjectExtensions.cs
+++ b/src/Testing.Databases.SqlServer/SqlServerDatabaseObjectExtensions.cs
@@ -4,7 +4,7 @@
//
//-----------------------------------------------------------------------
-namespace PosInformatique.UnitTests.Databases.SqlServer
+namespace PosInformatique.Testing.Databases.SqlServer
{
using System.Data;
using System.Globalization;
diff --git a/src/UnitTests.Databases.SqlServer/StringHelper.cs b/src/Testing.Databases.SqlServer/StringHelper.cs
similarity index 92%
rename from src/UnitTests.Databases.SqlServer/StringHelper.cs
rename to src/Testing.Databases.SqlServer/StringHelper.cs
index 52194f1..384d7a8 100644
--- a/src/UnitTests.Databases.SqlServer/StringHelper.cs
+++ b/src/Testing.Databases.SqlServer/StringHelper.cs
@@ -4,7 +4,7 @@
//
//-----------------------------------------------------------------------
-namespace PosInformatique.UnitTests.Databases
+namespace PosInformatique.Testing.Databases
{
internal static class StringHelper
{
diff --git a/src/UnitTests.Databases.SqlServer/UnitTests.Databases.SqlServer.csproj b/src/Testing.Databases.SqlServer/Testing.Databases.SqlServer.csproj
similarity index 64%
rename from src/UnitTests.Databases.SqlServer/UnitTests.Databases.SqlServer.csproj
rename to src/Testing.Databases.SqlServer/Testing.Databases.SqlServer.csproj
index 5fcf184..6ef4241 100644
--- a/src/UnitTests.Databases.SqlServer/UnitTests.Databases.SqlServer.csproj
+++ b/src/Testing.Databases.SqlServer/Testing.Databases.SqlServer.csproj
@@ -4,8 +4,8 @@
net8.0True
- UnitTests.Databases.SqlServer is a library that contains a set of tools for unit testing Data Access Layer (repositories) based on SQL Server.
- unittest sqlserver repository tdd dataaccesslayer
+ Testing.Databases.SqlServer is a library that contains a set of tools for testing Data Access Layer (repositories) based on SQL Server.
+ testing unittest sqlserver repository tdd dataaccesslayer
diff --git a/tests/UnitTests.Databases.SqlServer.EntityFramework.Tests/EntityFrameworkDatabaseInitializerExtensionsTest.cs b/tests/Testing.Databases.SqlServer.EntityFramework.Tests/EntityFrameworkDatabaseInitializerExtensionsTest.cs
similarity index 90%
rename from tests/UnitTests.Databases.SqlServer.EntityFramework.Tests/EntityFrameworkDatabaseInitializerExtensionsTest.cs
rename to tests/Testing.Databases.SqlServer.EntityFramework.Tests/EntityFrameworkDatabaseInitializerExtensionsTest.cs
index cd70e5d..4ab4d63 100644
--- a/tests/UnitTests.Databases.SqlServer.EntityFramework.Tests/EntityFrameworkDatabaseInitializerExtensionsTest.cs
+++ b/tests/Testing.Databases.SqlServer.EntityFramework.Tests/EntityFrameworkDatabaseInitializerExtensionsTest.cs
@@ -4,14 +4,14 @@
//
//-----------------------------------------------------------------------
-namespace PosInformatique.UnitTests.Databases.SqlServer.Tests
+namespace PosInformatique.Testing.Databases.SqlServer.Tests
{
using Microsoft.EntityFrameworkCore;
- [Collection("PosInformatique.UnitTests.Databases.SqlServer.Tests")]
+ [Collection("PosInformatique.Testing.Databases.SqlServer.Tests")]
public class EntityFrameworkDatabaseInitializerExtensionsTest : IClassFixture
{
- private const string ConnectionString = $"Data Source=(localDB)\\posinfo-unit-tests; Initial Catalog={nameof(EntityFrameworkDatabaseInitializerExtensionsTest)}; Integrated Security=True";
+ private const string ConnectionString = $"Data Source=(localDB)\\posinfo-tests; Initial Catalog={nameof(EntityFrameworkDatabaseInitializerExtensionsTest)}; Integrated Security=True";
private readonly SqlServerDatabase database;
@@ -50,7 +50,7 @@ public void Test1()
table.Rows[1]["Name"].Should().Be("Name 2");
// Insert a row which should not be use in other tests.
- this.database.InsertInto("MyTable", new { Id = 99, Name = "Should not be here for the next unit test" });
+ this.database.InsertInto("MyTable", new { Id = 99, Name = "Should not be here for the next test" });
}
[Fact]
@@ -71,7 +71,7 @@ public void Test2()
table.Rows[1]["Name"].Should().Be("Name 2");
// Insert a row which should not be use in other tests.
- this.database.InsertInto("MyTable", new { Id = 99, Name = "Should not be here for the next unit test" });
+ this.database.InsertInto("MyTable", new { Id = 99, Name = "Should not be here for the next test" });
}
private sealed class DbContextTest : DbContext
diff --git a/tests/UnitTests.Databases.SqlServer.EntityFramework.Tests/EntityFrameworkSqlServerExtensionsTest.cs b/tests/Testing.Databases.SqlServer.EntityFramework.Tests/EntityFrameworkSqlServerExtensionsTest.cs
similarity index 88%
rename from tests/UnitTests.Databases.SqlServer.EntityFramework.Tests/EntityFrameworkSqlServerExtensionsTest.cs
rename to tests/Testing.Databases.SqlServer.EntityFramework.Tests/EntityFrameworkSqlServerExtensionsTest.cs
index c5b926e..232eb0b 100644
--- a/tests/UnitTests.Databases.SqlServer.EntityFramework.Tests/EntityFrameworkSqlServerExtensionsTest.cs
+++ b/tests/Testing.Databases.SqlServer.EntityFramework.Tests/EntityFrameworkSqlServerExtensionsTest.cs
@@ -4,14 +4,14 @@
//
//-----------------------------------------------------------------------
-namespace PosInformatique.UnitTests.Databases.SqlServer.Tests
+namespace PosInformatique.Testing.Databases.SqlServer.Tests
{
using Microsoft.EntityFrameworkCore;
- [Collection("PosInformatique.UnitTests.Databases.SqlServer.Tests")]
+ [Collection("PosInformatique.Testing.Databases.SqlServer.Tests")]
public class EntityFrameworkSqlServerExtensionsTest
{
- private const string ConnectionString = $"Data Source=(localDB)\\posinfo-unit-tests; Integrated Security=True";
+ private const string ConnectionString = $"Data Source=(localDB)\\posinfo-tests; Integrated Security=True";
[Fact]
public async Task Create_WithNoExistingDatabase()
@@ -26,7 +26,7 @@ public async Task Create_WithNoExistingDatabase()
var database = await server.CreateDatabaseAsync(nameof(EntityFrameworkSqlServerExtensionsTest), dbContext);
- database.ConnectionString.Should().Be("Data Source=(localDB)\\posinfo-unit-tests;Initial Catalog=EntityFrameworkSqlServerExtensionsTest;Integrated Security=True");
+ database.ConnectionString.Should().Be("Data Source=(localDB)\\posinfo-tests;Initial Catalog=EntityFrameworkSqlServerExtensionsTest;Integrated Security=True");
var tables = await database.GetTablesAsync();
@@ -54,7 +54,7 @@ public async Task Create_WithAlreadyExistingDatabase()
var database = await server.CreateDatabaseAsync(nameof(EntityFrameworkSqlServerExtensionsTest), dbContext);
- database.ConnectionString.Should().Be("Data Source=(localDB)\\posinfo-unit-tests;Initial Catalog=EntityFrameworkSqlServerExtensionsTest;Integrated Security=True");
+ database.ConnectionString.Should().Be("Data Source=(localDB)\\posinfo-tests;Initial Catalog=EntityFrameworkSqlServerExtensionsTest;Integrated Security=True");
var tables = await database.GetTablesAsync();
diff --git a/tests/UnitTests.Databases.SqlServer.EntityFramework.Tests/UnitTests.Databases.SqlServer.EntityFramework.Tests.csproj b/tests/Testing.Databases.SqlServer.EntityFramework.Tests/Testing.Databases.SqlServer.EntityFramework.Tests.csproj
similarity index 84%
rename from tests/UnitTests.Databases.SqlServer.EntityFramework.Tests/UnitTests.Databases.SqlServer.EntityFramework.Tests.csproj
rename to tests/Testing.Databases.SqlServer.EntityFramework.Tests/Testing.Databases.SqlServer.EntityFramework.Tests.csproj
index 24deda4..a9979d0 100644
--- a/tests/UnitTests.Databases.SqlServer.EntityFramework.Tests/UnitTests.Databases.SqlServer.EntityFramework.Tests.csproj
+++ b/tests/Testing.Databases.SqlServer.EntityFramework.Tests/Testing.Databases.SqlServer.EntityFramework.Tests.csproj
@@ -19,7 +19,7 @@
-
+
diff --git a/tests/UnitTests.Databases.SqlServer.Tests.DacPac/Tables/MyTable.sql b/tests/Testing.Databases.SqlServer.Tests.DacPac/Tables/MyTable.sql
similarity index 100%
rename from tests/UnitTests.Databases.SqlServer.Tests.DacPac/Tables/MyTable.sql
rename to tests/Testing.Databases.SqlServer.Tests.DacPac/Tables/MyTable.sql
diff --git a/tests/UnitTests.Databases.SqlServer.Tests.DacPac/UnitTests.Databases.SqlServer.Tests.DacPac.sqlproj b/tests/Testing.Databases.SqlServer.Tests.DacPac/Testing.Databases.SqlServer.Tests.DacPac.sqlproj
similarity index 93%
rename from tests/UnitTests.Databases.SqlServer.Tests.DacPac/UnitTests.Databases.SqlServer.Tests.DacPac.sqlproj
rename to tests/Testing.Databases.SqlServer.Tests.DacPac/Testing.Databases.SqlServer.Tests.DacPac.sqlproj
index 91756c1..c4e689c 100644
--- a/tests/UnitTests.Databases.SqlServer.Tests.DacPac/UnitTests.Databases.SqlServer.Tests.DacPac.sqlproj
+++ b/tests/Testing.Databases.SqlServer.Tests.DacPac/Testing.Databases.SqlServer.Tests.DacPac.sqlproj
@@ -3,7 +3,7 @@
DebugAnyCPU
- UnitTests.Databases.SqlServer.Tests.DacPac
+ Testing.Databases.SqlServer.Tests.DacPac2.04.1{5f618225-0e1c-46a7-bbcc-23a6243d5cee}
@@ -11,8 +11,8 @@
Database
- UnitTests.Databases.SqlServer.Tests.DacPac
- UnitTests.Databases.SqlServer.Tests.DacPac
+ Testing.Databases.SqlServer.Tests.DacPac
+ Testing.Databases.SqlServer.Tests.DacPac1033, CIBySchemaAndSchemaTypeTrue
diff --git a/tests/UnitTests.Databases.SqlServer.Tests.Source/Programmability/Stored Procedures/StoredProcedureDifference.sql b/tests/Testing.Databases.SqlServer.Tests.Source/Programmability/Stored Procedures/StoredProcedureDifference.sql
similarity index 100%
rename from tests/UnitTests.Databases.SqlServer.Tests.Source/Programmability/Stored Procedures/StoredProcedureDifference.sql
rename to tests/Testing.Databases.SqlServer.Tests.Source/Programmability/Stored Procedures/StoredProcedureDifference.sql
diff --git a/tests/UnitTests.Databases.SqlServer.Tests.Source/Programmability/Stored Procedures/StoredProcedureIdentical.sql b/tests/Testing.Databases.SqlServer.Tests.Source/Programmability/Stored Procedures/StoredProcedureIdentical.sql
similarity index 100%
rename from tests/UnitTests.Databases.SqlServer.Tests.Source/Programmability/Stored Procedures/StoredProcedureIdentical.sql
rename to tests/Testing.Databases.SqlServer.Tests.Source/Programmability/Stored Procedures/StoredProcedureIdentical.sql
diff --git a/tests/UnitTests.Databases.SqlServer.Tests.Source/Programmability/Stored Procedures/StoredProcedureSource.sql b/tests/Testing.Databases.SqlServer.Tests.Source/Programmability/Stored Procedures/StoredProcedureSource.sql
similarity index 100%
rename from tests/UnitTests.Databases.SqlServer.Tests.Source/Programmability/Stored Procedures/StoredProcedureSource.sql
rename to tests/Testing.Databases.SqlServer.Tests.Source/Programmability/Stored Procedures/StoredProcedureSource.sql
diff --git a/tests/UnitTests.Databases.SqlServer.Tests.Source/Programmability/Types/TypeDifference.sql b/tests/Testing.Databases.SqlServer.Tests.Source/Programmability/Types/TypeDifference.sql
similarity index 100%
rename from tests/UnitTests.Databases.SqlServer.Tests.Source/Programmability/Types/TypeDifference.sql
rename to tests/Testing.Databases.SqlServer.Tests.Source/Programmability/Types/TypeDifference.sql
diff --git a/tests/UnitTests.Databases.SqlServer.Tests.Source/Programmability/Types/TypeIdentical.sql b/tests/Testing.Databases.SqlServer.Tests.Source/Programmability/Types/TypeIdentical.sql
similarity index 100%
rename from tests/UnitTests.Databases.SqlServer.Tests.Source/Programmability/Types/TypeIdentical.sql
rename to tests/Testing.Databases.SqlServer.Tests.Source/Programmability/Types/TypeIdentical.sql
diff --git a/tests/UnitTests.Databases.SqlServer.Tests.Source/Programmability/Types/TypeSource.sql b/tests/Testing.Databases.SqlServer.Tests.Source/Programmability/Types/TypeSource.sql
similarity index 100%
rename from tests/UnitTests.Databases.SqlServer.Tests.Source/Programmability/Types/TypeSource.sql
rename to tests/Testing.Databases.SqlServer.Tests.Source/Programmability/Types/TypeSource.sql
diff --git a/tests/UnitTests.Databases.SqlServer.Tests.Source/Tables/CheckConstraints/CheckConstraintDifference.sql b/tests/Testing.Databases.SqlServer.Tests.Source/Tables/CheckConstraints/CheckConstraintDifference.sql
similarity index 100%
rename from tests/UnitTests.Databases.SqlServer.Tests.Source/Tables/CheckConstraints/CheckConstraintDifference.sql
rename to tests/Testing.Databases.SqlServer.Tests.Source/Tables/CheckConstraints/CheckConstraintDifference.sql
diff --git a/tests/UnitTests.Databases.SqlServer.Tests.Source/Tables/CheckConstraints/CheckConstraintIdentical.sql b/tests/Testing.Databases.SqlServer.Tests.Source/Tables/CheckConstraints/CheckConstraintIdentical.sql
similarity index 100%
rename from tests/UnitTests.Databases.SqlServer.Tests.Source/Tables/CheckConstraints/CheckConstraintIdentical.sql
rename to tests/Testing.Databases.SqlServer.Tests.Source/Tables/CheckConstraints/CheckConstraintIdentical.sql
diff --git a/tests/UnitTests.Databases.SqlServer.Tests.Source/Tables/CheckConstraints/CheckConstraintSource.sql b/tests/Testing.Databases.SqlServer.Tests.Source/Tables/CheckConstraints/CheckConstraintSource.sql
similarity index 100%
rename from tests/UnitTests.Databases.SqlServer.Tests.Source/Tables/CheckConstraints/CheckConstraintSource.sql
rename to tests/Testing.Databases.SqlServer.Tests.Source/Tables/CheckConstraints/CheckConstraintSource.sql
diff --git a/tests/UnitTests.Databases.SqlServer.Tests.Source/Tables/ForeignKeys/ForeignKeyDifference.sql b/tests/Testing.Databases.SqlServer.Tests.Source/Tables/ForeignKeys/ForeignKeyDifference.sql
similarity index 100%
rename from tests/UnitTests.Databases.SqlServer.Tests.Source/Tables/ForeignKeys/ForeignKeyDifference.sql
rename to tests/Testing.Databases.SqlServer.Tests.Source/Tables/ForeignKeys/ForeignKeyDifference.sql
diff --git a/tests/UnitTests.Databases.SqlServer.Tests.Source/Tables/ForeignKeys/ForeignKeyIdentical.sql b/tests/Testing.Databases.SqlServer.Tests.Source/Tables/ForeignKeys/ForeignKeyIdentical.sql
similarity index 100%
rename from tests/UnitTests.Databases.SqlServer.Tests.Source/Tables/ForeignKeys/ForeignKeyIdentical.sql
rename to tests/Testing.Databases.SqlServer.Tests.Source/Tables/ForeignKeys/ForeignKeyIdentical.sql
diff --git a/tests/UnitTests.Databases.SqlServer.Tests.Source/Tables/ForeignKeys/ForeignKeySource.sql b/tests/Testing.Databases.SqlServer.Tests.Source/Tables/ForeignKeys/ForeignKeySource.sql
similarity index 100%
rename from tests/UnitTests.Databases.SqlServer.Tests.Source/Tables/ForeignKeys/ForeignKeySource.sql
rename to tests/Testing.Databases.SqlServer.Tests.Source/Tables/ForeignKeys/ForeignKeySource.sql
diff --git a/tests/UnitTests.Databases.SqlServer.Tests.Source/Tables/Indexes/IndexDifference.sql b/tests/Testing.Databases.SqlServer.Tests.Source/Tables/Indexes/IndexDifference.sql
similarity index 100%
rename from tests/UnitTests.Databases.SqlServer.Tests.Source/Tables/Indexes/IndexDifference.sql
rename to tests/Testing.Databases.SqlServer.Tests.Source/Tables/Indexes/IndexDifference.sql
diff --git a/tests/UnitTests.Databases.SqlServer.Tests.Source/Tables/Indexes/IndexIdentical.sql b/tests/Testing.Databases.SqlServer.Tests.Source/Tables/Indexes/IndexIdentical.sql
similarity index 100%
rename from tests/UnitTests.Databases.SqlServer.Tests.Source/Tables/Indexes/IndexIdentical.sql
rename to tests/Testing.Databases.SqlServer.Tests.Source/Tables/Indexes/IndexIdentical.sql
diff --git a/tests/UnitTests.Databases.SqlServer.Tests.Source/Tables/Indexes/IndexSource.sql b/tests/Testing.Databases.SqlServer.Tests.Source/Tables/Indexes/IndexSource.sql
similarity index 100%
rename from tests/UnitTests.Databases.SqlServer.Tests.Source/Tables/Indexes/IndexSource.sql
rename to tests/Testing.Databases.SqlServer.Tests.Source/Tables/Indexes/IndexSource.sql
diff --git a/tests/UnitTests.Databases.SqlServer.Tests.Source/Tables/PrimaryKeys/PrimaryKeyDifference.sql b/tests/Testing.Databases.SqlServer.Tests.Source/Tables/PrimaryKeys/PrimaryKeyDifference.sql
similarity index 100%
rename from tests/UnitTests.Databases.SqlServer.Tests.Source/Tables/PrimaryKeys/PrimaryKeyDifference.sql
rename to tests/Testing.Databases.SqlServer.Tests.Source/Tables/PrimaryKeys/PrimaryKeyDifference.sql
diff --git a/tests/UnitTests.Databases.SqlServer.Tests.Source/Tables/PrimaryKeys/PrimaryKeyIdentical.sql b/tests/Testing.Databases.SqlServer.Tests.Source/Tables/PrimaryKeys/PrimaryKeyIdentical.sql
similarity index 100%
rename from tests/UnitTests.Databases.SqlServer.Tests.Source/Tables/PrimaryKeys/PrimaryKeyIdentical.sql
rename to tests/Testing.Databases.SqlServer.Tests.Source/Tables/PrimaryKeys/PrimaryKeyIdentical.sql
diff --git a/tests/UnitTests.Databases.SqlServer.Tests.Source/Tables/PrimaryKeys/PrimaryKeySource.sql b/tests/Testing.Databases.SqlServer.Tests.Source/Tables/PrimaryKeys/PrimaryKeySource.sql
similarity index 100%
rename from tests/UnitTests.Databases.SqlServer.Tests.Source/Tables/PrimaryKeys/PrimaryKeySource.sql
rename to tests/Testing.Databases.SqlServer.Tests.Source/Tables/PrimaryKeys/PrimaryKeySource.sql
diff --git a/tests/UnitTests.Databases.SqlServer.Tests.Source/Tables/ReferencedTable.sql b/tests/Testing.Databases.SqlServer.Tests.Source/Tables/ReferencedTable.sql
similarity index 100%
rename from tests/UnitTests.Databases.SqlServer.Tests.Source/Tables/ReferencedTable.sql
rename to tests/Testing.Databases.SqlServer.Tests.Source/Tables/ReferencedTable.sql
diff --git a/tests/UnitTests.Databases.SqlServer.Tests.Source/Tables/TableDifference.sql b/tests/Testing.Databases.SqlServer.Tests.Source/Tables/TableDifference.sql
similarity index 100%
rename from tests/UnitTests.Databases.SqlServer.Tests.Source/Tables/TableDifference.sql
rename to tests/Testing.Databases.SqlServer.Tests.Source/Tables/TableDifference.sql
diff --git a/tests/UnitTests.Databases.SqlServer.Tests.Source/Tables/TableIdentical.sql b/tests/Testing.Databases.SqlServer.Tests.Source/Tables/TableIdentical.sql
similarity index 100%
rename from tests/UnitTests.Databases.SqlServer.Tests.Source/Tables/TableIdentical.sql
rename to tests/Testing.Databases.SqlServer.Tests.Source/Tables/TableIdentical.sql
diff --git a/tests/UnitTests.Databases.SqlServer.Tests.Source/Tables/TableSource.sql b/tests/Testing.Databases.SqlServer.Tests.Source/Tables/TableSource.sql
similarity index 100%
rename from tests/UnitTests.Databases.SqlServer.Tests.Source/Tables/TableSource.sql
rename to tests/Testing.Databases.SqlServer.Tests.Source/Tables/TableSource.sql
diff --git a/tests/UnitTests.Databases.SqlServer.Tests.Source/Tables/Triggers/TriggerDifference.sql b/tests/Testing.Databases.SqlServer.Tests.Source/Tables/Triggers/TriggerDifference.sql
similarity index 100%
rename from tests/UnitTests.Databases.SqlServer.Tests.Source/Tables/Triggers/TriggerDifference.sql
rename to tests/Testing.Databases.SqlServer.Tests.Source/Tables/Triggers/TriggerDifference.sql
diff --git a/tests/UnitTests.Databases.SqlServer.Tests.Source/Tables/Triggers/TriggerIdentical.sql b/tests/Testing.Databases.SqlServer.Tests.Source/Tables/Triggers/TriggerIdentical.sql
similarity index 100%
rename from tests/UnitTests.Databases.SqlServer.Tests.Source/Tables/Triggers/TriggerIdentical.sql
rename to tests/Testing.Databases.SqlServer.Tests.Source/Tables/Triggers/TriggerIdentical.sql
diff --git a/tests/UnitTests.Databases.SqlServer.Tests.Source/Tables/Triggers/TriggerSource.sql b/tests/Testing.Databases.SqlServer.Tests.Source/Tables/Triggers/TriggerSource.sql
similarity index 100%
rename from tests/UnitTests.Databases.SqlServer.Tests.Source/Tables/Triggers/TriggerSource.sql
rename to tests/Testing.Databases.SqlServer.Tests.Source/Tables/Triggers/TriggerSource.sql
diff --git a/tests/UnitTests.Databases.SqlServer.Tests.Source/Tables/UniqueConstraints/UniqueConstraintDifference.sql b/tests/Testing.Databases.SqlServer.Tests.Source/Tables/UniqueConstraints/UniqueConstraintDifference.sql
similarity index 100%
rename from tests/UnitTests.Databases.SqlServer.Tests.Source/Tables/UniqueConstraints/UniqueConstraintDifference.sql
rename to tests/Testing.Databases.SqlServer.Tests.Source/Tables/UniqueConstraints/UniqueConstraintDifference.sql
diff --git a/tests/UnitTests.Databases.SqlServer.Tests.Source/Tables/UniqueConstraints/UniqueConstraintIdentical.sql b/tests/Testing.Databases.SqlServer.Tests.Source/Tables/UniqueConstraints/UniqueConstraintIdentical.sql
similarity index 100%
rename from tests/UnitTests.Databases.SqlServer.Tests.Source/Tables/UniqueConstraints/UniqueConstraintIdentical.sql
rename to tests/Testing.Databases.SqlServer.Tests.Source/Tables/UniqueConstraints/UniqueConstraintIdentical.sql
diff --git a/tests/UnitTests.Databases.SqlServer.Tests.Source/Tables/UniqueConstraints/UniqueConstraintSource.sql b/tests/Testing.Databases.SqlServer.Tests.Source/Tables/UniqueConstraints/UniqueConstraintSource.sql
similarity index 100%
rename from tests/UnitTests.Databases.SqlServer.Tests.Source/Tables/UniqueConstraints/UniqueConstraintSource.sql
rename to tests/Testing.Databases.SqlServer.Tests.Source/Tables/UniqueConstraints/UniqueConstraintSource.sql
diff --git a/tests/UnitTests.Databases.SqlServer.Tests.Source/Tables/__EFMigrationsHistorySource.sql b/tests/Testing.Databases.SqlServer.Tests.Source/Tables/__EFMigrationsHistorySource.sql
similarity index 100%
rename from tests/UnitTests.Databases.SqlServer.Tests.Source/Tables/__EFMigrationsHistorySource.sql
rename to tests/Testing.Databases.SqlServer.Tests.Source/Tables/__EFMigrationsHistorySource.sql
diff --git a/tests/UnitTests.Databases.SqlServer.Tests.Source/UnitTests.Databases.SqlServer.Tests.Source.sqlproj b/tests/Testing.Databases.SqlServer.Tests.Source/Testing.Databases.SqlServer.Tests.Source.sqlproj
similarity index 96%
rename from tests/UnitTests.Databases.SqlServer.Tests.Source/UnitTests.Databases.SqlServer.Tests.Source.sqlproj
rename to tests/Testing.Databases.SqlServer.Tests.Source/Testing.Databases.SqlServer.Tests.Source.sqlproj
index 0fc9cd6..05104a8 100644
--- a/tests/UnitTests.Databases.SqlServer.Tests.Source/UnitTests.Databases.SqlServer.Tests.Source.sqlproj
+++ b/tests/Testing.Databases.SqlServer.Tests.Source/Testing.Databases.SqlServer.Tests.Source.sqlproj
@@ -3,7 +3,7 @@
DebugAnyCPU
- UnitTests.Databases.SqlServer.Tests.Source
+ Testing.Databases.SqlServer.Tests.Source2.04.1{a261d4ff-9bea-475c-8671-e9bacfdce960}
@@ -11,8 +11,8 @@
Database
- UnitTests.Databases.SqlServer.Tests.Source
- UnitTests.Databases.SqlServer.Tests.Source
+ Testing.Databases.SqlServer.Tests.Source
+ Testing.Databases.SqlServer.Tests.Source1033, CIBySchemaAndSchemaTypeTrue
diff --git a/tests/UnitTests.Databases.SqlServer.Tests.Source/Views/ViewDifference.sql b/tests/Testing.Databases.SqlServer.Tests.Source/Views/ViewDifference.sql
similarity index 100%
rename from tests/UnitTests.Databases.SqlServer.Tests.Source/Views/ViewDifference.sql
rename to tests/Testing.Databases.SqlServer.Tests.Source/Views/ViewDifference.sql
diff --git a/tests/UnitTests.Databases.SqlServer.Tests.Source/Views/ViewIdentical.sql b/tests/Testing.Databases.SqlServer.Tests.Source/Views/ViewIdentical.sql
similarity index 100%
rename from tests/UnitTests.Databases.SqlServer.Tests.Source/Views/ViewIdentical.sql
rename to tests/Testing.Databases.SqlServer.Tests.Source/Views/ViewIdentical.sql
diff --git a/tests/UnitTests.Databases.SqlServer.Tests.Source/Views/ViewSource.sql b/tests/Testing.Databases.SqlServer.Tests.Source/Views/ViewSource.sql
similarity index 100%
rename from tests/UnitTests.Databases.SqlServer.Tests.Source/Views/ViewSource.sql
rename to tests/Testing.Databases.SqlServer.Tests.Source/Views/ViewSource.sql
diff --git a/tests/UnitTests.Databases.SqlServer.Tests.Target/Programmability/Stored Procedures/StoredProcedureDifference.sql b/tests/Testing.Databases.SqlServer.Tests.Target/Programmability/Stored Procedures/StoredProcedureDifference.sql
similarity index 100%
rename from tests/UnitTests.Databases.SqlServer.Tests.Target/Programmability/Stored Procedures/StoredProcedureDifference.sql
rename to tests/Testing.Databases.SqlServer.Tests.Target/Programmability/Stored Procedures/StoredProcedureDifference.sql
diff --git a/tests/UnitTests.Databases.SqlServer.Tests.Target/Programmability/Stored Procedures/StoredProcedureIdentical.sql b/tests/Testing.Databases.SqlServer.Tests.Target/Programmability/Stored Procedures/StoredProcedureIdentical.sql
similarity index 100%
rename from tests/UnitTests.Databases.SqlServer.Tests.Target/Programmability/Stored Procedures/StoredProcedureIdentical.sql
rename to tests/Testing.Databases.SqlServer.Tests.Target/Programmability/Stored Procedures/StoredProcedureIdentical.sql
diff --git a/tests/UnitTests.Databases.SqlServer.Tests.Target/Programmability/Stored Procedures/StoredProcedureTarget.sql b/tests/Testing.Databases.SqlServer.Tests.Target/Programmability/Stored Procedures/StoredProcedureTarget.sql
similarity index 100%
rename from tests/UnitTests.Databases.SqlServer.Tests.Target/Programmability/Stored Procedures/StoredProcedureTarget.sql
rename to tests/Testing.Databases.SqlServer.Tests.Target/Programmability/Stored Procedures/StoredProcedureTarget.sql
diff --git a/tests/UnitTests.Databases.SqlServer.Tests.Target/Programmability/Types/TypeDifference.sql b/tests/Testing.Databases.SqlServer.Tests.Target/Programmability/Types/TypeDifference.sql
similarity index 100%
rename from tests/UnitTests.Databases.SqlServer.Tests.Target/Programmability/Types/TypeDifference.sql
rename to tests/Testing.Databases.SqlServer.Tests.Target/Programmability/Types/TypeDifference.sql
diff --git a/tests/UnitTests.Databases.SqlServer.Tests.Target/Programmability/Types/TypeTarget.sql b/tests/Testing.Databases.SqlServer.Tests.Target/Programmability/Types/TypeTarget.sql
similarity index 100%
rename from tests/UnitTests.Databases.SqlServer.Tests.Target/Programmability/Types/TypeTarget.sql
rename to tests/Testing.Databases.SqlServer.Tests.Target/Programmability/Types/TypeTarget.sql
diff --git a/tests/UnitTests.Databases.SqlServer.Tests.Target/Tables/CheckConstraints/CheckConstraintDifference.sql b/tests/Testing.Databases.SqlServer.Tests.Target/Tables/CheckConstraints/CheckConstraintDifference.sql
similarity index 100%
rename from tests/UnitTests.Databases.SqlServer.Tests.Target/Tables/CheckConstraints/CheckConstraintDifference.sql
rename to tests/Testing.Databases.SqlServer.Tests.Target/Tables/CheckConstraints/CheckConstraintDifference.sql
diff --git a/tests/UnitTests.Databases.SqlServer.Tests.Target/Tables/CheckConstraints/CheckConstraintIdentical.sql b/tests/Testing.Databases.SqlServer.Tests.Target/Tables/CheckConstraints/CheckConstraintIdentical.sql
similarity index 100%
rename from tests/UnitTests.Databases.SqlServer.Tests.Target/Tables/CheckConstraints/CheckConstraintIdentical.sql
rename to tests/Testing.Databases.SqlServer.Tests.Target/Tables/CheckConstraints/CheckConstraintIdentical.sql
diff --git a/tests/UnitTests.Databases.SqlServer.Tests.Target/Tables/CheckConstraints/CheckConstraintTarget.sql b/tests/Testing.Databases.SqlServer.Tests.Target/Tables/CheckConstraints/CheckConstraintTarget.sql
similarity index 100%
rename from tests/UnitTests.Databases.SqlServer.Tests.Target/Tables/CheckConstraints/CheckConstraintTarget.sql
rename to tests/Testing.Databases.SqlServer.Tests.Target/Tables/CheckConstraints/CheckConstraintTarget.sql
diff --git a/tests/UnitTests.Databases.SqlServer.Tests.Target/Tables/ForeignKeys/ForeignKeyDifference.sql b/tests/Testing.Databases.SqlServer.Tests.Target/Tables/ForeignKeys/ForeignKeyDifference.sql
similarity index 100%
rename from tests/UnitTests.Databases.SqlServer.Tests.Target/Tables/ForeignKeys/ForeignKeyDifference.sql
rename to tests/Testing.Databases.SqlServer.Tests.Target/Tables/ForeignKeys/ForeignKeyDifference.sql
diff --git a/tests/UnitTests.Databases.SqlServer.Tests.Target/Tables/ForeignKeys/ForeignKeyTarget.sql b/tests/Testing.Databases.SqlServer.Tests.Target/Tables/ForeignKeys/ForeignKeyTarget.sql
similarity index 100%
rename from tests/UnitTests.Databases.SqlServer.Tests.Target/Tables/ForeignKeys/ForeignKeyTarget.sql
rename to tests/Testing.Databases.SqlServer.Tests.Target/Tables/ForeignKeys/ForeignKeyTarget.sql
diff --git a/tests/UnitTests.Databases.SqlServer.Tests.Target/Tables/Indexes/IndexDifference.sql b/tests/Testing.Databases.SqlServer.Tests.Target/Tables/Indexes/IndexDifference.sql
similarity index 100%
rename from tests/UnitTests.Databases.SqlServer.Tests.Target/Tables/Indexes/IndexDifference.sql
rename to tests/Testing.Databases.SqlServer.Tests.Target/Tables/Indexes/IndexDifference.sql
diff --git a/tests/UnitTests.Databases.SqlServer.Tests.Target/Tables/Indexes/IndexTarget.sql b/tests/Testing.Databases.SqlServer.Tests.Target/Tables/Indexes/IndexTarget.sql
similarity index 100%
rename from tests/UnitTests.Databases.SqlServer.Tests.Target/Tables/Indexes/IndexTarget.sql
rename to tests/Testing.Databases.SqlServer.Tests.Target/Tables/Indexes/IndexTarget.sql
diff --git a/tests/UnitTests.Databases.SqlServer.Tests.Target/Tables/PrimaryKey/PrimaryKeyDifference.sql b/tests/Testing.Databases.SqlServer.Tests.Target/Tables/PrimaryKey/PrimaryKeyDifference.sql
similarity index 100%
rename from tests/UnitTests.Databases.SqlServer.Tests.Target/Tables/PrimaryKey/PrimaryKeyDifference.sql
rename to tests/Testing.Databases.SqlServer.Tests.Target/Tables/PrimaryKey/PrimaryKeyDifference.sql
diff --git a/tests/UnitTests.Databases.SqlServer.Tests.Target/Tables/PrimaryKey/PrimaryKeyTarget.sql b/tests/Testing.Databases.SqlServer.Tests.Target/Tables/PrimaryKey/PrimaryKeyTarget.sql
similarity index 100%
rename from tests/UnitTests.Databases.SqlServer.Tests.Target/Tables/PrimaryKey/PrimaryKeyTarget.sql
rename to tests/Testing.Databases.SqlServer.Tests.Target/Tables/PrimaryKey/PrimaryKeyTarget.sql
diff --git a/tests/UnitTests.Databases.SqlServer.Tests.Target/Tables/TableDifference.sql b/tests/Testing.Databases.SqlServer.Tests.Target/Tables/TableDifference.sql
similarity index 100%
rename from tests/UnitTests.Databases.SqlServer.Tests.Target/Tables/TableDifference.sql
rename to tests/Testing.Databases.SqlServer.Tests.Target/Tables/TableDifference.sql
diff --git a/tests/UnitTests.Databases.SqlServer.Tests.Target/Tables/TableTarget.sql b/tests/Testing.Databases.SqlServer.Tests.Target/Tables/TableTarget.sql
similarity index 100%
rename from tests/UnitTests.Databases.SqlServer.Tests.Target/Tables/TableTarget.sql
rename to tests/Testing.Databases.SqlServer.Tests.Target/Tables/TableTarget.sql
diff --git a/tests/UnitTests.Databases.SqlServer.Tests.Target/Tables/Triggers/TriggerDifference.sql b/tests/Testing.Databases.SqlServer.Tests.Target/Tables/Triggers/TriggerDifference.sql
similarity index 100%
rename from tests/UnitTests.Databases.SqlServer.Tests.Target/Tables/Triggers/TriggerDifference.sql
rename to tests/Testing.Databases.SqlServer.Tests.Target/Tables/Triggers/TriggerDifference.sql
diff --git a/tests/UnitTests.Databases.SqlServer.Tests.Target/Tables/Triggers/TriggerIdentical.sql b/tests/Testing.Databases.SqlServer.Tests.Target/Tables/Triggers/TriggerIdentical.sql
similarity index 100%
rename from tests/UnitTests.Databases.SqlServer.Tests.Target/Tables/Triggers/TriggerIdentical.sql
rename to tests/Testing.Databases.SqlServer.Tests.Target/Tables/Triggers/TriggerIdentical.sql
diff --git a/tests/UnitTests.Databases.SqlServer.Tests.Target/Tables/Triggers/TriggerTarget.sql b/tests/Testing.Databases.SqlServer.Tests.Target/Tables/Triggers/TriggerTarget.sql
similarity index 100%
rename from tests/UnitTests.Databases.SqlServer.Tests.Target/Tables/Triggers/TriggerTarget.sql
rename to tests/Testing.Databases.SqlServer.Tests.Target/Tables/Triggers/TriggerTarget.sql
diff --git a/tests/UnitTests.Databases.SqlServer.Tests.Target/Tables/UniqueConstraints/UniqueConstraintDifference.sql b/tests/Testing.Databases.SqlServer.Tests.Target/Tables/UniqueConstraints/UniqueConstraintDifference.sql
similarity index 100%
rename from tests/UnitTests.Databases.SqlServer.Tests.Target/Tables/UniqueConstraints/UniqueConstraintDifference.sql
rename to tests/Testing.Databases.SqlServer.Tests.Target/Tables/UniqueConstraints/UniqueConstraintDifference.sql
diff --git a/tests/UnitTests.Databases.SqlServer.Tests.Target/Tables/UniqueConstraints/UniqueConstraintTarget.sql b/tests/Testing.Databases.SqlServer.Tests.Target/Tables/UniqueConstraints/UniqueConstraintTarget.sql
similarity index 100%
rename from tests/UnitTests.Databases.SqlServer.Tests.Target/Tables/UniqueConstraints/UniqueConstraintTarget.sql
rename to tests/Testing.Databases.SqlServer.Tests.Target/Tables/UniqueConstraints/UniqueConstraintTarget.sql
diff --git a/tests/UnitTests.Databases.SqlServer.Tests.Target/Tables/__EFMigrationsHistoryTarget.sql b/tests/Testing.Databases.SqlServer.Tests.Target/Tables/__EFMigrationsHistoryTarget.sql
similarity index 100%
rename from tests/UnitTests.Databases.SqlServer.Tests.Target/Tables/__EFMigrationsHistoryTarget.sql
rename to tests/Testing.Databases.SqlServer.Tests.Target/Tables/__EFMigrationsHistoryTarget.sql
diff --git a/tests/UnitTests.Databases.SqlServer.Tests.Target/UnitTests.Databases.SqlServer.Tests.Target.sqlproj b/tests/Testing.Databases.SqlServer.Tests.Target/Testing.Databases.SqlServer.Tests.Target.sqlproj
similarity index 85%
rename from tests/UnitTests.Databases.SqlServer.Tests.Target/UnitTests.Databases.SqlServer.Tests.Target.sqlproj
rename to tests/Testing.Databases.SqlServer.Tests.Target/Testing.Databases.SqlServer.Tests.Target.sqlproj
index 2a7d99d..8728546 100644
--- a/tests/UnitTests.Databases.SqlServer.Tests.Target/UnitTests.Databases.SqlServer.Tests.Target.sqlproj
+++ b/tests/Testing.Databases.SqlServer.Tests.Target/Testing.Databases.SqlServer.Tests.Target.sqlproj
@@ -3,7 +3,7 @@
DebugAnyCPU
- UnitTests.Databases.SqlServer.Tests.Target
+ Testing.Databases.SqlServer.Tests.Target2.04.1{6cd3f177-053f-4816-a37e-5ca6f293d34c}
@@ -11,8 +11,8 @@
Database
- UnitTests.Databases.SqlServer.Tests.Target
- UnitTests.Databases.SqlServer.Tests.Target
+ Testing.Databases.SqlServer.Tests.Target
+ Testing.Databases.SqlServer.Tests.Target1033, CIBySchemaAndSchemaTypeTrue
@@ -69,36 +69,36 @@
-
+
Tables\TableIdentical.sql
-
+
Tables\PrimaryKey\PrimaryKeyIdentical.sql
-
+
Programmability\Types\TypeIdentical.sql
-
+
Tables\UniqueConstraints\UniqueConstraintIdentical.sql
-
+
Tables\ReferencedTable.sql
-
+
Tables\ForeignKeys\ForeignKeyIdentical.sql
-
+
Tables\Indexes\IndexIdentical.sql
diff --git a/tests/UnitTests.Databases.SqlServer.Tests.Target/Views/ViewDifference.sql b/tests/Testing.Databases.SqlServer.Tests.Target/Views/ViewDifference.sql
similarity index 100%
rename from tests/UnitTests.Databases.SqlServer.Tests.Target/Views/ViewDifference.sql
rename to tests/Testing.Databases.SqlServer.Tests.Target/Views/ViewDifference.sql
diff --git a/tests/UnitTests.Databases.SqlServer.Tests.Target/Views/ViewIdentical.sql b/tests/Testing.Databases.SqlServer.Tests.Target/Views/ViewIdentical.sql
similarity index 100%
rename from tests/UnitTests.Databases.SqlServer.Tests.Target/Views/ViewIdentical.sql
rename to tests/Testing.Databases.SqlServer.Tests.Target/Views/ViewIdentical.sql
diff --git a/tests/UnitTests.Databases.SqlServer.Tests.Target/Views/ViewTarget.sql b/tests/Testing.Databases.SqlServer.Tests.Target/Views/ViewTarget.sql
similarity index 100%
rename from tests/UnitTests.Databases.SqlServer.Tests.Target/Views/ViewTarget.sql
rename to tests/Testing.Databases.SqlServer.Tests.Target/Views/ViewTarget.sql
diff --git a/tests/UnitTests.Databases.SqlServer.Tests/Comparer/SqlDatabaseComparisonResultsTest.cs b/tests/Testing.Databases.SqlServer.Tests/Comparer/SqlDatabaseComparisonResultsTest.cs
similarity index 98%
rename from tests/UnitTests.Databases.SqlServer.Tests/Comparer/SqlDatabaseComparisonResultsTest.cs
rename to tests/Testing.Databases.SqlServer.Tests/Comparer/SqlDatabaseComparisonResultsTest.cs
index c6f5815..70e396f 100644
--- a/tests/UnitTests.Databases.SqlServer.Tests/Comparer/SqlDatabaseComparisonResultsTest.cs
+++ b/tests/Testing.Databases.SqlServer.Tests/Comparer/SqlDatabaseComparisonResultsTest.cs
@@ -4,7 +4,7 @@
//
//-----------------------------------------------------------------------
-namespace PosInformatique.UnitTests.Databases.Tests
+namespace PosInformatique.Testing.Databases.Tests
{
using System.Collections.ObjectModel;
diff --git a/tests/UnitTests.Databases.SqlServer.Tests/Comparer/SqlObjectDifferencesTest.cs b/tests/Testing.Databases.SqlServer.Tests/Comparer/SqlObjectDifferencesTest.cs
similarity index 96%
rename from tests/UnitTests.Databases.SqlServer.Tests/Comparer/SqlObjectDifferencesTest.cs
rename to tests/Testing.Databases.SqlServer.Tests/Comparer/SqlObjectDifferencesTest.cs
index 917db7d..6de2880 100644
--- a/tests/UnitTests.Databases.SqlServer.Tests/Comparer/SqlObjectDifferencesTest.cs
+++ b/tests/Testing.Databases.SqlServer.Tests/Comparer/SqlObjectDifferencesTest.cs
@@ -4,7 +4,7 @@
//
//-----------------------------------------------------------------------
-namespace PosInformatique.UnitTests.Databases.Tests
+namespace PosInformatique.Testing.Databases.Tests
{
public class SqlObjectDifferencesTest
{
diff --git a/tests/UnitTests.Databases.SqlServer.Tests/Comparer/SqlObjectPropertyDifferenceTest.cs b/tests/Testing.Databases.SqlServer.Tests/Comparer/SqlObjectPropertyDifferenceTest.cs
similarity index 94%
rename from tests/UnitTests.Databases.SqlServer.Tests/Comparer/SqlObjectPropertyDifferenceTest.cs
rename to tests/Testing.Databases.SqlServer.Tests/Comparer/SqlObjectPropertyDifferenceTest.cs
index 3fdc512..ec44380 100644
--- a/tests/UnitTests.Databases.SqlServer.Tests/Comparer/SqlObjectPropertyDifferenceTest.cs
+++ b/tests/Testing.Databases.SqlServer.Tests/Comparer/SqlObjectPropertyDifferenceTest.cs
@@ -4,7 +4,7 @@
//
//-----------------------------------------------------------------------
-namespace PosInformatique.UnitTests.Databases.Tests
+namespace PosInformatique.Testing.Databases.Tests
{
public class SqlObjectPropertyDifferenceTest
{
diff --git a/tests/UnitTests.Databases.SqlServer.Tests/ObjectModel/SqlCheckConstraintTest.cs b/tests/Testing.Databases.SqlServer.Tests/ObjectModel/SqlCheckConstraintTest.cs
similarity index 92%
rename from tests/UnitTests.Databases.SqlServer.Tests/ObjectModel/SqlCheckConstraintTest.cs
rename to tests/Testing.Databases.SqlServer.Tests/ObjectModel/SqlCheckConstraintTest.cs
index 010d230..02fff84 100644
--- a/tests/UnitTests.Databases.SqlServer.Tests/ObjectModel/SqlCheckConstraintTest.cs
+++ b/tests/Testing.Databases.SqlServer.Tests/ObjectModel/SqlCheckConstraintTest.cs
@@ -4,7 +4,7 @@
//
//-----------------------------------------------------------------------
-namespace PosInformatique.UnitTests.Databases.Tests
+namespace PosInformatique.Testing.Databases.Tests
{
public class SqlCheckConstraintTest
{
diff --git a/tests/UnitTests.Databases.SqlServer.Tests/ObjectModel/SqlColumnTest.cs b/tests/Testing.Databases.SqlServer.Tests/ObjectModel/SqlColumnTest.cs
similarity index 94%
rename from tests/UnitTests.Databases.SqlServer.Tests/ObjectModel/SqlColumnTest.cs
rename to tests/Testing.Databases.SqlServer.Tests/ObjectModel/SqlColumnTest.cs
index 2207dbd..bca7032 100644
--- a/tests/UnitTests.Databases.SqlServer.Tests/ObjectModel/SqlColumnTest.cs
+++ b/tests/Testing.Databases.SqlServer.Tests/ObjectModel/SqlColumnTest.cs
@@ -4,7 +4,7 @@
//
//-----------------------------------------------------------------------
-namespace PosInformatique.UnitTests.Databases.Tests
+namespace PosInformatique.Testing.Databases.Tests
{
public class SqlColumnTest
{
diff --git a/tests/UnitTests.Databases.SqlServer.Tests/ObjectModel/SqlForeignKeyColumnTest.cs b/tests/Testing.Databases.SqlServer.Tests/ObjectModel/SqlForeignKeyColumnTest.cs
similarity index 93%
rename from tests/UnitTests.Databases.SqlServer.Tests/ObjectModel/SqlForeignKeyColumnTest.cs
rename to tests/Testing.Databases.SqlServer.Tests/ObjectModel/SqlForeignKeyColumnTest.cs
index 92b1d89..1283ba8 100644
--- a/tests/UnitTests.Databases.SqlServer.Tests/ObjectModel/SqlForeignKeyColumnTest.cs
+++ b/tests/Testing.Databases.SqlServer.Tests/ObjectModel/SqlForeignKeyColumnTest.cs
@@ -4,7 +4,7 @@
//
//-----------------------------------------------------------------------
-namespace PosInformatique.UnitTests.Databases.Tests
+namespace PosInformatique.Testing.Databases.Tests
{
public class SqlForeignKeyColumnTest
{
diff --git a/tests/UnitTests.Databases.SqlServer.Tests/ObjectModel/SqlForeignKeyTest.cs b/tests/Testing.Databases.SqlServer.Tests/ObjectModel/SqlForeignKeyTest.cs
similarity index 93%
rename from tests/UnitTests.Databases.SqlServer.Tests/ObjectModel/SqlForeignKeyTest.cs
rename to tests/Testing.Databases.SqlServer.Tests/ObjectModel/SqlForeignKeyTest.cs
index c43b0b4..615c15f 100644
--- a/tests/UnitTests.Databases.SqlServer.Tests/ObjectModel/SqlForeignKeyTest.cs
+++ b/tests/Testing.Databases.SqlServer.Tests/ObjectModel/SqlForeignKeyTest.cs
@@ -4,7 +4,7 @@
//
//-----------------------------------------------------------------------
-namespace PosInformatique.UnitTests.Databases.Tests
+namespace PosInformatique.Testing.Databases.Tests
{
public class SqlForeignKeyTest
{
diff --git a/tests/UnitTests.Databases.SqlServer.Tests/ObjectModel/SqlIndexColumnTest.cs b/tests/Testing.Databases.SqlServer.Tests/ObjectModel/SqlIndexColumnTest.cs
similarity index 92%
rename from tests/UnitTests.Databases.SqlServer.Tests/ObjectModel/SqlIndexColumnTest.cs
rename to tests/Testing.Databases.SqlServer.Tests/ObjectModel/SqlIndexColumnTest.cs
index 99b89cb..ff92abc 100644
--- a/tests/UnitTests.Databases.SqlServer.Tests/ObjectModel/SqlIndexColumnTest.cs
+++ b/tests/Testing.Databases.SqlServer.Tests/ObjectModel/SqlIndexColumnTest.cs
@@ -4,7 +4,7 @@
//
//-----------------------------------------------------------------------
-namespace PosInformatique.UnitTests.Databases.Tests
+namespace PosInformatique.Testing.Databases.Tests
{
public class SqlIndexColumnTest
{
diff --git a/tests/UnitTests.Databases.SqlServer.Tests/ObjectModel/SqlIndexTest.cs b/tests/Testing.Databases.SqlServer.Tests/ObjectModel/SqlIndexTest.cs
similarity index 93%
rename from tests/UnitTests.Databases.SqlServer.Tests/ObjectModel/SqlIndexTest.cs
rename to tests/Testing.Databases.SqlServer.Tests/ObjectModel/SqlIndexTest.cs
index 2fac41e..3fd7b0d 100644
--- a/tests/UnitTests.Databases.SqlServer.Tests/ObjectModel/SqlIndexTest.cs
+++ b/tests/Testing.Databases.SqlServer.Tests/ObjectModel/SqlIndexTest.cs
@@ -4,7 +4,7 @@
//
//-----------------------------------------------------------------------
-namespace PosInformatique.UnitTests.Databases.Tests
+namespace PosInformatique.Testing.Databases.Tests
{
public class SqlIndexTest
{
diff --git a/tests/UnitTests.Databases.SqlServer.Tests/ObjectModel/SqlPrimaryKeyColumnTest.cs b/tests/Testing.Databases.SqlServer.Tests/ObjectModel/SqlPrimaryKeyColumnTest.cs
similarity index 92%
rename from tests/UnitTests.Databases.SqlServer.Tests/ObjectModel/SqlPrimaryKeyColumnTest.cs
rename to tests/Testing.Databases.SqlServer.Tests/ObjectModel/SqlPrimaryKeyColumnTest.cs
index b3e8fe1..42861da 100644
--- a/tests/UnitTests.Databases.SqlServer.Tests/ObjectModel/SqlPrimaryKeyColumnTest.cs
+++ b/tests/Testing.Databases.SqlServer.Tests/ObjectModel/SqlPrimaryKeyColumnTest.cs
@@ -4,7 +4,7 @@
//
//-----------------------------------------------------------------------
-namespace PosInformatique.UnitTests.Databases.Tests
+namespace PosInformatique.Testing.Databases.Tests
{
public class SqlPrimaryKeyColumnTest
{
diff --git a/tests/UnitTests.Databases.SqlServer.Tests/ObjectModel/SqlPrimaryKeyTest.cs b/tests/Testing.Databases.SqlServer.Tests/ObjectModel/SqlPrimaryKeyTest.cs
similarity index 92%
rename from tests/UnitTests.Databases.SqlServer.Tests/ObjectModel/SqlPrimaryKeyTest.cs
rename to tests/Testing.Databases.SqlServer.Tests/ObjectModel/SqlPrimaryKeyTest.cs
index feabe8a..5f4fe81 100644
--- a/tests/UnitTests.Databases.SqlServer.Tests/ObjectModel/SqlPrimaryKeyTest.cs
+++ b/tests/Testing.Databases.SqlServer.Tests/ObjectModel/SqlPrimaryKeyTest.cs
@@ -4,7 +4,7 @@
//
//-----------------------------------------------------------------------
-namespace PosInformatique.UnitTests.Databases.Tests
+namespace PosInformatique.Testing.Databases.Tests
{
public class SqlPrimaryKeyTest
{
diff --git a/tests/UnitTests.Databases.SqlServer.Tests/ObjectModel/SqlStoredProcedureTest.cs b/tests/Testing.Databases.SqlServer.Tests/ObjectModel/SqlStoredProcedureTest.cs
similarity index 93%
rename from tests/UnitTests.Databases.SqlServer.Tests/ObjectModel/SqlStoredProcedureTest.cs
rename to tests/Testing.Databases.SqlServer.Tests/ObjectModel/SqlStoredProcedureTest.cs
index a2dc6e1..b4374da 100644
--- a/tests/UnitTests.Databases.SqlServer.Tests/ObjectModel/SqlStoredProcedureTest.cs
+++ b/tests/Testing.Databases.SqlServer.Tests/ObjectModel/SqlStoredProcedureTest.cs
@@ -4,7 +4,7 @@
//
//-----------------------------------------------------------------------
-namespace PosInformatique.UnitTests.Databases.Tests
+namespace PosInformatique.Testing.Databases.Tests
{
public class SqlStoredProcedureTest
{
diff --git a/tests/UnitTests.Databases.SqlServer.Tests/ObjectModel/SqlTableTest.cs b/tests/Testing.Databases.SqlServer.Tests/ObjectModel/SqlTableTest.cs
similarity index 92%
rename from tests/UnitTests.Databases.SqlServer.Tests/ObjectModel/SqlTableTest.cs
rename to tests/Testing.Databases.SqlServer.Tests/ObjectModel/SqlTableTest.cs
index 47d6238..57c57b7 100644
--- a/tests/UnitTests.Databases.SqlServer.Tests/ObjectModel/SqlTableTest.cs
+++ b/tests/Testing.Databases.SqlServer.Tests/ObjectModel/SqlTableTest.cs
@@ -4,7 +4,7 @@
//
//-----------------------------------------------------------------------
-namespace PosInformatique.UnitTests.Databases.Tests
+namespace PosInformatique.Testing.Databases.Tests
{
public class SqlTableTest
{
diff --git a/tests/UnitTests.Databases.SqlServer.Tests/ObjectModel/SqlTriggerTest.cs b/tests/Testing.Databases.SqlServer.Tests/ObjectModel/SqlTriggerTest.cs
similarity index 92%
rename from tests/UnitTests.Databases.SqlServer.Tests/ObjectModel/SqlTriggerTest.cs
rename to tests/Testing.Databases.SqlServer.Tests/ObjectModel/SqlTriggerTest.cs
index 642599b..c8d2eab 100644
--- a/tests/UnitTests.Databases.SqlServer.Tests/ObjectModel/SqlTriggerTest.cs
+++ b/tests/Testing.Databases.SqlServer.Tests/ObjectModel/SqlTriggerTest.cs
@@ -4,7 +4,7 @@
//
//-----------------------------------------------------------------------
-namespace PosInformatique.UnitTests.Databases.Tests
+namespace PosInformatique.Testing.Databases.Tests
{
public class SqlTriggerTest
{
diff --git a/tests/UnitTests.Databases.SqlServer.Tests/ObjectModel/SqlUniqueConstraintTest.cs b/tests/Testing.Databases.SqlServer.Tests/ObjectModel/SqlUniqueConstraintTest.cs
similarity index 92%
rename from tests/UnitTests.Databases.SqlServer.Tests/ObjectModel/SqlUniqueConstraintTest.cs
rename to tests/Testing.Databases.SqlServer.Tests/ObjectModel/SqlUniqueConstraintTest.cs
index cdb9e0a..06e9afa 100644
--- a/tests/UnitTests.Databases.SqlServer.Tests/ObjectModel/SqlUniqueConstraintTest.cs
+++ b/tests/Testing.Databases.SqlServer.Tests/ObjectModel/SqlUniqueConstraintTest.cs
@@ -4,7 +4,7 @@
//
//-----------------------------------------------------------------------
-namespace PosInformatique.UnitTests.Databases.Tests
+namespace PosInformatique.Testing.Databases.Tests
{
public class SqlUniqueConstraintTest
{
diff --git a/tests/UnitTests.Databases.SqlServer.Tests/ObjectModel/SqlUserTypeTest.cs b/tests/Testing.Databases.SqlServer.Tests/ObjectModel/SqlUserTypeTest.cs
similarity index 93%
rename from tests/UnitTests.Databases.SqlServer.Tests/ObjectModel/SqlUserTypeTest.cs
rename to tests/Testing.Databases.SqlServer.Tests/ObjectModel/SqlUserTypeTest.cs
index 20ea14f..ad5e925 100644
--- a/tests/UnitTests.Databases.SqlServer.Tests/ObjectModel/SqlUserTypeTest.cs
+++ b/tests/Testing.Databases.SqlServer.Tests/ObjectModel/SqlUserTypeTest.cs
@@ -4,7 +4,7 @@
//
//-----------------------------------------------------------------------
-namespace PosInformatique.UnitTests.Databases.Tests
+namespace PosInformatique.Testing.Databases.Tests
{
public class SqlUserTypeTest
{
diff --git a/tests/UnitTests.Databases.SqlServer.Tests/ObjectModel/SqlViewTest.cs b/tests/Testing.Databases.SqlServer.Tests/ObjectModel/SqlViewTest.cs
similarity index 92%
rename from tests/UnitTests.Databases.SqlServer.Tests/ObjectModel/SqlViewTest.cs
rename to tests/Testing.Databases.SqlServer.Tests/ObjectModel/SqlViewTest.cs
index ae0ec5e..af9cdbb 100644
--- a/tests/UnitTests.Databases.SqlServer.Tests/ObjectModel/SqlViewTest.cs
+++ b/tests/Testing.Databases.SqlServer.Tests/ObjectModel/SqlViewTest.cs
@@ -4,7 +4,7 @@
//
//-----------------------------------------------------------------------
-namespace PosInformatique.UnitTests.Databases.Tests
+namespace PosInformatique.Testing.Databases.Tests
{
public class SqlViewTest
{
diff --git a/tests/UnitTests.Databases.SqlServer.Tests/SqlServerDatabaseComparerTest.CompareAsync.txt b/tests/Testing.Databases.SqlServer.Tests/SqlServerDatabaseComparerTest.CompareAsync.txt
similarity index 100%
rename from tests/UnitTests.Databases.SqlServer.Tests/SqlServerDatabaseComparerTest.CompareAsync.txt
rename to tests/Testing.Databases.SqlServer.Tests/SqlServerDatabaseComparerTest.CompareAsync.txt
diff --git a/tests/UnitTests.Databases.SqlServer.Tests/SqlServerDatabaseComparerTest.cs b/tests/Testing.Databases.SqlServer.Tests/SqlServerDatabaseComparerTest.cs
similarity index 99%
rename from tests/UnitTests.Databases.SqlServer.Tests/SqlServerDatabaseComparerTest.cs
rename to tests/Testing.Databases.SqlServer.Tests/SqlServerDatabaseComparerTest.cs
index 383a17e..79b6593 100644
--- a/tests/UnitTests.Databases.SqlServer.Tests/SqlServerDatabaseComparerTest.cs
+++ b/tests/Testing.Databases.SqlServer.Tests/SqlServerDatabaseComparerTest.cs
@@ -4,20 +4,20 @@
//
//-----------------------------------------------------------------------
-namespace PosInformatique.UnitTests.Databases.SqlServer.Tests
+namespace PosInformatique.Testing.Databases.SqlServer.Tests
{
- [Collection("PosInformatique.UnitTests.Databases.SqlServer.Tests")]
+ [Collection("PosInformatique.Testing.Databases.SqlServer.Tests")]
public class SqlServerDatabaseComparerTest
{
- private const string ConnectionString = $"Data Source=(localDB)\\posinfo-unit-tests; Integrated Security=True";
+ private const string ConnectionString = $"Data Source=(localDB)\\posinfo-tests; Integrated Security=True";
[Fact]
public async Task CompareAsync()
{
var server = new SqlServer(ConnectionString);
- var sourceDatabase = Task.Run(() => server.DeployDacPackage("UnitTests.Databases.SqlServer.Tests.Source.dacpac", $"{nameof(SqlServerDatabaseComparerTest)}_Source"));
- var targetDatabase = Task.Run(() => server.DeployDacPackage("UnitTests.Databases.SqlServer.Tests.Target.dacpac", $"{nameof(SqlServerDatabaseComparerTest)}_Target"));
+ var sourceDatabase = Task.Run(() => server.DeployDacPackage("Testing.Databases.SqlServer.Tests.Source.dacpac", $"{nameof(SqlServerDatabaseComparerTest)}_Source"));
+ var targetDatabase = Task.Run(() => server.DeployDacPackage("Testing.Databases.SqlServer.Tests.Target.dacpac", $"{nameof(SqlServerDatabaseComparerTest)}_Target"));
await Task.WhenAll(sourceDatabase, targetDatabase);
diff --git a/tests/UnitTests.Databases.SqlServer.Tests/SqlServerDatabaseExtensionsTest.cs b/tests/Testing.Databases.SqlServer.Tests/SqlServerDatabaseExtensionsTest.cs
similarity index 93%
rename from tests/UnitTests.Databases.SqlServer.Tests/SqlServerDatabaseExtensionsTest.cs
rename to tests/Testing.Databases.SqlServer.Tests/SqlServerDatabaseExtensionsTest.cs
index 4b8392c..d4379a4 100644
--- a/tests/UnitTests.Databases.SqlServer.Tests/SqlServerDatabaseExtensionsTest.cs
+++ b/tests/Testing.Databases.SqlServer.Tests/SqlServerDatabaseExtensionsTest.cs
@@ -4,12 +4,12 @@
//
//-----------------------------------------------------------------------
-namespace PosInformatique.UnitTests.Databases.SqlServer.Tests
+namespace PosInformatique.Testing.Databases.SqlServer.Tests
{
- [Collection("PosInformatique.UnitTests.Databases.SqlServer.Tests")]
+ [Collection("PosInformatique.Testing.Databases.SqlServer.Tests")]
public class SqlServerDatabaseExtensionsTest
{
- private const string ConnectionString = $"Data Source=(localDB)\\posinfo-unit-tests; Initial Catalog={nameof(SqlServerDatabaseExtensionsTest)}; Integrated Security=True";
+ private const string ConnectionString = $"Data Source=(localDB)\\posinfo-tests; Initial Catalog={nameof(SqlServerDatabaseExtensionsTest)}; Integrated Security=True";
[Fact]
public void InsertInto_EnableIdentity()
diff --git a/tests/UnitTests.Databases.SqlServer.Tests/SqlServerDatabaseInitializerTest.cs b/tests/Testing.Databases.SqlServer.Tests/SqlServerDatabaseInitializerTest.cs
similarity index 83%
rename from tests/UnitTests.Databases.SqlServer.Tests/SqlServerDatabaseInitializerTest.cs
rename to tests/Testing.Databases.SqlServer.Tests/SqlServerDatabaseInitializerTest.cs
index a788beb..57da907 100644
--- a/tests/UnitTests.Databases.SqlServer.Tests/SqlServerDatabaseInitializerTest.cs
+++ b/tests/Testing.Databases.SqlServer.Tests/SqlServerDatabaseInitializerTest.cs
@@ -4,18 +4,18 @@
//
//-----------------------------------------------------------------------
-namespace PosInformatique.UnitTests.Databases.SqlServer.Tests
+namespace PosInformatique.Testing.Databases.SqlServer.Tests
{
- [Collection("PosInformatique.UnitTests.Databases.SqlServer.Tests")]
+ [Collection("PosInformatique.Testing.Databases.SqlServer.Tests")]
public class SqlServerDatabaseInitializerTest : IClassFixture
{
- private const string ConnectionString = $"Data Source=(localDB)\\posinfo-unit-tests; Initial Catalog={nameof(SqlServerDatabaseInitializerTest)}; Integrated Security=True";
+ private const string ConnectionString = $"Data Source=(localDB)\\posinfo-tests; Initial Catalog={nameof(SqlServerDatabaseInitializerTest)}; Integrated Security=True";
private readonly SqlServerDatabase database;
public SqlServerDatabaseInitializerTest(SqlServerDatabaseInitializer initializer)
{
- this.database = initializer.Initialize("UnitTests.Databases.SqlServer.Tests.DacPac.dacpac", ConnectionString);
+ this.database = initializer.Initialize("Testing.Databases.SqlServer.Tests.DacPac.dacpac", ConnectionString);
var table = this.database.ExecuteQuery("SELECT * FROM MyTable");
@@ -43,7 +43,7 @@ public void Test1()
table.Rows[1]["Name"].Should().Be("Name 2");
// Insert a row which should not be use in other tests.
- this.database.InsertInto("MyTable", new { Id = 99, Name = "Should not be here for the next unit test" });
+ this.database.InsertInto("MyTable", new { Id = 99, Name = "Should not be here for the next test" });
}
[Fact]
@@ -64,7 +64,7 @@ public void Test2()
table.Rows[1]["Name"].Should().Be("Name 2");
// Insert a row which should not be use in other tests.
- this.database.InsertInto("MyTable", new { Id = 99, Name = "Should not be here for the next unit test" });
+ this.database.InsertInto("MyTable", new { Id = 99, Name = "Should not be here for the next test" });
}
}
}
\ No newline at end of file
diff --git a/tests/UnitTests.Databases.SqlServer.Tests/SqlServerTest.cs b/tests/Testing.Databases.SqlServer.Tests/SqlServerTest.cs
similarity index 94%
rename from tests/UnitTests.Databases.SqlServer.Tests/SqlServerTest.cs
rename to tests/Testing.Databases.SqlServer.Tests/SqlServerTest.cs
index 6ac632e..09c53c4 100644
--- a/tests/UnitTests.Databases.SqlServer.Tests/SqlServerTest.cs
+++ b/tests/Testing.Databases.SqlServer.Tests/SqlServerTest.cs
@@ -4,7 +4,7 @@
//
//-----------------------------------------------------------------------
-namespace PosInformatique.UnitTests.Databases.SqlServer.Tests
+namespace PosInformatique.Testing.Databases.SqlServer.Tests
{
public class SqlServerTest
{
diff --git a/tests/UnitTests.Databases.SqlServer.Tests/UnitTests.Databases.SqlServer.Tests.csproj b/tests/Testing.Databases.SqlServer.Tests/Testing.Databases.SqlServer.Tests.csproj
similarity index 55%
rename from tests/UnitTests.Databases.SqlServer.Tests/UnitTests.Databases.SqlServer.Tests.csproj
rename to tests/Testing.Databases.SqlServer.Tests/Testing.Databases.SqlServer.Tests.csproj
index f151541..966431e 100644
--- a/tests/UnitTests.Databases.SqlServer.Tests/UnitTests.Databases.SqlServer.Tests.csproj
+++ b/tests/Testing.Databases.SqlServer.Tests/Testing.Databases.SqlServer.Tests.csproj
@@ -9,16 +9,16 @@
-
+ PreserveNewest
-
+ PreserveNewest
-
+ PreserveNewest
@@ -41,10 +41,10 @@
-
-
-
-
+
+
+
+