public async Task NumberOfOpenRooms_WeGetDataFromServer_ReturnsNumberOfRooms() { int result = await _serverStatus .NumberOfOpenRooms("http://ServerIsOnline.com"); Assert.AreEqual(2, 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) })); }