Example #1
0
        public void InlineFragmentsRequestFact()
        {
            var graphQLRequest = GraphQLRequestConsts.InlineFragmentsRequest;

            AssertGraphQL.CorrectGraphQLRequest(graphQLRequest);
            Assert.NotNull(graphQLRequest.Variables);
            Assert.Equal("JEDI", graphQLRequest.Variables.ep);
        }
Example #2
0
        public void VariablesRequestFact()
        {
            var graphQLRequest = GraphQLRequestConsts.VariablesRequest;

            AssertGraphQL.CorrectGraphQLRequest(graphQLRequest);
            Assert.NotNull(graphQLRequest.Variables);
            Assert.Equal("JEDI", graphQLRequest.Variables.episode);
        }
Example #3
0
        public void DirectivesRequestFact()
        {
            var graphQLRequest = GraphQLRequestConsts.DirectivesRequest;

            AssertGraphQL.CorrectGraphQLRequest(graphQLRequest);
            Assert.NotNull(graphQLRequest.Variables);
            Assert.Equal("JEDI", graphQLRequest.Variables.episode);
            Assert.Equal(false, graphQLRequest.Variables.withFriends);
        }
Example #4
0
        public void MutationsRequestFact()
        {
            var graphQLRequest = GraphQLRequestConsts.MutationsRequest;

            AssertGraphQL.CorrectGraphQLRequest(graphQLRequest);
            Assert.NotNull(graphQLRequest.Variables);
            Assert.Equal("JEDI", graphQLRequest.Variables.ep);
            Assert.Equal(5, graphQLRequest.Variables.review.stars);
            Assert.Equal("This is a great movie!", graphQLRequest.Variables.review.commentary);
        }
Example #5
0
        public void OperationNameRequestFact()
        {
            var graphQLRequest = GraphQLRequestConsts.OperationNameRequest;

            AssertGraphQL.CorrectGraphQLRequest(graphQLRequest);
        }
Example #6
0
        public void FieldsRequest1Fact()
        {
            var graphQLRequest = GraphQLRequestConsts.FieldsRequest1;

            AssertGraphQL.CorrectGraphQLRequest(graphQLRequest);
        }
Example #7
0
        public void FragmentsRequestFact()
        {
            var graphQLRequest = GraphQLRequestConsts.FragmentsRequest;

            AssertGraphQL.CorrectGraphQLRequest(graphQLRequest);
        }
Example #8
0
        public void AliasesRequestFact()
        {
            var graphQLRequest = GraphQLRequestConsts.AliasesRequest;

            AssertGraphQL.CorrectGraphQLRequest(graphQLRequest);
        }
Example #9
0
        public void ArgumentsRequest2Fact()
        {
            var graphQLRequest = GraphQLRequestConsts.ArgumentsRequest2;

            AssertGraphQL.CorrectGraphQLRequest(graphQLRequest);
        }
Example #10
0
        public void MetaFieldsRequestFact()
        {
            var graphQLRequest = GraphQLRequestConsts.MetaFieldsRequest;

            AssertGraphQL.CorrectGraphQLRequest(graphQLRequest);
        }