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);
        }
Ejemplo n.º 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"));
        }
Ejemplo n.º 3
0
 public override string ToString()
 {
     return(MetadataItem.ToString());
 }
Ejemplo n.º 4
0
 private static string Identity(MetadataItem item)
 {
     return(item.ToString());
 }