コード例 #1
0
ファイル: SkypeNotifier.cs プロジェクト: quangnle/Antelope
        public static SkypeNotifier CreateNotifier()
        {
            var notifier = new SkypeNotifier();

            if (!notifier.AttachToSkype())
                throw new AntelopeSkypeNotifierException(SkypeNotifierErrorCode.AttachError);

            return notifier;
        }
コード例 #2
0
ファイル: NotifierTests.cs プロジェクト: quangnle/Antelope
 public void Notifier_Skype_NotifierUnknownTarget()
 {
     var notifier = new SkypeNotifier();
     notifier.AttachToSkype();
     notifier.Notify(
         new SkypeSubcriber() { Handle = "anonymous" },
         new SkypeNotifierData() { Message = "send me" });
 }
コード例 #3
0
ファイル: NotifierTests.cs プロジェクト: quangnle/Antelope
 public void Notifier_Skype_NotifierSuccessful()
 {
     var notifier = new SkypeNotifier();
     notifier.AttachToSkype();
     notifier.Notify(
         new SkypeSubcriber() { Handle = "legoslight" },
         new SkypeNotifierData() { Message = "antelope - message" });
 }