diff options
author | crupest <crupest@outlook.com> | 2020-01-29 18:38:41 +0800 |
---|---|---|
committer | crupest <crupest@outlook.com> | 2020-01-29 18:38:41 +0800 |
commit | 401a0c86054711bf5ebdce7d7717c9b59bffc2fa (patch) | |
tree | dd1cd091ecc2c80943735af4b71b53ef26fc7eee /Timeline.Tests | |
parent | b6043126fae039c58512f60a576b10925b06df4c (diff) | |
download | timeline-401a0c86054711bf5ebdce7d7717c9b59bffc2fa.tar.gz timeline-401a0c86054711bf5ebdce7d7717c9b59bffc2fa.tar.bz2 timeline-401a0c86054711bf5ebdce7d7717c9b59bffc2fa.zip |
...
Diffstat (limited to 'Timeline.Tests')
-rw-r--r-- | Timeline.Tests/Controllers/UserControllerTest.cs | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/Timeline.Tests/Controllers/UserControllerTest.cs b/Timeline.Tests/Controllers/UserControllerTest.cs index 192d53dd..3890712a 100644 --- a/Timeline.Tests/Controllers/UserControllerTest.cs +++ b/Timeline.Tests/Controllers/UserControllerTest.cs @@ -40,7 +40,7 @@ namespace Timeline.Tests.Controllers new Models.User { Id = 1, Username = "aaa", Administrator = true, Version = 1 },
new Models.User { Id = 2, Username = "bbb", Administrator = false, Version = 1 }
};
- _mockUserService.Setup(s => s.ListUsers()).ReturnsAsync(mockUserList);
+ _mockUserService.Setup(s => s.GetUsers()).ReturnsAsync(mockUserList);
var action = await _controller.List();
action.Result.Should().BeAssignableTo<OkObjectResult>()
.Which.Value.Should().BeEquivalentTo(
@@ -165,7 +165,7 @@ namespace Timeline.Tests.Controllers [Theory]
[InlineData(typeof(UserNotExistException), ErrorCodes.UserCommon.NotExist)]
- [InlineData(typeof(UsernameConfictException), ErrorCodes.UserController.ChangeUsername_Conflict)]
+ [InlineData(typeof(ConfictException), ErrorCodes.UserController.ChangeUsername_Conflict)]
public async Task Op_ChangeUsername_Failure(Type exceptionType, int code)
{
const string oldUsername = "aaa";
|