public void TestContributedAnnotationNullByDefault1() { var actionMethod = FindMethod(typeof(Service), "Action1"); facetFactory.Process(Reflector, actionMethod, MethodRemover, Specification); IFacet facet = Specification.GetFacet <IContributedActionFacet>(); Assert.IsNull(facet); AssertNoMethodsRemoved(); }
public void TestContributedAnnotationNullByDefault1() { IImmutableDictionary <string, ITypeSpecBuilder> metamodel = new Dictionary <string, ITypeSpecBuilder>().ToImmutableDictionary(); var actionMethod = FindMethod(typeof(Service), "Action1"); metamodel = facetFactory.Process(Reflector, actionMethod, MethodRemover, Specification, metamodel); IFacet facet = Specification.GetFacet <IContributedActionFacet>(); Assert.IsNull(facet); AssertNoMethodsRemoved(); Assert.IsNotNull(metamodel); }