/// <summary> /// Save metadata to a script file /// Certain tests will load this script dynamically so they can get metadata /// without making a Web API call /// </summary> public static void WriteMetadataFile() { var metadata = new ZzaRepository().Metadata; var scriptFilename = HostingEnvironment.MapPath("~/app/metadata.js"); WriteFile(scriptFilename, metadata); }