public async Task TestLink(string url, bool expectRequest)
        {
            bool isGood;
            bool gotRequest = false;

            try
            {
                await ValidateLinkEndpoint.CheckLink(url, "0.0.0.0", null, connectionUrl =>
                {
                    // check the correct URL is being requested
                    Assert.Equal(new Uri(url).ToString(), connectionUrl.ToString());

                    gotRequest = true;
                });

                isGood = true;
            }
            catch (HttpError)
            {
                isGood = false;
            }

            Assert.Equal(expectRequest, gotRequest);
            Assert.Equal(expectRequest, isGood);
        }
        public async Task TestLiveLink(string url, bool expectGood)
        {
            bool isGood;

            try
            {
                await ValidateLinkEndpoint.CheckLink(url, "0.0.0.0", "Test/1.0");

                isGood = true;
            }
            catch (HttpError)
            {
                isGood = false;
            }

            Assert.Equal(expectGood, isGood);
        }