Fixing sonarcloud issues
This commit is contained in:
@@ -66,7 +66,7 @@ public class AuthController_Tests
|
||||
var result = (BaseResponse<object>)response.Value;
|
||||
if (result != null)
|
||||
{
|
||||
Assert.IsTrue(result.Status == StatusCodes.Status200OK);
|
||||
Assert.AreEqual(StatusCodes.Status200OK, result.Status);
|
||||
Assert.IsInstanceOfType(result.Data, typeof(AuthenticatedUser));
|
||||
}
|
||||
else
|
||||
@@ -103,7 +103,7 @@ public class AuthController_Tests
|
||||
// var result = (BaseResponse<object>)response.Value;
|
||||
// if (result != null)
|
||||
// {
|
||||
// Assert.IsTrue(result.Status == StatusCodes.Status400BadRequest);
|
||||
// Assert.AreEqual(StatusCodes.Status400BadRequest, result.Status);
|
||||
// Assert.IsTrue(result.Message == "Request is not well formed");
|
||||
// }
|
||||
// else
|
||||
@@ -173,7 +173,7 @@ public class AuthController_Tests
|
||||
// var result = (BaseResponse<object>)response.Value;
|
||||
// if (result != null)
|
||||
// {
|
||||
// Assert.IsTrue(result.Status == StatusCodes.Status400BadRequest);
|
||||
// Assert.AreEqual(StatusCodes.Status400BadRequest, result.Status);
|
||||
// Assert.IsTrue(result.Message == "Request is not well formed");
|
||||
// }
|
||||
// else
|
||||
@@ -212,8 +212,8 @@ public class AuthController_Tests
|
||||
var result = (BaseResponse<object>)response.Value;
|
||||
if (result != null)
|
||||
{
|
||||
Assert.IsTrue(result.Status == StatusCodes.Status500InternalServerError);
|
||||
Assert.AreEqual("Something went wrong. Unexpected error", result.Message );
|
||||
Assert.AreEqual(StatusCodes.Status500InternalServerError, result.Status);
|
||||
Assert.AreEqual("Something went wrong. Unexpected error", result.Message);
|
||||
}
|
||||
else
|
||||
{
|
||||
|
||||
Reference in New Issue
Block a user