Skip to content
Projects
Groups
Snippets
Help
Loading...
Help
Contribute to GitLab
Sign in
Toggle navigation
L
Lesson49
Project
Project
Details
Activity
Cycle Analytics
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Charts
Issues
2
Issues
2
List
Board
Labels
Milestones
Merge Requests
0
Merge Requests
0
CI / CD
CI / CD
Pipelines
Jobs
Schedules
Charts
Wiki
Wiki
Snippets
Snippets
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Charts
Create a new issue
Jobs
Commits
Issue Boards
Open sidebar
Пасько Виталий
Lesson49
Commits
26a74e30
Commit
26a74e30
authored
Nov 13, 2022
by
Пасько Виталий
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
- поправил строку подключения.
- .net 6.0 => .net 5.0
parent
2e424701
Show whitespace changes
Inline
Side-by-side
Showing
4 changed files
with
4 additions
and
4 deletions
+4
-4
Utilities.cs
PhoneStore.Tests/Helpers/Utilities.cs
+1
-1
PhoneStore.Tests.csproj
PhoneStore.Tests/PhoneStore.Tests.csproj
+1
-1
PhoneStore.csproj
PhoneStore/PhoneStore.csproj
+1
-1
appsettings.json
PhoneStore/appsettings.json
+1
-1
No files found.
PhoneStore.Tests/Helpers/Utilities.cs
View file @
26a74e30
...
@@ -10,7 +10,7 @@ namespace PhoneStore.Tests.Helpers
...
@@ -10,7 +10,7 @@ namespace PhoneStore.Tests.Helpers
public
static
class
Utilities
public
static
class
Utilities
{
{
private
const
string
ConnectionString
=
private
const
string
ConnectionString
=
"Server=localhost;Port=5432
0
;database=testDb;Username=postgres;Password=postgres;"
;
"Server=localhost;Port=5432;database=testDb;Username=postgres;Password=postgres;"
;
public
static
WebApplicationFactory
<
Startup
>
SubstituteDbOnTestDb
()
public
static
WebApplicationFactory
<
Startup
>
SubstituteDbOnTestDb
()
{
{
return
new
WebApplicationFactory
<
Startup
>().
WithWebHostBuilder
(
builder
=>
return
new
WebApplicationFactory
<
Startup
>().
WithWebHostBuilder
(
builder
=>
...
...
PhoneStore.Tests/PhoneStore.Tests.csproj
View file @
26a74e30
<Project Sdk="Microsoft.NET.Sdk">
<Project Sdk="Microsoft.NET.Sdk">
<PropertyGroup>
<PropertyGroup>
<TargetFramework>net
5
.0</TargetFramework>
<TargetFramework>net
6
.0</TargetFramework>
<IsPackable>false</IsPackable>
<IsPackable>false</IsPackable>
</PropertyGroup>
</PropertyGroup>
...
...
PhoneStore/PhoneStore.csproj
View file @
26a74e30
<Project Sdk="Microsoft.NET.Sdk.Web">
<Project Sdk="Microsoft.NET.Sdk.Web">
<PropertyGroup>
<PropertyGroup>
<TargetFramework>net
5
.0</TargetFramework>
<TargetFramework>net
6
.0</TargetFramework>
</PropertyGroup>
</PropertyGroup>
<ItemGroup>
<ItemGroup>
...
...
PhoneStore/appsettings.json
View file @
26a74e30
{
{
"ConnectionStrings"
:
{
"ConnectionStrings"
:
{
"DefaultConnection"
:
"Server=localhost;Port=5432
0;database=lesson68
;Username=postgres;Password=postgres;"
"DefaultConnection"
:
"Server=localhost;Port=5432
;database=testDb
;Username=postgres;Password=postgres;"
},
},
"Logging"
:
{
"Logging"
:
{
"LogLevel"
:
{
"LogLevel"
:
{
...
...
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment