public void Apply_WithNullForContext_ThrowsException()
        {
            var sut = new HttpFunctionQueryParameterFilter();

            Action action = () => sut.Apply(_operation, null);

            action.Should().Throw <ArgumentNullException>().And.ParamName.Should().Be("context");
        }
        public void Apply_WithNullForOperation_ThrowsException()
        {
            var sut     = new HttpFunctionQueryParameterFilter();
            var context = A.Fake <OperationFilterContext>();

            Action action = () => sut.Apply(null, context);

            action.Should().Throw <ArgumentNullException>().And.ParamName.Should().Be("operation");
        }
        public void Apply_ForNoOwnQueryParameters_ReturnsCorrectResult()
        {
            var method            = GetMethodInfo1(nameof(FunctionMethodTestSource1.NoOwnQueryParameters));
            var expectedResultIds = _functionMethodTestSource1.NoOwnQueryParameters();
            var context           = CreateOperationFilterContext(method);

            var sut = new HttpFunctionQueryParameterFilter();

            sut.Apply(_operation, context);

            ValidateResult(expectedResultIds);
        }