Example #1
0
            public override void Define()
            {
                FactProjection projection = null;

                When()
                .Query(() => projection, x => x
                       .Match <FactType>()
                       .Select(f => new FactProjection(f))
                       .Where(p => p.Value.StartsWith("Valid")));
                Then()
                .Do(ctx => ctx.NoOp());
            }
Example #2
0
            public override void Define()
            {
                FactType1      fact1      = null;
                FactProjection projection = null;

                When()
                .Match(() => fact1)
                .Query(() => projection, q => q
                       .Match <FactType2>(f => f.JoinProperty == fact1.TestProperty)
                       .Select(f => new FactProjection(fact1, f))
                       .Where(p => p.Value.StartsWith("Valid")));
                Then()
                .Do(ctx => ctx.NoOp());
            }
 private static bool IsValid(FactProjection p)
 {
     return(p.Value.StartsWith("Valid"));
 }