public void TestMandatoryDefaultOnPrimitiveOnActionParameter()
        {
            var method = FindMethod(typeof(Customer4), "SomeAction", new[] { typeof(int) });

            facetFactory.ProcessParams(Reflector, method, 0, Specification);
            var facet = Specification.GetFacet(typeof(IMandatoryFacet));

            Assert.IsNotNull(facet);
            Assert.IsTrue(facet is MandatoryFacetDefault);
        }
        public void TestMandatoryDefaultOnPrimitiveOnActionParameter()
        {
            IImmutableDictionary <string, ITypeSpecBuilder> metamodel = new Dictionary <string, ITypeSpecBuilder>().ToImmutableDictionary();

            var method = FindMethod(typeof(Customer4), "SomeAction", new[] { typeof(int) });

            metamodel = facetFactory.ProcessParams(Reflector, method, 0, Specification, metamodel);
            var facet = Specification.GetFacet(typeof(IMandatoryFacet));

            Assert.IsNotNull(facet);
            Assert.IsTrue(facet is MandatoryFacetDefault);
            Assert.IsNotNull(metamodel);
        }