Exemplo n.º 1
0
        public async Task <TelnyxList <FQDN> > ListFQDNsAsync()
        {
            var options = new FQDNListOptions
            {
                PageNumber = 1,
                PageSize   = 2,
            };
            var conns = await fQDNService.ListFQDNsAsync(options);

            Console.WriteLine("FQDN List Async: " + JsonConvert.SerializeObject(conns) + "\n");
            return(conns);
        }
Exemplo n.º 2
0
        public FQDNSTest(MockHttpClientFixture mockHttpClientFixture)
            : base(mockHttpClientFixture)
        {
            this.service = new FQDNService();

            this.listOptions = new FQDNListOptions()
            {
                ConnectionId  = "Connection001",
                Fqdn          = "Fqdn",
                Port          = 1302,
                DNSRecordType = "DNSRecordType"
            };
            this.createOptions = new UpsertFQDNOptions()
            {
                ConnectionId  = "Connection001",
                Fqdn          = "example.com",
                Port          = 1303,
                DNSRecordType = "DNSRecordType"
            };
        }