private static void Model(ApiDeclaration declaration, string id, Action<DataType> applyAssertions)
 {
     var model = declaration.Models[id];
     applyAssertions(model);
 }
        private static void Api(ApiDeclaration declaration, string apiPath, Action<Api> applyAssertions)
        {
            var api = declaration.Apis
                .Single(a => a.Path == apiPath);

            applyAssertions(api);
        }