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

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

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