﻿using System;
using Xunit;

using OvhNet.Tests.Helpers;

namespace OvhNet.Tests
{
    public class Ips
    {
        private readonly Ovh _ovh;

        public Ips()
        {
            _ovh = new ConfigHelper().GetInstance();
        }

        [Fact]
        public async void CanGetListOfIps()
        {
            var result = await _ovh.Get<string[]>("/ip");
            Assert.NotNull(result);
        }

        [Fact]
        public async void CanGetFilteredListOfIps()
        {
            var result = await _ovh.Get<string[]>("/ip?description=test");
            Assert.NotNull(result);
        }
    }
}
