Skip to content

Commit a3e421e

Browse files
users refactoring (#30)
1 parent 356f44b commit a3e421e

Some content is hidden

Large Commits have some content hidden by default. Use the searchbox below for content that may be hidden.

48 files changed

+670
-419
lines changed

backend/Authentication/Authentication.csproj

Lines changed: 0 additions & 16 deletions
This file was deleted.

backend/Authentication/UserAuthHandler.cs

Lines changed: 0 additions & 46 deletions
This file was deleted.

backend/Bugget.BO/Bugget.BO.csproj

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -10,7 +10,6 @@
1010
<ProjectReference Include="..\Bugget.ExternalClients\Bugget.ExternalClients.csproj" />
1111
<ProjectReference Include="..\Monade\Monade.csproj" />
1212
<ProjectReference Include="..\TaskQueue\TaskQueue.csproj" />
13-
<ProjectReference Include="..\Authentication\Authentication.csproj" />
1413
</ItemGroup>
1514

1615
</Project>

backend/Bugget.BO/Mappers/BugMapper.cs

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -48,7 +48,7 @@ public static BugUpdateDbModel ToBugUpdateDbModel(this BugUpdate bug)
4848
};
4949
}
5050

51-
public static BugView ToView(this BugDbModel bug, IReadOnlyDictionary<string, EmployeeObsolete> employeesDict)
51+
public static BugView ToView(this BugDbModel bug, IReadOnlyDictionary<string, Employee> employeesDict)
5252
{
5353
return new BugView
5454
{

backend/Bugget.BO/Mappers/CommentMapper.cs

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -31,7 +31,7 @@ public static Comment ToComment(this CommentDto comment, int bugId, int reportId
3131
};
3232
}
3333

34-
public static CommentView ToCommentView(this CommentDbModel comment, IReadOnlyDictionary<string, EmployeeObsolete> employeesDict)
34+
public static CommentView ToCommentView(this CommentDbModel comment, IReadOnlyDictionary<string, Employee> employeesDict)
3535
{
3636
return new CommentView
3737
{

backend/Bugget.BO/Mappers/ReportMapper.cs

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -13,7 +13,7 @@ namespace Bugget.BO.Mappers;
1313

1414
public static class ReportMapper
1515
{
16-
public static ReportView ToView(this ReportObsoleteDbModel report, IReadOnlyDictionary<string, EmployeeObsolete> employeesDict)
16+
public static ReportView ToView(this ReportObsoleteDbModel report, IReadOnlyDictionary<string, Employee> employeesDict)
1717
{
1818
return new ReportView
1919
{
@@ -36,7 +36,7 @@ public static ReportView ToView(this ReportObsoleteDbModel report, IReadOnlyDict
3636
};
3737
}
3838

39-
public static SearchReportsView ToView(this SearchReportsDbModel search, IReadOnlyDictionary<string, EmployeeObsolete> employeesDict)
39+
public static SearchReportsView ToView(this SearchReportsDbModel search, IReadOnlyDictionary<string, Employee> employeesDict)
4040
{
4141
return new SearchReportsView
4242
{
@@ -114,7 +114,7 @@ public static SearchReports ToSearchReports(
114114
string? sort,
115115
uint skip,
116116
uint take,
117-
IReadOnlyDictionary<string, IReadOnlyCollection<EmployeeObsolete>> employeesByTeam)
117+
IReadOnlyDictionary<string, IReadOnlyCollection<Employee>> employeesByTeam)
118118
{
119119
List<string> resultUserIds = [];
120120
if (!string.IsNullOrEmpty(teamId))

backend/Bugget.BO/Services/BugsEventsService.cs

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,4 @@
1-
using Authentication;
1+
using Bugget.Entities.Authentication;
22
using Bugget.DA.WebSockets;
33
using Bugget.Entities.DbModels.Bug;
44
using Bugget.Entities.DTO.Bug;

backend/Bugget.BO/Services/BugsService.cs

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,3 @@
1-
using Authentication;
21
using AutoMapper;
32
using Bugget.BO.Errors;
43
using Bugget.BO.Mappers;
@@ -7,6 +6,7 @@
76
using Bugget.Entities.BO.BugBo;
87
using Bugget.Entities.DbModels.Bug;
98
using Bugget.Entities.DTO.Bug;
9+
using Bugget.Entities.Authentication;
1010
using Monade;
1111
using TaskQueue;
1212
namespace Bugget.BO.Services;

backend/Bugget.BO/Services/EmployeesService.cs

Lines changed: 0 additions & 68 deletions
This file was deleted.

backend/Bugget.BO/Services/ReportEventsService.cs

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,4 @@
1-
using Authentication;
1+
using Bugget.Entities.Authentication;
22
using Bugget.BO.Mappers;
33
using Bugget.DA.WebSockets;
44
using Bugget.Entities.DbModels.Report;

0 commit comments

Comments
 (0)