public void GetEditableColumns_does_not_return_key() { ModelDefinition modelDefinition = new ModelDefinition(typeof(Test)); IEnumerable <Column> columns = modelDefinition.GetEditableColumns(); columns.Any(x => string.Equals(x.Name, nameof(Test.Id))).MustBeFalse(); }
public void GetEditableColumns_returns_edtiable_columns() { ModelDefinition modelDefinition = new ModelDefinition(typeof(Test)); IEnumerable <Column> columns = modelDefinition.GetEditableColumns(); columns.Count().MustBe(1); columns.First().Name.MustBe(nameof(Test.Foo)); }