public void CreatesCorrectPolicyWhenNoBuilderSpecified()
        {
            var policyBuilder = new InboundSectionPolicyBuilder(new SectionPolicy("inbound"))
                                .CacheLookup(
                x => x
                .VaryByDeveloper(true)
                .Create()
                );
            var policy = (SectionPolicy)policyBuilder.Create();
            var xml    = policy.GetXml().ToString();

            xml.Should().Be(
                $@"<inbound>
  <cache-lookup vary-by-developer=""true"" />
</inbound>");
        }
        public void CreatesCorrectPolicyWhenBuilderSpecified()
        {
            var policyBuilder = new InboundSectionPolicyBuilder(new SectionPolicy("inbound"))
                                .CacheLookup(
                attrs => attrs
                .VaryByDeveloper(true)
                .Create(),
                builder => builder
                .VaryByHeader(headerTenant)
                .Create()
                );
            var policy = (SectionPolicy)policyBuilder.Create();
            var xml    = policy.GetXml().ToString();

            xml.Should().Be(
                $@"<inbound>
  <cache-lookup vary-by-developer=""true"">
    <vary-by-header>{headerTenant}</vary-by-header>
  </cache-lookup>
</inbound>");
        }