public void Handle_NullEventPassed_Throws()
        {
            var stubDialogService = Substitute.For <IMessageBoxDialogService>();
            var notifier          = new ArticlePictureUpdatedUserNotifier(
                stubDialogService);
            ArticlePictureUpdated nullEvent = null;

            Assert.Catch <ArgumentNullException>(() =>
                                                 notifier.Handle(nullEvent));
        }
        public void Handle_Always_NotifiesUser()
        {
            var stubDialogService = Substitute.For <IMessageBoxDialogService>();
            var notifier          = new ArticlePictureUpdatedUserNotifier(
                stubDialogService);

            notifier.Handle(new ArticlePictureUpdated(CreateStubArticle()));

            stubDialogService.Received().Show(
                Arg.Any <string>(),
                Arg.Any <string>(),
                Arg.Any <DialogButton>());
        }