//JAVA TO C# CONVERTER TODO TASK: Most Java annotations will not have direct .NET equivalent attributes: //ORIGINAL LINE: @Test public void shouldSendModifierProtocolRequestsOnInitiation() public virtual void ShouldSendModifierProtocolRequestsOnInitiation() { // when _client.initiate(_channel, _applicationProtocolRepository, _modifierProtocolRepository); // then Stream.of(Org.Neo4j.causalclustering.protocol.Protocol_ModifierProtocolCategory.values()).forEach(modifierProtocolIdentifier => { ISet <string> versions = _modifierProtocolRepository.getAll(modifierProtocolIdentifier, emptyList()).versions(); verify(_channel).write(new ModifierProtocolRequest(modifierProtocolIdentifier.canonicalName(), versions)); }); }
private void SendProtocolRequests(Channel channel, ApplicationSupportedProtocols applicationProtocols, ICollection <ModifierSupportedProtocols> supportedModifierProtocols) { supportedModifierProtocols.forEach(modifierProtocol => { ProtocolSelection <string, ModifierProtocol> protocolSelection = _modifierProtocolRepository.getAll(modifierProtocol.identifier(), modifierProtocol.versions()); channel.Write(new ModifierProtocolRequest(protocolSelection.Identifier(), protocolSelection.Versions())); }); ProtocolSelection <int, Protocol_ApplicationProtocol> applicationProtocolSelection = _applicationProtocolRepository.getAll(applicationProtocols.Identifier(), applicationProtocols.Versions()); channel.WriteAndFlush(new ApplicationProtocolRequest(applicationProtocolSelection.Identifier(), applicationProtocolSelection.Versions())); }