Files
Shodan.Net/src/Shodan.Net.UnitTests/Intergration/TestSuite.cs
2016-06-01 19:15:11 -04:00

25 lines
614 B
C#

using System;
using System.Collections.Generic;
using System.Linq;
using System.Threading.Tasks;
using Xunit;
namespace Shodan.Net.UnitTests.Intergration
{
public class TestSuite
{
private readonly ShodanClient shodanClient = new ShodanClient("9F0mxmNSaHbe0mYmefwoCZrChT2h0KzC");
[Fact]
public async Task GetHost()
{
var result = await shodanClient.GetHostAsync("41.21.249.170");
}
[Fact]
public async Task PerformSearch()
{
var result = await shodanClient.SearchHosts(a => a.With_state("NY"));
}
}
}