Esempio n. 1
0
        public void Set <T>(Expression <Func <T, object> > path, object value)
        {
            //why am I falling into here
            var memberExpression = path.GetMemberExpression(true);
            var operation        = new EqualsPropertyOperation();

            _listOfOperations.Add(new Tuple <IPropertyOperation, MemberExpression, object>(operation, memberExpression, value));
        }
 public void Setup()
 {
     var builder = new EqualsPropertyOperation();
     _builtPredicate = builder.GetPredicateBuilder<Contract>(c => c.Status)("Open").Compile();
 }
 public void Setup()
 {
     var builder = new EqualsPropertyOperation();
     _builtPredicate = builder.GetPredicateBuilder<Contract>(c => c.Purchased)(18).Compile();
 }