//JAVA TO C# CONVERTER TODO TASK: Most Java annotations will not have direct .NET equivalent attributes: //ORIGINAL LINE: @Test public void shouldResolveMasterClientFactory() public virtual void ShouldResolveMasterClientFactory() { // Given LogEntryReader <ReadableClosablePositionAwareChannel> logEntryReader = new VersionAwareLogEntryReader <ReadableClosablePositionAwareChannel>(); MasterClientResolver resolver = new MasterClientResolver(NullLogProvider.Instance, Org.Neo4j.com.storecopy.ResponseUnpacker_Fields.NoOpResponseUnpacker, mock(typeof(InvalidEpochExceptionHandler)), 1, 1, 1, 1024, Suppliers.singleton(logEntryReader)); LifeSupport life = new LifeSupport(); try { life.Start(); MasterClient masterClient1 = resolver.Instantiate("cluster://localhost", 44, null, new Monitors(), StoreId.DEFAULT, life); assertThat(masterClient1, instanceOf(typeof(MasterClient320))); } finally { life.Shutdown(); } IllegalProtocolVersionException illegalProtocolVersionException = new IllegalProtocolVersionException(MasterClient214.PROTOCOL_VERSION.ApplicationProtocol, MasterClient310.PROTOCOL_VERSION.ApplicationProtocol, "Protocol is too modern"); // When resolver.Handle(illegalProtocolVersionException); // Then life = new LifeSupport(); try { life.Start(); MasterClient masterClient2 = resolver.Instantiate("cluster://localhost", 55, null, new Monitors(), StoreId.DEFAULT, life); assertThat(masterClient2, instanceOf(typeof(MasterClient214))); } finally { life.Shutdown(); } }
internal F320(MasterClientResolver outerInstance, LogProvider logProvider, int readTimeoutMillis, int lockReadTimeout, int maxConcurrentChannels, int chunkSize) : base(logProvider, readTimeoutMillis, lockReadTimeout, maxConcurrentChannels, chunkSize) { this._outerInstance = outerInstance; }