Пример #1
0
        private void VerifyMessageProcessing(Type handlerType, Type messageType)
        {
            _messageBusInitializer.MessageHandlerResolverMock.Received(1).Resolve(handlerType);
            TestHandlerBase.ArgsReceived.Count.Should().Be(1);
            var arg = TestHandlerBase.ArgsReceived.First();

            AssertionExtensions.ShouldBeEquivalentTo(arg.GetType(), messageType);
        }