Use proper await instead of result
This commit is contained in:
parent
f6962fac3a
commit
8d1598ca31
1 changed files with 1 additions and 1 deletions
|
@ -46,7 +46,7 @@ namespace Robware.Api.Auth.Tests.Controllers {
|
||||||
apiKeyRepository.Create("test").Returns(expectedKey);
|
apiKeyRepository.Create("test").Returns(expectedKey);
|
||||||
|
|
||||||
var controller = new ApiController(logger, apiKeyValidator, apiKeyRepository);
|
var controller = new ApiController(logger, apiKeyValidator, apiKeyRepository);
|
||||||
controller.Create("test").Result.Value.Should().BeEquivalentTo(expectedKey);
|
(await controller.Create("test")).Value.Should().BeEquivalentTo(expectedKey);
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
}
|
}
|
Loading…
Add table
Add a link
Reference in a new issue