Ejemplo n.º 1
0
 public void Setup()
 {
     samples      = InitSamples(20000).ToArray();
     generator    = new CsvGeneratorImpl <SampleClass>();
     memoryStream = new MemoryStream();
     streamWriter = new StreamWriter(memoryStream);
 }
Ejemplo n.º 2
0
 /// <summary>
 /// Constructor
 /// </summary>
 /// <param name="folderDbAccess">Folder Db Access</param>
 /// <param name="templateDbAccess">Template Db Access</param>
 /// <param name="skillDbAccess">Skill Db Access</param>
 /// <param name="tagDbAccess">Tag Db Access</param>
 /// <param name="exportTemplateDbAccess">Export Template Db Access</param>
 /// <param name="importFieldValuesLogDbAccess">Import field values log Db Access</param>
 /// <param name="languageKeyDbAccess">Language Key Db Access</param>
 /// <param name="exportFunctionIdDbAccess">Export Function Id Db Access</param>
 /// <param name="objectExportSnippetDbAccess">Object export snippet Db Access</param>
 /// <param name="objectExportSnippetSnapshotDbAccess">Object export snippet snapshot Db Access</param>
 /// <param name="exportSnippetRelatedObjectNameResolver">Service that will resolve export snippet related object names</param>
 /// <param name="stateMachineDbAccess">State machine Db Access</param>
 /// <param name="imageAccess">Skill Image Access</param>
 /// <param name="thumbnailService">Thumbnail Service</param>
 /// <param name="aikaQuestDbAccess">Aika Quest Db ACcess</param>
 /// <param name="kirjaPageDbAccess">Kirja Page Db Access</param>
 /// <param name="taleDbAccess">Tale Db Access</param>
 /// <param name="kortistoNpcDbAccess">Kortisto Npc Db Access</param>
 /// <param name="npcTemplateDbAccess">Npc Template Db Access</param>
 /// <param name="userProjectAccess">User project Access</param>
 /// <param name="csvGenerator">CSV Generator</param>
 /// <param name="csvReader">CSV Reader</param>
 /// <param name="userManager">User Manager</param>
 /// <param name="implementationStatusComparer">Implementation Status Comparer</param>
 /// <param name="timelineService">Timeline Service</param>
 /// <param name="xssChecker">Xss Checker</param>
 /// <param name="logger">Logger</param>
 /// <param name="localizerFactory">Localizer Factory</param>
 public EvneApiController(IEvneFolderDbAccess folderDbAccess, IEvneSkillTemplateDbAccess templateDbAccess, IEvneSkillDbAccess skillDbAccess, IEvneSkillTagDbAccess tagDbAccess, IExportTemplateDbAccess exportTemplateDbAccess, ILanguageKeyDbAccess languageKeyDbAccess, IEvneImportFieldValuesLogDbAccess importFieldValuesLogDbAccess,
                          IExportFunctionIdDbAccess exportFunctionIdDbAccess, IObjectExportSnippetDbAccess objectExportSnippetDbAccess, IObjectExportSnippetSnapshotDbAccess objectExportSnippetSnapshotDbAccess, IExportSnippetRelatedObjectNameResolver exportSnippetRelatedObjectNameResolver, IStateMachineDbAccess stateMachineDbAccess,
                          IEvneSkillImageAccess imageAccess, IEvneThumbnailService thumbnailService, IAikaQuestDbAccess aikaQuestDbAccess, ITaleDbAccess taleDbAccess, IKirjaPageDbAccess kirjaPageDbAccess, IKortistoNpcDbAccess kortistoNpcDbAccess, IKortistoNpcTemplateDbAccess npcTemplateDbAccess, IUserProjectAccess userProjectAccess,
                          ICsvGenerator csvGenerator, ICsvParser csvReader, UserManager <GoNorthUser> userManager, IImplementationStatusComparer implementationStatusComparer, ITimelineService timelineService, IXssChecker xssChecker, ILogger <EvneApiController> logger, IStringLocalizerFactory localizerFactory)
     : base(folderDbAccess, templateDbAccess, skillDbAccess, tagDbAccess, exportTemplateDbAccess, importFieldValuesLogDbAccess, languageKeyDbAccess, exportFunctionIdDbAccess, objectExportSnippetDbAccess, objectExportSnippetSnapshotDbAccess, exportSnippetRelatedObjectNameResolver, stateMachineDbAccess, userProjectAccess, imageAccess,
            thumbnailService, csvGenerator, csvReader, userManager, implementationStatusComparer, timelineService, xssChecker, logger, localizerFactory)
 {
     _aikaQuestDbAccess   = aikaQuestDbAccess;
     _taleDbAccess        = taleDbAccess;
     _kirjaPageDbAccess   = kirjaPageDbAccess;
     _kortistoNpcDbAccess = kortistoNpcDbAccess;
     _npcTemplateDbAccess = npcTemplateDbAccess;
 }
Ejemplo n.º 3
0
 public SyntaxCsvVisitor(ICsvGenerator csvGenerator)
 {
     _csvGenerator = csvGenerator;
 }