public void Serialize_WithJoin_AndAmbiguousFields_ThrowsException()
        {
            Assert.Throws <AmbiguousFieldsException>(() =>
            {
                var newsQuery = new GraphQLQuery <BlogPost>()
                                .WithArgument("category", Category.News);
                var artQuery = new GraphQLQuery <BlogPost>()
                               .WithArgument("category", Category.Art);

                var queryString = newsQuery.With(artQuery).ToString();
            });
        }
        public void Serialize_WithJoin_AndAliases_IncludesBothQueries()
        {
            var newsQuery = new GraphQLQuery <BlogPost>()
                            .WithAlias("news_articles")
                            .WithArgument("category", Category.News);
            var artQuery = new GraphQLQuery <BlogPost>()
                           .WithAlias("art_pieces")
                           .WithArgument("category", Category.Art);

            var queryString = newsQuery.With(artQuery).ToString();

            Assert.Contains("news_articles: blog_post(category: News)", queryString);
            Assert.Contains("art_pieces: blog_post(category: Art)", queryString);
        }