public void Generic_NHOrder_ParseOrder() { var expression = DynamicExpression.ParseLambda <User, object>("Name"); var order = new NHOrder <User>(expression); Console.WriteLine(order); }
public void OrderByPropertyName() { var expected = new NHOrder <User>(u => u.Name); var actual = new NHOrder <User>("Name"); Assert.AreEqual(expected.ToString(), actual.ToString()); }
public void Generic_NHOrder_ParseOrder() { var expression = DynamicExpression.ParseLambda<User, object>("Name"); var order = new NHOrder<User>(expression); Console.WriteLine(order); }
public void OrderByPropertyName() { var expected = new NHOrder<User>(u => u.Name); var actual = new NHOrder<User>("Name"); Assert.AreEqual(expected.ToString(), actual.ToString()); }