public void When_Call_StartMessagingManager_Should_Load_Processors()
        {
            ServiceProviderExtensions.StartMessagingManager(_serviceProviderMock.Object);

            _messagingManager.Verify(m => m.LoadProcessors(It.IsAny <IServiceProvider>()), Times.Once);
        }
        public void When_Call_StartMessagingManager_Should_Start_Messaging_Manager()
        {
            ServiceProviderExtensions.StartMessagingManager(_serviceProviderMock.Object);

            _messagingManager.Verify(m => m.Start(), Times.Once);
        }
        public void When_Call_StartMessagingManager_Should_Get_IMessagingManager()
        {
            ServiceProviderExtensions.StartMessagingManager(_serviceProviderMock.Object);

            _serviceProviderMock.Verify(s => s.GetService(typeof(IMessagingManager)), Times.Once);
        }