public async Task GeneratesCodeFromSchema() { var tmpPath = Path.GetTempPath(); var schemaPath = Path.Combine(tmpPath, "beam.json"); File.WriteAllText(schemaPath, beamSchema); var relPath = Path.GetRelativePath(Assembly.GetExecutingAssembly().Location, schemaPath); await TypeGenerator.GenerateUserElementTypeFromUriAsync(relPath, tmpPath, true); var code = File.ReadAllText(Path.Combine(tmpPath, "beam.g.cs")); }