public void IntCorrelationId() { var expression = MessagePropertyMapper<SagaWithIntCorrelationId.SagaData>.GetExpression(typeof(SagaWithIntCorrelationId)); var instance = new SagaWithIntCorrelationId.SagaData { CorrelationProperty = 10 }; var property = expression.Compile()(instance); Assert.AreEqual(10, property); }
public void IntCorrelationId() { var expression = new SagaWithIntCorrelationId().GetExpression(); var instance = new SagaWithIntCorrelationId.SagaData { CorrelationProperty = 10 }; var property = expression.Compile()(instance); Assert.AreEqual(10, property); }