public DynamicIndexStoreView(NeoStoreIndexStoreView neoStoreIndexStoreView, LabelScanStore labelScanStore, LockService locks, NeoStores neoStores, LogProvider logProvider) { this._neoStores = neoStores; this._neoStoreIndexStoreView = neoStoreIndexStoreView; this.Locks = locks; this._labelScanStore = labelScanStore; this._log = logProvider.getLog(this.GetType()); }
//JAVA TO C# CONVERTER TODO TASK: Most Java annotations will not have direct .NET equivalent attributes: //ORIGINAL LINE: @Before public void before() throws org.neo4j.internal.kernel.api.exceptions.KernelException //JAVA TO C# CONVERTER WARNING: Method 'throws' clauses are not available in C#: public virtual void Before() { _graphDb = DbRule.GraphDatabaseAPI; CreateAlistairAndStefanNodes(); OrCreateIds; _neoStores = _graphDb.DependencyResolver.resolveDependency(typeof(RecordStorageEngine)).testAccessNeoStores(); _locks = mock(typeof(LockService)); when(_locks.acquireNodeLock(anyLong(), any())).thenAnswer(invocation => { long?nodeId = invocation.getArgument(0); return(_lockMocks.computeIfAbsent(nodeId, k => mock(typeof(Lock)))); }); when(_locks.acquireRelationshipLock(anyLong(), any())).thenAnswer(invocation => { long?nodeId = invocation.getArgument(0); return(_lockMocks.computeIfAbsent(nodeId, k => mock(typeof(Lock)))); }); _storeView = new NeoStoreIndexStoreView(_locks, _neoStores); _reader = new RecordStorageReader(_neoStores); }