//JAVA TO C# CONVERTER TODO TASK: Most Java annotations will not have direct .NET equivalent attributes: //ORIGINAL LINE: @Test public void shouldNotifyCacheAccessOnHowManyUpdatesOnCountsWeHadSoFar() throws Exception //JAVA TO C# CONVERTER WARNING: Method 'throws' clauses are not available in C#: public virtual void ShouldNotifyCacheAccessOnHowManyUpdatesOnCountsWeHadSoFar() { // GIVEN //JAVA TO C# CONVERTER WARNING: The original Java variable was marked 'final': //ORIGINAL LINE: final org.neo4j.kernel.impl.store.counts.CountsTracker tracker = mock(org.neo4j.kernel.impl.store.counts.CountsTracker.class); CountsTracker tracker = mock(typeof(CountsTracker)); //JAVA TO C# CONVERTER WARNING: The original Java variable was marked 'final': //ORIGINAL LINE: final CountsAccessor_Updater updater = mock(CountsAccessor_Updater.class); CountsAccessor_Updater updater = mock(typeof(CountsAccessor_Updater)); when(tracker.Apply(anyLong())).thenReturn(updater); //JAVA TO C# CONVERTER WARNING: The original Java variable was marked 'final': //ORIGINAL LINE: final CountsStoreBatchTransactionApplier applier = new CountsStoreBatchTransactionApplier(tracker, org.neo4j.storageengine.api.TransactionApplicationMode.INTERNAL); CountsStoreBatchTransactionApplier applier = new CountsStoreBatchTransactionApplier(tracker, TransactionApplicationMode.INTERNAL); // WHEN using (TransactionApplier txApplier = applier.StartTx(new TransactionToApply(null, 2L))) { txApplier.VisitNodeCountsCommand(new Command.NodeCountsCommand(StatementConstants.ANY_LABEL, 1)); } // THEN verify(updater, times(1)).incrementNodeCount(StatementConstants.ANY_LABEL, 1); }
public CountsAccessor_Initializer(CountsAccessor_Updater updater, CountsAccessor_IndexStatsUpdater stats) { this.Updater = updater; this.Stats = stats; }
public CountsStoreTransactionApplier(TransactionApplicationMode mode, CountsAccessor_Updater countsUpdater) { this._mode = mode; this._countsUpdater = countsUpdater; }