public async Task GetBreach() { var httpClient = new HttpClient(); var service = new HibpService(httpClient); var breach = await service.GetBreachAsync("adobe"); Assert.NotNull(breach); }
public async Task GetDataClasses() { var httpClient = new HttpClient(); var service = new HibpService(httpClient); var dataclasses = await service.GetDataClassesAsync(); Assert.NotNull(dataclasses); Assert.True(dataclasses.Count() > 0); }
public async Task TestPasteAccount() { var httpClient = new HttpClient(); var service = new HibpService(httpClient); var pasteAccount = await service.GetPasteAccountAsync("*****@*****.**"); Assert.NotNull(pasteAccount); Assert.True(pasteAccount.Count() > 0); }
public async Task TestBreaches() { var httpClient = new HttpClient(); var service = new HibpService(httpClient); var breaches = await service.GetBreachesAsync(); Assert.NotNull(breaches); Assert.True(breaches.Count() > 0); }
public async Task TestBreachedAccount() { var httpClient = new HttpClient(); var service = new HibpService(httpClient); var breachedAccounts = await service.GetBreachedAccountAsync("*****@*****.**"); Assert.NotNull(breachedAccounts); Assert.True(breachedAccounts.Count() > 0); }