Esempio n. 1
0
        public void allow_skip_should_enable_query_option_with_max()
        {
            // arrange
            var builder = new TestODataActionQueryOptionsConventionBuilder();

            // act
            builder.AllowSkip(42);

            // assert
            builder.ValidationSettings.Should().BeEquivalentTo(
                new
            {
                AllowedQueryOptions = Skip,
                MaxSkip             = new int?(42),
            },
                options => options.ExcludingMissingMembers());
        }