mirror of
https://github.com/excaliburpartners/OmniLinkBridge
synced 2024-12-22 18:52:24 +00:00
31 lines
803 B
C#
31 lines
803 B
C#
using System;
|
|
using System.Text;
|
|
using System.Collections.Generic;
|
|
using Microsoft.VisualStudio.TestTools.UnitTesting;
|
|
using OmniLinkBridge.Notifications;
|
|
using OmniLinkBridge;
|
|
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");
|
|
}
|
|
}
|
|
}
|