private static void createPOCOClasses(JavaScript container, StringBuilder outputFileContents, string outputDirectoryContext)
 {
     foreach (var model in container.Models.Values)
     {
         var jsCode = ((JSRenderble)DI.Get <IJSClass>(model)).GetText();
         jsCode = TemplateCleaner.CleanTemplate(jsCode);
         var outputDir = Path.Combine(outputDirectoryContext, Configuration.Instance.ModelsFolder);
         if (Configuration.Instance.multiFileOutput)
         {
             Directory.CreateDirectory(outputDir);
             writeFile(jsCode, Path.Combine(outputDir, Configuration.Instance.ModelsNameFactory(model.TypeName) + ".js"));
         }
         else
         {
             outputFileContents.AppendLine(jsCode);
         }
     }
 }
 private void createRequestContainers(JavaScript container, StringBuilder outputFileContents, string outputDirectoryContext)
 {
     foreach (var classDef in container.Classes)
     {
         var newClass = DI.Get <IJSClass>(classDef);
         Classes.Add(newClass);
         var jsCode = ((JSRenderble)newClass).GetText();
         jsCode = TemplateCleaner.CleanTemplate(jsCode);
         if (Configuration.Instance.multiFileOutput)
         {
             writeFile(jsCode, Path.Combine(outputDirectoryContext, classDef.Name + ".js"));
         }
         else
         {
             outputFileContents.AppendLine(jsCode);
         }
     }
 }