1
0
mirror of https://github.com/bitwarden/server.git synced 2025-06-20 02:48:03 -05:00
This commit is contained in:
Bernd Schoolmann 2025-06-05 15:14:44 +02:00
parent 01e18ded94
commit bfcb034442
No known key found for this signature in database

View File

@ -25,7 +25,7 @@ public class UsersControllerTests
SutProvider<UsersController> sutProvider) SutProvider<UsersController> sutProvider)
{ {
sutProvider.GetDependency<IUserRepository>().GetPublicKeyAsync(Arg.Any<Guid>()).ReturnsNull(); sutProvider.GetDependency<IUserRepository>().GetPublicKeyAsync(Arg.Any<Guid>()).ReturnsNull();
await Assert.ThrowsAsync<NotFoundException>(() => sutProvider.Sut.GetPublicKey("invalid-id")); await Assert.ThrowsAsync<NotFoundException>(() => sutProvider.Sut.GetPublicKey(new Guid().ToString()));
} }
[Theory] [Theory]