public async Task ClientWithoutParentChainStart_Test() { var chainId = ChainHelper.GetChainId(1); await Server.StartAsync(5000); await _grpcCrossChainClientNodePlugin.StartAsync(chainId); var clients = _crossChainClientProvider.GetAllClients(); clients.ShouldBeEmpty(); Server.Dispose(); }
public async Task ClientStart_Test() { var chainId = ChainHelper.GetChainId(1); var remoteChainId = ChainOptions.ChainId; await Server.StartAsync(5000); await _grpcCrossChainClientNodePlugin.StartAsync(chainId); var clients = _crossChainClientProvider.GetAllClients(); clients[0].RemoteChainId.ShouldBe(remoteChainId); Server.Dispose(); }
public async Task StartAsync(int chainId) { await _grpcServePlugin.StartAsync(chainId); await _grpcClientPlugin.StartAsync(chainId); }