Fixing issues
This commit is contained in:
@@ -210,7 +210,6 @@ public class UserControllerTests
|
|||||||
var controller = new UserController(configuration, userServiceMock.Object);
|
var controller = new UserController(configuration, userServiceMock.Object);
|
||||||
|
|
||||||
var guid = Guid.NewGuid().ToString();
|
var guid = Guid.NewGuid().ToString();
|
||||||
DatabaseSqlServer.User? user = null;
|
|
||||||
userServiceMock.Setup(s => s.GetUserByGuidAsync(It.IsAny<string>())).ThrowsAsync(new Exception("Unexpected error"));
|
userServiceMock.Setup(s => s.GetUserByGuidAsync(It.IsAny<string>())).ThrowsAsync(new Exception("Unexpected error"));
|
||||||
ObjectResult response = (ObjectResult)(await controller.GetUserByGuidAsync(guid));
|
ObjectResult response = (ObjectResult)(await controller.GetUserByGuidAsync(guid));
|
||||||
|
|
||||||
|
|||||||
@@ -19,7 +19,6 @@ public interface IJwtService
|
|||||||
public class JwtService : BaseService, IJwtService
|
public class JwtService : BaseService, IJwtService
|
||||||
{
|
{
|
||||||
private readonly JwtTokenUtils _jwtTokenUtils;
|
private readonly JwtTokenUtils _jwtTokenUtils;
|
||||||
private readonly IUserService _userService;
|
|
||||||
|
|
||||||
public JwtService(
|
public JwtService(
|
||||||
IConfiguration configuration,
|
IConfiguration configuration,
|
||||||
@@ -28,7 +27,6 @@ public class JwtService : BaseService, IJwtService
|
|||||||
) : base(configuration, sqlServerContext)
|
) : base(configuration, sqlServerContext)
|
||||||
{
|
{
|
||||||
_jwtTokenUtils = new JwtTokenUtils(_appSettings);
|
_jwtTokenUtils = new JwtTokenUtils(_appSettings);
|
||||||
_userService = userService;
|
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
||||||
|
|||||||
Reference in New Issue
Block a user