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:
@@ -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();
|
||||
}
|
||||
|
||||
|
||||
Reference in New Issue
Block a user