public async Task NumberOfPlayersInLobby_WeGetDataFromServer_ReturnsNumberOfPlayersInLobby() { int result = await _serverStatus .NumberOfPlayersInLobby("http://ServerIsOnline.com"); Assert.AreEqual(3, result); }
public async Task <IActionResult> YgoProActivityNow() { return(new JsonResult(new YgoProActivityNowDTO() { NumberOfClosedRooms = await _serverStatusService .NumberOfClosedRooms(_ygoProListOfRoomsURL), NumberOfOpenRooms = await _serverStatusService .NumberOfOpenRooms(_ygoProListOfRoomsURL), NumberOfPlayersInLobby = await _serverStatusService .NumberOfPlayersInLobby(_ygoProListOfRoomsURL), NumberOfPlayersWhichPlayNow = await _serverStatusService .NumberOfPlayersWhichPlayNow(_ygoProListOfRoomsURL) })); }