//JAVA TO C# CONVERTER TODO TASK: Most Java annotations will not have direct .NET equivalent attributes: //ORIGINAL LINE: @Before public void setUp() public virtual void SetUp() { //JAVA TO C# CONVERTER TODO TASK: Most Java annotations will not have direct .NET equivalent attributes: //ORIGINAL LINE: @SuppressWarnings("unchecked") org.neo4j.kernel.ha.DelegateInvocationHandler<org.neo4j.kernel.ha.UpdatePuller> invocationHandler = mock(org.neo4j.kernel.ha.DelegateInvocationHandler.class); DelegateInvocationHandler <UpdatePuller> invocationHandler = mock(typeof(DelegateInvocationHandler)); PullerFactory pullerFactory = mock(typeof(PullerFactory)); _slaveUpdatePuller = mock(typeof(SlaveUpdatePuller)); when(pullerFactory.CreateSlaveUpdatePuller()).thenReturn(_slaveUpdatePuller); when(invocationHandler.setDelegate(_slaveUpdatePuller)).thenReturn(_slaveUpdatePuller); _modeSwitcher = new UpdatePullerSwitcher(invocationHandler, pullerFactory); }
internal SwitchToSlave(HaIdGeneratorFactory idGeneratorFactory, Monitors monitors, RequestContextFactory requestContextFactory, DelegateInvocationHandler <Master> masterDelegateHandler, ClusterMemberAvailability clusterMemberAvailability, MasterClientResolver masterClientResolver, Monitor monitor, PullerFactory pullerFactory, UpdatePuller updatePuller, System.Func <Slave, SlaveServer> slaveServerFactory, Config config, LogService logService, PageCache pageCache, DatabaseLayout databaseLayout, System.Func <TransactionIdStore> transactionIdStoreSupplier, System.Func <DatabaseTransactionStats> transactionStatsSupplier, System.Func <NeoStoreDataSource> neoDataSourceSupplier, StoreCopyClient storeCopyClient) { this._idGeneratorFactory = idGeneratorFactory; this.Monitors = monitors; this.RequestContextFactory = requestContextFactory; this._masterDelegateHandler = masterDelegateHandler; this._clusterMemberAvailability = clusterMemberAvailability; this._masterClientResolver = masterClientResolver; this.UserLog = logService.GetUserLog(this.GetType()); this.MsgLog = logService.GetInternalLog(this.GetType()); this.Monitor = monitor; this._updatePullerFactory = pullerFactory; this.UpdatePuller = updatePuller; this._slaveServerFactory = slaveServerFactory; this.Config = config; this.PageCache = pageCache; this.DatabaseLayout = databaseLayout; this._transactionIdStoreSupplier = transactionIdStoreSupplier; this._transactionStatsSupplier = transactionStatsSupplier; this._neoDataSourceSupplier = neoDataSourceSupplier; this._storeCopyClient = storeCopyClient; }
public UpdatePullerSwitcher(DelegateInvocationHandler <UpdatePuller> @delegate, PullerFactory pullerFactory) : base(@delegate) { this._pullerFactory = pullerFactory; }