public void returns_definition_with_input_type_for_property_of_type_string() { var fieldDefinitionFromProperty = new InputFieldDefinitionFromProperty(); var result = fieldDefinitionFromProperty.Get(typeof(MyModel), "FirstName"); Assert.That(result.Type, Is.EqualTo(FieldType.Input)); }
public void returns_definition_with_input_type_for_property_of_type_int() { var fieldDefinitionFromProperty = new InputFieldDefinitionFromProperty(); var result = fieldDefinitionFromProperty.Get(typeof(MyModel), "NumberOfSomethings"); Assert.That(result.Type, Is.EqualTo(FieldType.Input)); }