return alert after adding contact

This commit is contained in:
2014-02-02 11:27:44 +01:00
parent 29ffceb920
commit 42e5a9ef39
2 changed files with 18 additions and 8 deletions
+3 -3
View File
@@ -35,7 +35,7 @@ namespace UptimeSharp.Tests
{
string email = "example@ceecore.com";
Assert.True(await client.AddAlert(AlertType.Email, email));
Assert.NotNull(await client.AddAlert(AlertType.Email, email));
Alert origin = await GetOriginAlert(email);
@@ -53,8 +53,8 @@ namespace UptimeSharp.Tests
[Fact]
public async Task AddAndRetrieveSpecificAlerts()
{
Assert.True(await client.AddAlert(AlertType.Email, "example1@ceecore.com"));
Assert.True(await client.AddAlert(AlertType.Boxcar, "example2@ceecore.com"));
Assert.NotNull(await client.AddAlert(AlertType.Email, "example1@ceecore.com"));
Assert.NotNull(await client.AddAlert(AlertType.Boxcar, "example2@ceecore.com"));
List<Alert> alerts = await client.GetAlerts();