public void Compile_DomainFacetsWithSingleChildFacet_HasExpectedSqlQuery(string uri, string resultFacetCode, string specificationKey, string _)
        {
            // Arrange
            var fakeFacetsConfig = FakeFacetsConfig(uri);
            var fakeQuerySetup   = FakeResultQuerySetup(fakeFacetsConfig, resultFacetCode, specificationKey);
            var fakeResultFields = FakeResultConfig(resultFacetCode, specificationKey, "map").GetSortedFields();

            // Act
            var sqlCompiler = new MapResultSqlCompiler();
            var result      = sqlCompiler.Compile(fakeQuerySetup, fakeQuerySetup.Facet, fakeResultFields);

            // Assert
            var matcher = new MapResultSqlCompilerMatcher();
            var match   = matcher.Match(result);

            Assert.True(match.Success);
        }
        public void Compile_StateUnderTest_ExpectedBehavior(string uri, string resultFacetCode, string specificationKey)
        {
            // Arrange
            var fakeFacetsConfig = FakeFacetsConfig(uri);
            var fakeQuerySetup   = FakeResultQuerySetup(fakeFacetsConfig, resultFacetCode, specificationKey);
            var fakeResultFields = FakeResultConfig(resultFacetCode, specificationKey, "map").GetSortedFields();

            // Act
            var sqlCompiler = new MapResultSqlCompiler();
            var result      = sqlCompiler.Compile(fakeQuerySetup, fakeQuerySetup.Facet, fakeResultFields);

            // Assert
            var matcher = new MapResultSqlCompilerMatcher();
            var match   = matcher.Match(result);

            Assert.True(match.Success);
        }