public void TestApplyValidationNotPickup()
        {
            facetFactory.Process(Reflector, typeof(Customer1), MethodRemover, Specification);
            IFacet facet = Specification.GetFacet(typeof(IValidateProgrammaticUpdatesFacet));

            Assert.IsNull(facet);
            AssertNoMethodsRemoved();
        }
Ejemplo n.º 2
0
        public void TestApplyValidationNotPickup()
        {
            IImmutableDictionary <string, ITypeSpecBuilder> metamodel = new Dictionary <string, ITypeSpecBuilder>().ToImmutableDictionary();

            metamodel = facetFactory.Process(Reflector, typeof(Customer1), MethodRemover, Specification, metamodel);
            var facet = Specification.GetFacet(typeof(IValidateProgrammaticUpdatesFacet));

            Assert.IsNull(facet);
            AssertNoMethodsRemoved();
            Assert.IsNotNull(metamodel);
        }