Skip to content

Commit ae28522

Browse files
Merge pull request #2 from Task-Manager-Pro/Refactor
Refactor: Ajuste na raiz do projeto e refatoração categoria da tarefa
2 parents 3d8efb7 + f5e5c6e commit ae28522

5 files changed

Lines changed: 26 additions & 10 deletions

File tree

Models/CategorieTaskModel.cs

Lines changed: 0 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -2,10 +2,8 @@ namespace Todo.Models
22
{
33
public class CategorieTaskModel
44
{
5-
65
public int Id { get; set; }
76
public string? Name { get; set; }
87
public string? Description { get; set; }
9-
108
}
119
}

Services/CategorieTaskService.cs

Lines changed: 3 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,6 @@
11
using Microsoft.AspNetCore.Mvc;
22
using Todo.Data;
3+
using Todo.Domain;
34
using Todo.Models;
45

56
namespace Todo.Services
@@ -26,7 +27,7 @@ public IActionResult Get()
2627
}
2728
}
2829

29-
public IActionResult CreateCategorieTask([FromBody] CategorieTaskEntity model)
30+
public IActionResult CreateCategorieTask([FromBody] CategorieTaskModel model)
3031
{
3132
try
3233
{
@@ -46,7 +47,7 @@ public IActionResult CreateCategorieTask([FromBody] CategorieTaskEntity model)
4647
}
4748
}
4849

49-
public IActionResult UpdateCategorieTask([FromBody] CategorieTaskEntity model)
50+
public IActionResult UpdateCategorieTask([FromBody] CategorieTaskModel model)
5051
{
5152
try
5253
{

Todo.csproj

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -17,6 +17,7 @@
1717
<PackageReference Include="Microsoft.SqlServer.Server" Version="1.0.0" />
1818
<PackageReference Include="Swashbuckle.AspNetCore" Version="6.5.0" />
1919
<PackageReference Include="System.Data.SqlClient" Version="4.8.5" />
20+
<PackageReference Include="xunit.extensibility.core" Version="2.9.2" />
2021
</ItemGroup>
2122

2223
</Project>

Todo.sln

Lines changed: 0 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -5,8 +5,6 @@ VisualStudioVersion = 17.7.34018.315
55
MinimumVisualStudioVersion = 10.0.40219.1
66
Project("{9A19103F-16F7-4668-BE54-9A1E7A4F7556}") = "Todo", "Todo.csproj", "{468AD31C-CA0E-4A93-B129-C3F5D5026059}"
77
EndProject
8-
Project("{FAE04EC0-301F-11D3-BF4B-00C04F79EFBC}") = "WebAplicationTestWithXunit", "..\..\..\OneDrive\Documentos\WebAplicationTestWithXunit\WebAplicationTestWithXunit.csproj", "{74F9DC98-7DA1-40D1-9E4D-51105E37C2F8}"
9-
EndProject
108
Global
119
GlobalSection(SolutionConfigurationPlatforms) = preSolution
1210
Debug|Any CPU = Debug|Any CPU
@@ -17,10 +15,6 @@ Global
1715
{468AD31C-CA0E-4A93-B129-C3F5D5026059}.Debug|Any CPU.Build.0 = Debug|Any CPU
1816
{468AD31C-CA0E-4A93-B129-C3F5D5026059}.Release|Any CPU.ActiveCfg = Release|Any CPU
1917
{468AD31C-CA0E-4A93-B129-C3F5D5026059}.Release|Any CPU.Build.0 = Release|Any CPU
20-
{74F9DC98-7DA1-40D1-9E4D-51105E37C2F8}.Debug|Any CPU.ActiveCfg = Debug|Any CPU
21-
{74F9DC98-7DA1-40D1-9E4D-51105E37C2F8}.Debug|Any CPU.Build.0 = Debug|Any CPU
22-
{74F9DC98-7DA1-40D1-9E4D-51105E37C2F8}.Release|Any CPU.ActiveCfg = Release|Any CPU
23-
{74F9DC98-7DA1-40D1-9E4D-51105E37C2F8}.Release|Any CPU.Build.0 = Release|Any CPU
2418
EndGlobalSection
2519
GlobalSection(SolutionProperties) = preSolution
2620
HideSolutionNode = FALSE

TodoTest.sln

Lines changed: 22 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,22 @@
1+
2+
Microsoft Visual Studio Solution File, Format Version 12.00
3+
# Visual Studio Version 17
4+
VisualStudioVersion = 17.0.31903.59
5+
MinimumVisualStudioVersion = 10.0.40219.1
6+
Project("{FAE04EC0-301F-11D3-BF4B-00C04F79EFBC}") = "Todo.Tests", "Todo.Tests\Todo.Tests.csproj", "{3F8149ED-5291-4B02-A8A4-8FDA64E113CF}"
7+
EndProject
8+
Global
9+
GlobalSection(SolutionConfigurationPlatforms) = preSolution
10+
Debug|Any CPU = Debug|Any CPU
11+
Release|Any CPU = Release|Any CPU
12+
EndGlobalSection
13+
GlobalSection(SolutionProperties) = preSolution
14+
HideSolutionNode = FALSE
15+
EndGlobalSection
16+
GlobalSection(ProjectConfigurationPlatforms) = postSolution
17+
{3F8149ED-5291-4B02-A8A4-8FDA64E113CF}.Debug|Any CPU.ActiveCfg = Debug|Any CPU
18+
{3F8149ED-5291-4B02-A8A4-8FDA64E113CF}.Debug|Any CPU.Build.0 = Debug|Any CPU
19+
{3F8149ED-5291-4B02-A8A4-8FDA64E113CF}.Release|Any CPU.ActiveCfg = Release|Any CPU
20+
{3F8149ED-5291-4B02-A8A4-8FDA64E113CF}.Release|Any CPU.Build.0 = Release|Any CPU
21+
EndGlobalSection
22+
EndGlobal

0 commit comments

Comments
 (0)