Exemple #1
0
        public async Task <TelnyxList <IP> > ListIPsAsync()
        {
            var options = new IPListOptions
            {
                PageNumber = 1,
                PageSize   = 2,
            };
            var conns = await ipService.ListIPsAsync(options);

            Console.WriteLine("IP List Async: " + JsonConvert.SerializeObject(conns) + "\n");
            return(conns);
        }
Exemple #2
0
        public IPTest(MockHttpClientFixture mockHttpClientFixture)
            : base(mockHttpClientFixture)
        {
            this.service = new IPService();

            this.listOptions = new IPListOptions()
            {
                ConnectionId = "Connection001",
                IPAddress    = "192.168.0.1",
                Port         = 4455
            };
            this.createOptions = new UpsertIPOptions()
            {
                ConnectionId = "Connection001",
                IPAddress    = "192.168.0.1",
                Port         = 4455
            };
        }