Exemplo n.º 1
0
        public async void GetBooksTest()
        {
            var client = new IntelData.IntelDataClient(_channel);
            var ret    = await client.GetIntelAsync(new Keyword()
            {
                Name = "Trump"
            });

            client.Should().NotBeNull();
            ret.IntelData.Should().NotBeNull();
        }
Exemplo n.º 2
0
        static async Task Main(string[] args)
        {
            var channel = GrpcChannel.ForAddress("https://localhost:5001");
            var client  = new IntelData.IntelDataClient(channel);
            var ret     = await client.GetIntelAsync(new Keyword()
            {
                Name = "Trump"
            });

            foreach (var intel in ret.IntelData)
            {
                Console.WriteLine(intel.Message);
            }


            Console.WriteLine("end");
            Console.ReadKey();
        }