using System;
using System.Net;

namespace NuGet.Protocol.Core.v3.Tests
{
    internal class TestProxy : IWebProxy
    {
        private readonly Uri _proxyAddress;

        public TestProxy(Uri proxyAddress)
        {
            _proxyAddress = proxyAddress;
        }

        public ICredentials Credentials { get; set; }

        public Uri GetProxy(Uri destination) => _proxyAddress;

        public bool IsBypassed(Uri host) => false;
    }
}
