public FieldCollectionTests() { _fieldCollection = new AutoOrderedFieldsCollection <FixedFieldSettings>(); _testObject = new TestObject(); _members = new[] { MemberOf(_testObject, t => t.Id), MemberOf(_testObject, t => t.Description), MemberOf(_testObject, t => t.NullableInt) }; _member = MemberOf(_testObject, t => t.Description); _fieldSettings = new FixedFieldSettings(_member); }
public FieldsContainerTests() { _fieldsContainer = new AutoOrderedFieldsContainer <FixedFieldSettings>(); _testObject = new TestObject(); _properties = new[] { ExpressionExtensions.GetPropertyInfo(() => _testObject.Id), ExpressionExtensions.GetPropertyInfo(() => _testObject.Description), ExpressionExtensions.GetPropertyInfo(() => _testObject.NullableInt) }; _propertyInfo = ExpressionExtensions.GetPropertyInfo(() => _testObject.Description); _fieldSettings = new FixedFieldSettings(_propertyInfo); }