public void AsItemEndpointUrl_Should_Return_Valid_IndexUri(
            [Values("1", "22015", "32043")] int id
            )
        {
            var endpoint = new RestApiConfig();
            var itemUrl  = endpoint.AsItemEndpointUrl(id);

            Assert.AreEqual(itemUrl.AbsoluteUri, $"https://hacker-news.firebaseio.com/v0/item/{id}.json");
        }
        public void AsItemEndpointUrl_With_Id_Less_Than_One_Should_Throw_ArgumentOutOfRangeException(
            [Values("0", "-1", "-32043")] int negativeId)
        {
            var endpoint = new RestApiConfig();

            ArgumentOutOfRangeException ex = Assert.Throws <ArgumentOutOfRangeException>(
                delegate { endpoint.AsItemEndpointUrl(negativeId); });

            Assert.That(ex.ParamName, Is.EqualTo("id"));
        }