Ejemplo n.º 1
0
 public async Task GetLiveStreamsAsync_Not_Throw_InvalidXtreamUrlFormatException(string url)
 {
     var xtreamClient = new XtreamClient(DefaultHttpClientFactory.Default);
     await Should.ThrowAsync <HttpRequestException>(xtreamClient.GetLiveStreamsAsync(new XtUrlConnectionFactory(url).Create(), CancellationToken.None));
 }
Ejemplo n.º 2
0
 public async Task GetLiveStreamsAsync_BasicAuth_Not_Throw_InvalidXtreamUrlFormatException(string server, string username, string password)
 {
     var xtreamClient = new XtreamClient(DefaultHttpClientFactory.Default);
     await Should.ThrowAsync <HttpRequestException>(xtreamClient.GetLiveStreamsAsync(new XtBasicConnectionFactory(server, username, password).Create(), CancellationToken.None));
 }