Refactor test initialization and redirect actions

The test initialization method within BasicTests.cs has been simplified for improved code readability. Additionally, redundant playerId argument has been removed from RedirectToAction calls within HomeController.cs, streamlining redirection methods.
This commit is contained in:
Anduin
2024-06-18 05:55:17 +00:00
parent 11d64db4ed
commit 47b6fbee57
2 changed files with 3 additions and 3 deletions
@@ -27,7 +27,7 @@ public class BasicTests
[TestInitialize]
public async Task CreateServer()
{
_server = await AppAsync<Startup>(Array.Empty<string>(), port: _port);
_server = await AppAsync<Startup>([], port: _port);
await _server.StartAsync();
}