diff --git a/src/clients/common/Codebreaker.GameAPIs.Client.Tests/Codebreaker.GameAPIs.Client.Tests.csproj b/src/clients/common/Codebreaker.GameAPIs.Client.Tests/Codebreaker.GameAPIs.Client.Tests.csproj
index 70d7efd3..0040be57 100644
--- a/src/clients/common/Codebreaker.GameAPIs.Client.Tests/Codebreaker.GameAPIs.Client.Tests.csproj
+++ b/src/clients/common/Codebreaker.GameAPIs.Client.Tests/Codebreaker.GameAPIs.Client.Tests.csproj
@@ -10,11 +10,11 @@
-
-
+
+
-
-
+
+
runtime; build; native; contentfiles; analyzers; buildtransitive
all
diff --git a/src/clients/common/Codebreaker.GameAPIs.Client.Tests/TestGamesClient.cs b/src/clients/common/Codebreaker.GameAPIs.Client.Tests/TestGamesClient.cs
index 84ad0fe8..f1c50005 100644
--- a/src/clients/common/Codebreaker.GameAPIs.Client.Tests/TestGamesClient.cs
+++ b/src/clients/common/Codebreaker.GameAPIs.Client.Tests/TestGamesClient.cs
@@ -2,10 +2,8 @@
namespace Codebreaker.GameAPIs.Client.Tests;
-public class TestGamesClient(ITestOutputHelper outputHelper)
+public class TestGamesClient
{
- private readonly ITestOutputHelper _outputHelper = outputHelper;
-
[Fact]
public async Task TestStartGame6x4Async()
{
@@ -46,20 +44,20 @@ public async Task TestStartGame6x4Async()
HttpClient httpClient = new(handlerMock.Object)
{
- BaseAddress = new System.Uri(configMock.Object["GameAPIs"] ?? throw new InvalidOperationException())
+ BaseAddress = new Uri(configMock.Object["GameAPIs"] ?? throw new InvalidOperationException())
};
var gamesClient = new GamesClient(httpClient, NullLogger.Instance);
// Act
- var response = await gamesClient.StartGameAsync(Models.GameType.Game6x4, "test");
+ var (GameId, NumberCodes, MaxMoves, FieldValues) = await gamesClient.StartGameAsync(Models.GameType.Game6x4, "test");
// Assert
- Assert.Equal(4, response.NumberCodes);
- Assert.Equal(12, response.MaxMoves);
- Assert.Single(response.FieldValues.Keys);
- Assert.Equal("colors", response.FieldValues.Keys.First());
- Assert.Equal(6, response.FieldValues["colors"].Length);
+ Assert.Equal(4, NumberCodes);
+ Assert.Equal(12, MaxMoves);
+ Assert.Single(FieldValues.Keys);
+ Assert.Equal("colors", FieldValues.Keys.First());
+ Assert.Equal(6, FieldValues["colors"].Length);
handlerMock.Protected().Verify(
"SendAsync",
diff --git a/src/clients/common/Codebreaker.GameAPIs.Client/Codebreaker.GameAPIs.Client.csproj b/src/clients/common/Codebreaker.GameAPIs.Client/Codebreaker.GameAPIs.Client.csproj
index a4d6e2f2..27e9a4a9 100644
--- a/src/clients/common/Codebreaker.GameAPIs.Client/Codebreaker.GameAPIs.Client.csproj
+++ b/src/clients/common/Codebreaker.GameAPIs.Client/Codebreaker.GameAPIs.Client.csproj
@@ -27,7 +27,7 @@
-
+