public void TestPasswordAnnotationNotPickedUpOnProperty() { PropertyInfo property = FindProperty(typeof(Customer3), "FirstName"); facetFactory.Process(Reflector, property, MethodRemover, Specification); IFacet facet = Specification.GetFacet(typeof(IPasswordFacet)); Assert.IsNull(facet); }
public void TestPasswordAnnotationNotPickedUpOnProperty() { IImmutableDictionary <string, ITypeSpecBuilder> metamodel = new Dictionary <string, ITypeSpecBuilder>().ToImmutableDictionary(); var property = FindProperty(typeof(Customer3), "FirstName"); metamodel = facetFactory.Process(Reflector, property, MethodRemover, Specification, metamodel); var facet = Specification.GetFacet(typeof(IPasswordFacet)); Assert.IsNull(facet); Assert.IsNotNull(metamodel); }