mirror of
https://github.com/excaliburpartners/OmniLinkBridge
synced 2024-12-23 03:02:24 +00:00
28 lines
736 B
C#
28 lines
736 B
C#
using Microsoft.VisualStudio.TestTools.UnitTesting;
|
|
using OmniLinkBridge;
|
|
using OmniLinkBridge.Notifications;
|
|
using System.Net.Mail;
|
|
|
|
namespace OmniLinkBridgeTest
|
|
{
|
|
[TestClass]
|
|
public class NotificationTest
|
|
{
|
|
[TestMethod]
|
|
public void SendNotification()
|
|
{
|
|
// This is an integration test
|
|
Global.mail_server = "localhost";
|
|
Global.mail_tls = false;
|
|
Global.mail_port = 25;
|
|
Global.mail_from = new MailAddress("OmniLinkBridge@localhost");
|
|
Global.mail_to = new MailAddress[]
|
|
{
|
|
new MailAddress("mailbox@localhost")
|
|
};
|
|
|
|
Notification.Notify("Title", "Description");
|
|
}
|
|
}
|
|
}
|