Пример #1
0
        public void ShouldReturnPropertyAttributes()
        {
            List <Attribute> attributes = MetadataRepository.GetAttributes(new MyEntity(), "FirstName").ToList();

            Assert.AreEqual <int>(7, attributes.Count);

            MetadataRepository.Clear();

            MetadataRepository.GetProperties(new MyEntity());
            attributes = MetadataRepository.GetAttributes(new MyEntity(), "FirstName").ToList();
            Assert.AreEqual <int>(7, attributes.Count);
        }
Пример #2
0
 public void Initialize()
 {
     MetadataRepository.Clear();
 }