public void Notification()
{
using (var conn = OpenConnection())
{
var receivedNotification = false;
conn.ExecuteNonQuery("LISTEN notifytest");
conn.Notification += (o, e) => receivedNotification = true;
conn.ExecuteNonQuery("NOTIFY notifytest");
Assert.IsTrue(receivedNotification);
}
}