//hide
        private static void AssertExtensionMethods(IGetMappingResponse response)
        {
            /** The `GetMappingFor` extension method can be used to get a type mapping easily and safely */
            response.GetMappingFor <Project>().Should().NotBeNull();
            response.GetMappingFor(typeof(Project), typeof(Project)).Should().NotBeNull();
            response.GetMappingFor(typeof(Project)).Should().NotBeNull();

            /** The following should all return a `null` because we had asked for the mapping of type `doc` in index `project` */
            response.GetMappingFor <Developer>().Should().BeNull();
            response.GetMappingFor("dev", "dev").Should().BeNull();
            response.GetMappingFor(typeof(Project), "x").Should().BeNull();
            response.GetMappingFor("dev").Should().BeNull();
        }
 public static ITypeMapping GetMappingFor <T>(this IGetMappingResponse response) => response.GetMappingFor(typeof(T), typeof(T));