File tree 7 files changed +16
-18
lines changed
BasicClean.Api.Integration.Test
BasicClean.Infrastructure
7 files changed +16
-18
lines changed Original file line number Diff line number Diff line change 1
1
<Project Sdk =" Microsoft.NET.Sdk" >
2
2
3
3
<PropertyGroup >
4
- <TargetFramework >net5 .0</TargetFramework >
4
+ <TargetFramework >net6 .0</TargetFramework >
5
5
6
6
<IsPackable >false</IsPackable >
7
7
</PropertyGroup >
8
8
9
9
<ItemGroup >
10
10
<PackageReference Include =" Microsoft.AspNetCore.Mvc.Testing" Version =" 3.1.10" />
11
- <PackageReference Include =" Microsoft.EntityFrameworkCore.InMemory" Version =" 3.1.9 " />
12
- <PackageReference Include =" Microsoft.Extensions.DependencyInjection" Version =" 5 .0.2 " />
11
+ <PackageReference Include =" Microsoft.EntityFrameworkCore.InMemory" Version =" 6.0.0 " />
12
+ <PackageReference Include =" Microsoft.Extensions.DependencyInjection" Version =" 6 .0.0 " />
13
13
<PackageReference Include =" Microsoft.NET.Test.Sdk" Version =" 16.5.0" />
14
14
<PackageReference Include =" Moq" Version =" 4.15.1" />
15
15
<PackageReference Include =" xunit" Version =" 2.4.0" />
Original file line number Diff line number Diff line change 1
1
using BasicClean . Core . Enitties ;
2
2
using BasicClean . Infrastructure ;
3
+ using System . Linq ;
3
4
4
5
namespace BasicClean . Api . Integration . Test . Setup
5
6
{
@@ -10,8 +11,10 @@ public static void Todos(TodoDbContext todoDbContext)
10
11
var todo = Todo . Create ( "First title" , "first content" ) ;
11
12
//todo.ChangeStatus(Core.ValueObjects.TodoStatus.InProgress);
12
13
todoDbContext . Todos . Add ( todo ) ;
13
- todoDbContext . Todos . Add ( Todo . Create ( "First title" , "first content" ) ) ;
14
+ var todo2 = Todo . Create ( "Second title" , "second content" ) ;
15
+ todoDbContext . Todos . Add ( todo2 ) ;
14
16
todoDbContext . SaveChanges ( ) ;
17
+ var lıst = todoDbContext . Todos . ToList ( ) ;
15
18
}
16
19
17
20
}
Original file line number Diff line number Diff line change 1
- <Project Sdk =" Microsoft.NET.Sdk.Web" >
1
+ <Project Sdk =" Microsoft.NET.Sdk.Web" >
2
2
3
3
<PropertyGroup >
4
- <TargetFramework >net5 .0</TargetFramework >
4
+ <TargetFramework >net6 .0</TargetFramework >
5
5
<UserSecretsId >e8ca6096-a03b-41dd-9109-8344940c76af</UserSecretsId >
6
6
<DockerDefaultTargetOS >Linux</DockerDefaultTargetOS >
7
7
</PropertyGroup >
8
8
9
9
<ItemGroup >
10
- <PackageReference Include =" Microsoft.EntityFrameworkCore.Tools" Version =" 3.1.9 " >
10
+ <PackageReference Include =" Microsoft.EntityFrameworkCore.Tools" Version =" 6.0.0 " >
11
11
<PrivateAssets >all</PrivateAssets >
12
12
<IncludeAssets >runtime; build; native; contentfiles; analyzers; buildtransitive</IncludeAssets >
13
13
</PackageReference >
Original file line number Diff line number Diff line change 1
- using System ;
2
- using System . Collections . Generic ;
3
- using System . Linq ;
4
- using System . Threading . Tasks ;
5
1
using BasicClean . Core . Interfaces . Services ;
6
2
using BasicClean . Core . Services ;
7
3
using BasicClean . Infrastructure ;
8
4
using Microsoft . AspNetCore . Builder ;
9
5
using Microsoft . AspNetCore . Hosting ;
10
- using Microsoft . AspNetCore . Http ;
11
6
using Microsoft . Extensions . Configuration ;
12
7
using Microsoft . Extensions . DependencyInjection ;
13
8
using Microsoft . Extensions . Hosting ;
Original file line number Diff line number Diff line change 1
1
<Project Sdk =" Microsoft.NET.Sdk" >
2
2
3
3
<PropertyGroup >
4
- <TargetFramework >net5 .0</TargetFramework >
4
+ <TargetFramework >net6 .0</TargetFramework >
5
5
6
6
<IsPackable >false</IsPackable >
7
7
</PropertyGroup >
Original file line number Diff line number Diff line change 1
1
<Project Sdk =" Microsoft.NET.Sdk" >
2
2
3
3
<PropertyGroup >
4
- <TargetFramework >net5 .0</TargetFramework >
4
+ <TargetFramework >net6 .0</TargetFramework >
5
5
</PropertyGroup >
6
6
7
7
</Project >
Original file line number Diff line number Diff line change 1
- <Project Sdk =" Microsoft.NET.Sdk" >
1
+ <Project Sdk =" Microsoft.NET.Sdk" >
2
2
3
3
<PropertyGroup >
4
- <TargetFramework >net5 .0</TargetFramework >
4
+ <TargetFramework >net6 .0</TargetFramework >
5
5
</PropertyGroup >
6
6
7
7
<ItemGroup >
8
- <PackageReference Include =" Microsoft.EntityFrameworkCore.SqlServer" Version =" 3.1.9 " />
9
- <PackageReference Include =" Microsoft.Extensions.DependencyInjection.Abstractions" Version =" 3.1.9 " />
8
+ <PackageReference Include =" Microsoft.EntityFrameworkCore.SqlServer" Version =" 6.0 " />
9
+ <PackageReference Include =" Microsoft.Extensions.DependencyInjection.Abstractions" Version =" 6.0 " />
10
10
</ItemGroup >
11
11
12
12
<ItemGroup >
You can’t perform that action at this time.
0 commit comments