Skip to content

Commit

Permalink
Refactor UnitTests
Browse files Browse the repository at this point in the history
  • Loading branch information
engineering87 committed Oct 28, 2024
1 parent 43f2e40 commit 4c58062
Show file tree
Hide file tree
Showing 19 changed files with 390 additions and 643 deletions.
26 changes: 26 additions & 0 deletions src/SharpConnector.Api/SharpConnector.Api.csproj
Original file line number Diff line number Diff line change
Expand Up @@ -7,6 +7,32 @@
<IsPackable>false</IsPackable>
</PropertyGroup>

<ItemGroup>
<Content Remove="appsettings.litedb.json" />
<Content Remove="appsettings.memcached.json" />
<Content Remove="appsettings.mongodb.json" />
<Content Remove="appsettings.ravendb.json" />
<Content Remove="appsettings.redis.json" />
</ItemGroup>

<ItemGroup>
<None Include="appsettings.litedb.json">
<CopyToOutputDirectory>Always</CopyToOutputDirectory>
</None>
<None Include="appsettings.memcached.json">
<CopyToOutputDirectory>Always</CopyToOutputDirectory>
</None>
<None Include="appsettings.mongodb.json">
<CopyToOutputDirectory>Always</CopyToOutputDirectory>
</None>
<None Include="appsettings.ravendb.json">
<CopyToOutputDirectory>Always</CopyToOutputDirectory>
</None>
<None Include="appsettings.redis.json">
<CopyToOutputDirectory>Always</CopyToOutputDirectory>
</None>
</ItemGroup>

<ItemGroup>
<PackageReference Include="Swashbuckle.AspNetCore" Version="6.9.0" />
</ItemGroup>
Expand Down
8 changes: 0 additions & 8 deletions src/SharpConnector.Api/appsettings.Development.json

This file was deleted.

6 changes: 3 additions & 3 deletions src/SharpConnector.Api/appsettings.json
Original file line number Diff line number Diff line change
@@ -1,8 +1,8 @@
{
"ConnectorConfig": {
"Instance": "Redis",
"DatabaseNumber": 0,
"ConnectionString": "redis_connectionstring_here"
"Instance": "RavenDb",
"DatabaseName": "test",
"ConnectionString": "http://live-test.ravendb.net"
},
"Logging": {
"LogLevel": {
Expand Down
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
{
"ConnectorConfig": {
"Instance": "LiteDb",
"CollectionName": "test",
"ConnectionString": "LiteDbTest.db"
}
{
"ConnectorConfig": {
"Instance": "LiteDb",
"CollectionName": "test",
"ConnectionString": "LiteDbTest.db"
}
}
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
{
"ConnectorConfig": {
"Instance": "Memcached",
"ConnectionString": "127.0.0.1:11211"
}
{
"ConnectorConfig": {
"Instance": "Memcached",
"ConnectionString": "127.0.0.1:11211"
}
}
Original file line number Diff line number Diff line change
@@ -1,8 +1,8 @@
{
"ConnectorConfig": {
"Instance": "MongoDb",
"DatabaseName": "test",
"CollectionName": "test",
"ConnectionString": "mongodb_connectionstring_here"
}
{
"ConnectorConfig": {
"Instance": "MongoDb",
"DatabaseName": "test",
"CollectionName": "test",
"ConnectionString": "mongodb_connectionstring_here"
}
}
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
{
"ConnectorConfig": {
"Instance": "RavenDb",
"DatabaseName": "test",
"ConnectionString": "http://live-test.ravendb.net"
}
{
"ConnectorConfig": {
"Instance": "RavenDb",
"DatabaseName": "test",
"ConnectionString": "http://live-test.ravendb.net"
}
}
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
{
"ConnectorConfig": {
"Instance": "Redis",
"DatabaseNumber": 0,
"ConnectionString": "redis_connectionstring_here"
}
{
"ConnectorConfig": {
"Instance": "Redis",
"DatabaseNumber": 0,
"ConnectionString": "redis_connectionstring_here"
}
}
Loading

0 comments on commit 4c58062

Please sign in to comment.