Example #1
0
        public void EvaluateArgumentInEvent()
        {
            var        _value = Guid.NewGuid().ToString();
            RunContext ctx    = CreateContextForEvaluateArgument();
            var        u      = ExpressionDynobjectExtension.GetAccessors <RunContext>("Workflow.ExternalId");
            var        v      = u(ctx);

            Assert.AreEqual(v, ctx.Workflow.ExternalId);
        }
Example #2
0
        public void EvaluateArgumentInDynamicObject()
        {
            var        _value = Guid.NewGuid().ToString();
            RunContext ctx    = CreateContextForEvaluateArgument();

            ctx.Event.ExtendedDatas().Items.Add("SiteIdentifier", new DynObject().SetValue("112233"));
            var u = ExpressionDynobjectExtension.GetAccessors <RunContext>("Event.SiteIdentifier");
            var v = u(ctx);

            Assert.AreEqual(v, "112233");
        }