public void TestBoundedAnnotationPickedUpOnClass()
        {
            facetFactory.Process(Reflector, typeof(Customer), MethodRemover, Specification);
            IFacet facet = Specification.GetFacet(typeof(IBoundedFacet));

            Assert.IsNotNull(facet);
            Assert.IsTrue(facet is BoundedFacet);
            AssertNoMethodsRemoved();
        }
Exemplo n.º 2
0
        public void TestBoundedAnnotationPickedUpOnClass()
        {
            IImmutableDictionary <string, ITypeSpecBuilder> metamodel = new Dictionary <string, ITypeSpecBuilder>().ToImmutableDictionary();

            metamodel = facetFactory.Process(Reflector, typeof(Customer), MethodRemover, Specification, metamodel);
            IFacet facet = Specification.GetFacet(typeof(IBoundedFacet));

            Assert.IsNotNull(facet);
            Assert.IsTrue(facet is BoundedFacet);
            AssertNoMethodsRemoved();
            Assert.IsNotNull(metamodel);
        }