Пример #1
0
        public async Task SetUp()
        {
            _server = new TestAsyncServer();
            _client = new TestClient(TestAsyncServer.GrpcHostname, TestAsyncServer.GrpcPort, 9002);

            await _client.UnaryCallAsync();

            await _client.ClientStreamingCall();

            await _client.ServerStreamingCall();

            await _client.DuplexStreamingCall();

            await _client.UnaryCallAsync(Status.Bad);

            await _client.ClientStreamingCall(Status.Bad);

            await _client.ServerStreamingCall(Status.Bad);

            await _client.DuplexStreamingCall(Status.Bad);
        }