Beispiel #1
0
        public static SkypeNotifier CreateNotifier()
        {
            var notifier = new SkypeNotifier();

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

            return notifier;
        }
Beispiel #2
0
 public void Notifier_Skype_NotifierUnknownTarget()
 {
     var notifier = new SkypeNotifier();
     notifier.AttachToSkype();
     notifier.Notify(
         new SkypeSubcriber() { Handle = "anonymous" },
         new SkypeNotifierData() { Message = "send me" });
 }
Beispiel #3
0
 public void Notifier_Skype_NotifierInvalidData()
 {
     var notifier = new SkypeNotifier();
     notifier.Notify(new EmailSubcriber(), new EmailNotifierData());
 }
Beispiel #4
0
 public void Notifier_Skype_NotifierSuccessful()
 {
     var notifier = new SkypeNotifier();
     notifier.AttachToSkype();
     notifier.Notify(
         new SkypeSubcriber() { Handle = "legoslight" },
         new SkypeNotifierData() { Message = "antelope - message" });
 }