public async void GetAllEmployee() { UserLoginInfo info = new UserLoginInfo(_stringConstant.PromactStringName, _stringConstant.AccessTokenForTest); await _userManager.CreateAsync(user); await _userManager.AddLoginAsync(user.Id, info); var response = Task.FromResult(_stringConstant.TaskMailReport); var requestUrl = string.Format("{0}{1}", user.Id, _stringConstant.UserRoleUrl); _mockHttpClient.Setup(x => x.GetAsync(_stringConstant.UserUrl, requestUrl, _stringConstant.AccessTokenForTest)).Returns(response); var role = _stringConstant.RoleAdmin; var result = await _taskMailRepository.GetAllEmployee(user.Id); Assert.Equal(0, result.Count); }
public async Task <List <TaskMailUserAc> > getAllEmployee() { string UserId = User.Identity.GetUserId(); return(await _taskMailReport.GetAllEmployee(UserId)); }