//JAVA TO C# CONVERTER WARNING: Method 'throws' clauses are not available in C#: //ORIGINAL LINE: private void createRandomData(int count) throws Exception private void CreateRandomData(int count) { Config config = Config.defaults(); RecordFormats recordFormats = RecordFormatSelector.selectForConfig(config, NullLogProvider.Instance); using (RandomDataInput input = new RandomDataInput(this, count), JobScheduler jobScheduler = new ThreadPoolJobScheduler()) { BatchImporter importer = new ParallelBatchImporter(_directory.databaseLayout(), _fileSystemRule.get(), null, DEFAULT, NullLogService.Instance, ExecutionMonitors.invisible(), EMPTY, config, recordFormats, NO_MONITOR, jobScheduler); importer.DoImport(input); } }
//JAVA TO C# CONVERTER TODO TASK: Most Java annotations will not have direct .NET equivalent attributes: //ORIGINAL LINE: @Test public void shouldImportDataComingFromCsvFiles() throws Exception //JAVA TO C# CONVERTER WARNING: Method 'throws' clauses are not available in C#: public virtual void ShouldImportDataComingFromCsvFiles() { // GIVEN Config dbConfig = Config.builder().withSetting(db_timezone, LogTimeZone.SYSTEM.name()).build(); using (JobScheduler scheduler = new ThreadPoolJobScheduler()) { BatchImporter importer = new ParallelBatchImporter(Directory.databaseLayout(), FileSystemRule.get(), null, SmallBatchSizeConfig(), NullLogService.Instance, invisible(), AdditionalInitialIds.EMPTY, dbConfig, RecordFormatSelector.defaultFormat(), NO_MONITOR, scheduler); IList <InputEntity> nodeData = RandomNodeData(); IList <InputEntity> relationshipData = RandomRelationshipData(nodeData); // WHEN importer.DoImport(Csv(NodeDataAsFile(nodeData), RelationshipDataAsFile(relationshipData), IdType.String, LowBufferSize(COMMAS), silentBadCollector(0))); // THEN VerifyImportedData(nodeData, relationshipData); } }