- поправил строку подключения.

- .net 6.0 => .net 5.0
parent 2e424701
......@@ -10,7 +10,7 @@ namespace PhoneStore.Tests.Helpers
public static class Utilities
{
private const string ConnectionString =
"Server=localhost;Port=54320;database=testDb;Username=postgres;Password=postgres;";
"Server=localhost;Port=5432;database=testDb;Username=postgres;Password=postgres;";
public static WebApplicationFactory<Startup> SubstituteDbOnTestDb()
{
return new WebApplicationFactory<Startup>().WithWebHostBuilder(builder =>
......
<Project Sdk="Microsoft.NET.Sdk">
<PropertyGroup>
<TargetFramework>net5.0</TargetFramework>
<TargetFramework>net6.0</TargetFramework>
<IsPackable>false</IsPackable>
</PropertyGroup>
......
<Project Sdk="Microsoft.NET.Sdk.Web">
<PropertyGroup>
<TargetFramework>net5.0</TargetFramework>
<TargetFramework>net6.0</TargetFramework>
</PropertyGroup>
<ItemGroup>
......
{
"ConnectionStrings": {
"DefaultConnection": "Server=localhost;Port=54320;database=lesson68;Username=postgres;Password=postgres;"
"DefaultConnection": "Server=localhost;Port=5432;database=testDb;Username=postgres;Password=postgres;"
},
"Logging": {
"LogLevel": {
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment