public void MessageWasProcessedBySaga_condition_should_match_base_type()
        {
            var scenarioContext = new IntegrationScenarioContext();

            scenarioContext.CaptureInvokedSaga(new SagaInvocation()
            {
                Message = new InheritedMessage(), EndpointName = "fake-endpoint", SagaType = typeof(TestSaga), MessageType = typeof(InheritedMessage)
            });

            Assert.IsTrue(scenarioContext.MessageWasProcessedBySaga <IMessageInterface, TestSaga>());
        }
        public void MessageWasProcessed_condition_should_match_type()
        {
            var scenarioContext = new IntegrationScenarioContext();

            scenarioContext.CaptureInvokedSaga(new SagaInvocation()
            {
                Message       = new TestMessage(),
                EndpointName  = "fake-endpoint",
                SagaType      = typeof(TestSaga),
                HandlingError = null,
                MessageType   = typeof(TestMessage)
            });

            Assert.IsTrue(scenarioContext.MessageWasProcessed <TestMessage>());
        }