From 8d1598ca313a31b5ae91095fd934a6f729fe07a8 Mon Sep 17 00:00:00 2001 From: Robert Marshall Date: Sat, 8 May 2021 09:28:52 +0100 Subject: [PATCH] Use proper await instead of result --- src/Robware.Api.Auth.Tests/Controllers/ApiControllerTests.cs | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/Robware.Api.Auth.Tests/Controllers/ApiControllerTests.cs b/src/Robware.Api.Auth.Tests/Controllers/ApiControllerTests.cs index 390f745..e990c03 100644 --- a/src/Robware.Api.Auth.Tests/Controllers/ApiControllerTests.cs +++ b/src/Robware.Api.Auth.Tests/Controllers/ApiControllerTests.cs @@ -46,7 +46,7 @@ namespace Robware.Api.Auth.Tests.Controllers { apiKeyRepository.Create("test").Returns(expectedKey); var controller = new ApiController(logger, apiKeyValidator, apiKeyRepository); - controller.Create("test").Result.Value.Should().BeEquivalentTo(expectedKey); + (await controller.Create("test")).Value.Should().BeEquivalentTo(expectedKey); } } } \ No newline at end of file