コード例 #1
0
        public void IntrospectionWithSubscription()
        {
            // arrange
            var features = new SchemaFeatures
            {
                HasSubscriptionSupport = true
            };

            // act
            DocumentNode document =
                IntrospectionClient.CreateIntrospectionQuery(features);

            // assert
            QuerySyntaxSerializer.Serialize(document).MatchSnapshot();
        }
コード例 #2
0
        public void IntrospectionWithoutDirectiveIsRepeatableField()
        {
            // arrange
            var features = new SchemaFeatures
            {
                HasRepeatableDirectives = false
            };

            // act
            DocumentNode document =
                IntrospectionClient.CreateIntrospectionQuery(features);

            // assert
            QuerySyntaxSerializer.Serialize(document).MatchSnapshot();
        }
コード例 #3
0
        public void IntrospectionWithDirectiveLocationField()
        {
            // arrange
            var features = new SchemaFeatures
            {
                HasDirectiveLocations = true
            };

            // act
            DocumentNode document =
                IntrospectionClient.CreateIntrospectionQuery(features);

            // assert
            QuerySyntaxSerializer.Serialize(document).MatchSnapshot();
        }