public void TestAjaxFacetAddedIfNoValidate() { IImmutableDictionary <string, ITypeSpecBuilder> metamodel = new Dictionary <string, ITypeSpecBuilder>().ToImmutableDictionary(); PropertyInfo property = FindProperty(typeof(Customer2), "FirstName"); metamodel = facetFactory.Process(Reflector, property, MethodRemover, Specification, metamodel); IFacet facet = Specification.GetFacet(typeof(IAjaxFacet)); Assert.IsNotNull(facet); Assert.IsTrue(facet is AjaxFacet); Assert.IsNotNull(metamodel); }
public void TestAjaxFacetAddedIfNoValidate() { PropertyInfo property = FindProperty(typeof(Customer2), "FirstName"); facetFactory.Process(Reflector, property, MethodRemover, Specification); IFacet facet = Specification.GetFacet(typeof(IAjaxFacet)); Assert.IsNotNull(facet); Assert.IsTrue(facet is AjaxFacet); }