File tree Expand file tree Collapse file tree 7 files changed +16
-18
lines changed
BasicClean.Api.Integration.Test
BasicClean.Infrastructure Expand file tree Collapse file tree 7 files changed +16
-18
lines changed Original file line number Diff line number Diff line change 11<Project Sdk =" Microsoft.NET.Sdk" >
22
33 <PropertyGroup >
4- <TargetFramework >net5 .0</TargetFramework >
4+ <TargetFramework >net6 .0</TargetFramework >
55
66 <IsPackable >false</IsPackable >
77 </PropertyGroup >
88
99 <ItemGroup >
1010 <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 " />
1313 <PackageReference Include =" Microsoft.NET.Test.Sdk" Version =" 16.5.0" />
1414 <PackageReference Include =" Moq" Version =" 4.15.1" />
1515 <PackageReference Include =" xunit" Version =" 2.4.0" />
Original file line number Diff line number Diff line change 11using BasicClean . Core . Enitties ;
22using BasicClean . Infrastructure ;
3+ using System . Linq ;
34
45namespace BasicClean . Api . Integration . Test . Setup
56{
@@ -10,8 +11,10 @@ public static void Todos(TodoDbContext todoDbContext)
1011 var todo = Todo . Create ( "First title" , "first content" ) ;
1112 //todo.ChangeStatus(Core.ValueObjects.TodoStatus.InProgress);
1213 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 ) ;
1416 todoDbContext . SaveChanges ( ) ;
17+ var lıst = todoDbContext . Todos . ToList ( ) ;
1518 }
1619
1720 }
Original file line number Diff line number Diff line change 1- <Project Sdk =" Microsoft.NET.Sdk.Web" >
1+ <Project Sdk =" Microsoft.NET.Sdk.Web" >
22
33 <PropertyGroup >
4- <TargetFramework >net5 .0</TargetFramework >
4+ <TargetFramework >net6 .0</TargetFramework >
55 <UserSecretsId >e8ca6096-a03b-41dd-9109-8344940c76af</UserSecretsId >
66 <DockerDefaultTargetOS >Linux</DockerDefaultTargetOS >
77 </PropertyGroup >
88
99 <ItemGroup >
10- <PackageReference Include =" Microsoft.EntityFrameworkCore.Tools" Version =" 3.1.9 " >
10+ <PackageReference Include =" Microsoft.EntityFrameworkCore.Tools" Version =" 6.0.0 " >
1111 <PrivateAssets >all</PrivateAssets >
1212 <IncludeAssets >runtime; build; native; contentfiles; analyzers; buildtransitive</IncludeAssets >
1313 </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 ;
51using BasicClean . Core . Interfaces . Services ;
62using BasicClean . Core . Services ;
73using BasicClean . Infrastructure ;
84using Microsoft . AspNetCore . Builder ;
95using Microsoft . AspNetCore . Hosting ;
10- using Microsoft . AspNetCore . Http ;
116using Microsoft . Extensions . Configuration ;
127using Microsoft . Extensions . DependencyInjection ;
138using Microsoft . Extensions . Hosting ;
Original file line number Diff line number Diff line change 11<Project Sdk =" Microsoft.NET.Sdk" >
22
33 <PropertyGroup >
4- <TargetFramework >net5 .0</TargetFramework >
4+ <TargetFramework >net6 .0</TargetFramework >
55
66 <IsPackable >false</IsPackable >
77 </PropertyGroup >
Original file line number Diff line number Diff line change 11<Project Sdk =" Microsoft.NET.Sdk" >
22
33 <PropertyGroup >
4- <TargetFramework >net5 .0</TargetFramework >
4+ <TargetFramework >net6 .0</TargetFramework >
55 </PropertyGroup >
66
77</Project >
Original file line number Diff line number Diff line change 1- <Project Sdk =" Microsoft.NET.Sdk" >
1+ <Project Sdk =" Microsoft.NET.Sdk" >
22
33 <PropertyGroup >
4- <TargetFramework >net5 .0</TargetFramework >
4+ <TargetFramework >net6 .0</TargetFramework >
55 </PropertyGroup >
66
77 <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 " />
1010 </ItemGroup >
1111
1212 <ItemGroup >
You can’t perform that action at this time.
0 commit comments