private void InitializeInstanceFields() { _rand = new Random(_seed); _scheduler = _life.add(createScheduler()); _boltSchedulerProvider = _life.add(new ExecutorBoltSchedulerProvider(_config, new CachedThreadPoolExecutorFactory(NullLog.Instance), _scheduler, NullLogService.Instance)); _machine = new BoltStateMachineV1(new FuzzStubSPI(this), BoltTestUtil.newTestBoltChannel(), _clock); _connectionFactory = new DefaultBoltConnectionFactory(_boltSchedulerProvider, TransportThrottleGroup.NO_THROTTLE, _config, NullLogService.Instance, _clock, _monitors); }
//JAVA TO C# CONVERTER WARNING: Method 'throws' clauses are not available in C#: //ORIGINAL LINE: public static org.neo4j.bolt.runtime.BoltStateMachine newMachineWithTransactionSPI(org.neo4j.bolt.runtime.TransactionStateMachineSPI transactionSPI) throws org.neo4j.bolt.security.auth.AuthenticationException, org.neo4j.bolt.runtime.BoltConnectionFatality public static BoltStateMachine NewMachineWithTransactionSPI(TransactionStateMachineSPI transactionSPI) { BoltStateMachineSPI spi = mock(typeof(BoltStateMachineSPI), RETURNS_MOCKS); when(spi.TransactionSpi()).thenReturn(transactionSPI); BoltChannel boltChannel = BoltTestUtil.newTestBoltChannel(); BoltStateMachine machine = new BoltStateMachineV1(spi, boltChannel, Clock.systemUTC()); Init(machine); return(machine); }