public void GuidCorrelationId()
 {
     var expression = MessagePropertyMapper<SagaWithGuidCorrelationId.SagaData>.GetExpression(typeof(SagaWithGuidCorrelationId));
     var guid = Guid.NewGuid();
     var instance = new SagaWithGuidCorrelationId.SagaData
     {
         CorrelationProperty = guid
     };
     var property = expression.Compile()(instance);
     Assert.AreEqual(guid, property);
 }
    public void GuidCorrelationId()
    {
        var expression = new SagaWithGuidCorrelationId().GetExpression();
        var guid       = Guid.NewGuid();
        var instance   = new SagaWithGuidCorrelationId.SagaData
        {
            CorrelationProperty = guid
        };
        var property = expression.Compile()(instance);

        Assert.AreEqual(guid, property);
    }