-
Notifications
You must be signed in to change notification settings - Fork 5
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
ILeaveReportRepository.cs - removed used of access token as parameter
LeaveReportRepository.cs - removed used of access token as parameter IOauthCallHttpContextRespository.cs - separated the method from OAuthCallRepository which use HttpContext OauthCallHttpContextRespository.cs - separated the method from OAuthCallRepository which use HttpContext IOauthCallRespository.cs - separated the method from OAuthCallRepository which use HttpContext OauthCallRespository.cs - separated the method from OAuthCallRepository which use HttpContext IScrumReportRepository.cs - removed used of access token as parameter ScrumReportRepository.cs - removed used of access token as parameter SlackRepository.cs - used GetUserByUserIdAsync instead of GetUserByEmployeeIdAsync ITaskMailReportRepository.cs - separated the method of task mail report from task mail repository TaskMailReportRepository.cs - separated the method of task mail report from task mail repository ITaskMailRepository.cs - separated the method of task mail report from task mail repository TaskMailRepository.cs - separated the method of task mail report from task mail repository AutofacConfig.cs(Test) - Added new services and mocking of HttpContext LeaveReportRepositoryTest.cs - added mocking of HttpContext and updated test cases OauthCallsRepositoryTest.cs - added mocking of HttpContext and updated test cases ScrumReportRepositoryTest.cs - added mocking of HttpContext and updated test cases TaskMailRepositoryTest.cs - added mocking of HttpContext and updated test cases LeaveReportController.cs - removed the use of access token as parameter ScrumReportController.cs - removed the use of access token as parameter TaskReportController.cs - removed the use of access token as parameter AutofacConfig.cs - register services of OauthCallHttpContextRespository, TaskMailReportRepository and AutofacWebTypesModule Fixes - #102
- Loading branch information
1 parent
a53bd33
commit 6ccebd7
Showing
24 changed files
with
885 additions
and
625 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
52 changes: 52 additions & 0 deletions
52
...tomation/Promact.Core.Repository/OauthCallsRepository/IOauthCallHttpContextRespository.cs
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,52 @@ | ||
using Promact.Erp.DomainModel.ApplicationClass; | ||
using System.Collections.Generic; | ||
using System.Threading.Tasks; | ||
|
||
namespace Promact.Core.Repository.OauthCallsRepository | ||
{ | ||
public interface IOauthCallHttpContextRespository | ||
{ | ||
/// <summary> | ||
/// Method to call an api from project oAuth server and get Employee detail by their Id. - GA | ||
/// </summary> | ||
/// <param name="employeeId">id of employee</param> | ||
/// <param name="accessToken">user's access token from Promact OAuth Server</param> | ||
/// <returns>User Details. Object of User</returns> | ||
Task<User> GetUserByEmployeeIdAsync(string employeeId); | ||
|
||
/// <summary> | ||
/// Method to call an api from oauth server and get all the projects under a specific teamleader id along with users in it. - GA | ||
/// </summary> | ||
/// <param name="teamLeaderId">id of the team leader</param> | ||
/// <returns>list of users in a project.List of object of User</returns> | ||
Task<List<User>> GetProjectUsersByTeamLeaderIdAsync(string teamLeaderId); | ||
|
||
/// <summary> | ||
/// Method is used to call an api from oauth server and return list of all the projects. - GA | ||
/// </summary> | ||
/// <param name="accessToken">user's access token from Promact OAuth Server</param> | ||
/// <returns>list of all the projects</returns> | ||
Task<List<ProjectAc>> GetAllProjectsAsync(); | ||
|
||
/// <summary> | ||
/// Method to call an api from oauth server and get the details of a project using projecId. - GA | ||
/// </summary> | ||
/// <param name="projectId">id of project</param> | ||
/// <returns>Details of a project</returns> | ||
Task<ProjectAc> GetProjectDetailsAsync(int projectId); | ||
|
||
/// <summary> | ||
/// Used to get user role. - RS | ||
/// </summary> | ||
/// <param name="userId">id of user</param> | ||
/// <returns>user details. List of object of UserRoleAc</returns> | ||
Task<List<UserRoleAc>> GetUserRoleAsync(string userId); | ||
|
||
/// <summary> | ||
/// List of employee under this employee. - RS | ||
/// </summary> | ||
/// <param name="userId">id of user</param> | ||
/// <returns>List of user. List of object of UserRoleAc</returns> | ||
Task<List<UserRoleAc>> GetListOfEmployeeAsync(string userId); | ||
} | ||
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Oops, something went wrong.