Exemple #1
0
            public void GetOutgoingMessagePropertiesForMessageInvokesProvider()
            {
                TestMessage testMessage = new TestMessage();

                testMessage.GetOutgoingMessageProperties();

                _mockMessagePropertiesProvider.Verify(mplcp => mplcp.GetOutgoingMessageProperties(testMessage), Times.Once());
            }
Exemple #2
0
            public void AttemptingToGetOutgoingMessagePropertiesForNullMessageThrows()
            {
                TestMessage message = null;

                Action action = () => message.GetOutgoingMessageProperties();

                action.ShouldThrow <ArgumentNullException>()
                .And.ParamName.Should().Be("message");
            }