internal override StringBuilder AsUserString(StringBuilder builder, string blockAlias, bool skipIsNotNull)
        {
            AssociationSetEnd end = m_metadataItem as AssociationSetEnd;

            if (end != null)
            {
                builder.Append(Strings.ViewGen_AssociationSet_AsUserString(blockAlias, end.Name, end.ParentAssociationSet));
            }
            else
            {
                builder.Append(Strings.ViewGen_EntitySet_AsUserString(blockAlias, m_metadataItem.ToString()));
            }
            return(builder);
        }
Exemple #2
0
        public void MetadataItem_toString_ReturnsCorrectString()
        {
            //arrange
            MetadataItem metadata = new MetadataItem(guid, title, valutaDate, type, notes, entryDate, username);

            //act
            string result = metadata.ToString();

            //assert
            Assert.That(result, Is.EqualTo("TestBezeichnung, TestStichwort"));
        }
 public override string ToString()
 {
     return(MetadataItem.ToString());
 }
Exemple #4
0
 private static string Identity(MetadataItem item)
 {
     return(item.ToString());
 }