public void After_One_Event_Subscription_Should_Contain_The_Event() { var subscriptionManager = new EventBusSubscriptionManager(); subscriptionManager.AddSubscription <TestIntegrationEvent, TestIntegrationEventHandler>(); Assert.True(subscriptionManager.HasSubscriptionsForEvent <TestIntegrationEvent>()); }
public void After_All_Subscriptions_Are_Deleted_Events_Should_No_Longer_Exists() { var subscriptionManager = new EventBusSubscriptionManager(); subscriptionManager.AddSubscription <TestIntegrationEvent, TestIntegrationEventHandler>(); subscriptionManager.RemoveSubscription <TestIntegrationEvent, TestIntegrationEventHandler>(); Assert.False(subscriptionManager.HasSubscriptionsForEvent <TestIntegrationEvent>()); }