public void SubscribeToAll_GeneralSubscriptionsStoreAction( )
        {
            // Arrange
            DummyEventsBroker broker = new DummyEventsBroker( );

            // Act
            Guid id = broker.SubscribeToAll(null);

            // Assert
            Assert.IsTrue(broker.IsSubscribed(id));
        }
        public void Unsubscribe_GeneralSubscriptionHadAction_ActionRemoved( )
        {
            // Arrange
            DummyEventsBroker broker = new DummyEventsBroker( );
            Guid id = broker.SubscribeToAll(null);

            Assert.IsTrue(broker.IsSubscribed(id));

            // Act
            broker.Unsubscribe(id);

            // Assert
            Assert.IsFalse(broker.IsSubscribed(id));
        }
        public void ClearSubscriptions_SubscriptionHadManyActions_AllActionsRemoved( )
        {
            // Arrange
            DummyEventsBroker broker = new DummyEventsBroker( );
            Guid id1 = broker.SubscribeTo <string> (null);
            Guid id2 = broker.SubscribeToAll(null);

            Assert.IsTrue(broker.IsSubscribed(id1));
            Assert.IsTrue(broker.IsSubscribed(id2));

            // Act
            broker.ClearSubscriptions( );

            // Assert
            Assert.IsEmpty(broker.Subscriptions);
            Assert.IsEmpty(broker.GeneralSubscriptions);
        }