public void HasErrorAlertEmpty() { var payload = new NotificationPayload(); payload.Alert = new Dictionary <string, object>(); Assert.False(payload.HasError()); }
public void HasErrorAlertNoneError() { var payload = new NotificationPayload(); payload.Alert = new Dictionary <string, object> { { "title", "title" } }; Assert.False(payload.HasError()); }
public void HasErrorAlertErrorKey() { var payload = new NotificationPayload(); payload.Alert = new Dictionary <string, object> { { "error", "error" } }; Assert.True(payload.HasError()); }
public void HasErrorAlertNull() { var payload = new NotificationPayload(); Assert.False(payload.HasError()); }