Exemplo n.º 1
0
        public void GetAll_GetsAllKeys()
        {
            Uri firstUri = null;

            using (new HttpResultsFilter
            {
                StringResultFn = (request, s) =>
                {
                    if (firstUri == null)
                    {
                        firstUri = request.RequestUri;
                    }
                    return(ConsulResultString);
                }
            })
            {
                appSettings.GetAll();

                var expected = new Uri($"{DefaultUrl}?keys");

                firstUri.Should().Be(expected);
            }
        }
Exemplo n.º 2
0
 public void GetAll_CallsCorrectEndpoint()
 {
     VerifyEndpoint(() => appSettings.GetAll(), key: null);
 }