public void ShouldbeAbleToAddMultipleNestedFields()
        {
            var builder = new ContentTypeQueryResourceBuilder("someContentType");

            builder.WithField("field");
            builder.WithNestedField("nestedField").WithField("nestedChild");
            builder.WithNestedField("nestedField2").WithField("nestedChild2");

            Assert.Equal("someContentType { field nestedField { nestedChild } nestedField2 { nestedChild2 } }", builder.Build());
        }
        public void ShouldAddNestedFieldWithNameAsPascalCase(string fieldName)
        {
            var builder = new ContentTypeQueryResourceBuilder("someContentType");

            builder.WithNestedField(fieldName);

            Assert.Equal("someContentType { someNestedField {} }", builder.Build());
        }
        public void ShouldbeAbleToCombineNonNestedAndNestedFields()
        {
            var builder = new ContentTypeQueryResourceBuilder("someContentType");

            builder.WithField("field");
            builder.WithNestedField("nestedField").WithField("nestedChild");

            Assert.Equal("someContentType { field nestedField { nestedChild } }", builder.Build());
        }