Beispiel #1
0
        public void DoesNot_Notify_Subscriber_If_Message_Type_Is_Not_Matching()
        {
            _subscriptionService.Subscribe(_clientAddress, _port, _category);
            _repository.NewMessage += Raise.Event <EventHandler <string> >(this, "anotherCategory");

            Thread.Sleep(_defaultTimeSpan);
            _notificationAdapter.DidNotReceive().Notify(Arg.Any <Subscriber>(), _notificationMessageText);
        }