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); }
public void Initialize() { MetadataRepository.Clear(); }