Enable port release
SuccessfulCode/SuccessfulCodeTools/master This commit looks good

This commit is contained in:
2020-02-25 00:58:55 +00:00
parent 5274607ddd
commit 6f83e96055
2 changed files with 31 additions and 1 deletions
@@ -0,0 +1,27 @@
using SuccessfulCodeTools.LowLevelHttpClient;
using System;
using System.Collections.Generic;
using System.Linq;
using System.Net.Http;
using System.Text;
using System.Threading.Tasks;
using Xunit;
namespace SuccessfulCodeTools.Tests
{
public class LowLevelHttpClientTests
{
[Fact]
public void CheckLowLevelHttpClientConcurrency()
{
//Arrange
Parallel.ForEach(Enumerable.Range(1, 20), (e) =>
{
var client = new CustomHttpClient(32455);
client.SendAsync(new CustomHttpRequestMessage(HttpMethod.Get, "http://www.mocky.io/v2/5e546e473100004900eb31a5")).GetAwaiter().GetResult();
});
//Act
//Assert
}
}
}