Exemplo n.º 1
0
 private async Task DelayIfNeeded()
 {
     if (_delayInSeconds > 0)
     {
         await _userLoadTestHttpClient.LogUserDelay(async() => await Task.Delay(_delayInSeconds * 1000));
     }
 }
Exemplo n.º 2
0
 public static Task DelayUserClick(this IUserLoadTestHttpClient client, int min = 500, int max = 1000)
 {
     return(client.LogUserDelay(() => Task.Delay(Rand.Random(min, max))));
 }