private void ActionNullRaisesArgumentNullException()
        {
            var convention = new ApiActionOverloadingConvention();

            var ex = Assert.Throws <ArgumentNullException>(() => convention.Apply(null));

            Assert.Equal("actionModel", ex.ParamName);
        }
        private void ApiActionOverloadingConstraintIsRegistered()
        {
            var methodInfo  = typeof(TestController).GetMethod("Get");
            var actionModel = new ActionModel(methodInfo, new List <object>()
            {
            });

            var convention = new ApiActionOverloadingConvention();

            convention.Apply(actionModel);

            Assert.Contains(actionModel.ActionConstraints, item => item.GetType().IsAssignableFrom(typeof(OverloadActionConstraint)));
        }