private static async Task PrintCurrentConditionsAsync(IRace race) { var currentConditions = await race.GetCurrentConditionsAsync().ConfigureAwait(false); var sb = new StringBuilder(); sb.AppendLine($"Current conditions in {currentConditions.City}"); sb.Append(currentConditions.Description); sb.Append($", {currentConditions.Temperature}C"); if (currentConditions.Raining) { sb.Append(", raining."); } else { sb.Append(", dry."); } await Console.Out.WriteLineAsync(sb.ToString()).ConfigureAwait(false); }