コード例 #1
0
        public async Task TestHealth_Negative()
        {
            Action act = async() =>
            {
                //todo: inject some information that will duplicate a timeout.
                var client = new HealthzEndpoint(_baseConfiguration, _authenticationClient,
                                                 GetDefaultSezzleHttpClient());

                //there are no parameters
                var request = new HealthCheckRequest()
                {
                };

                var response = await client.CheckHealthAsync(request);
            };

            //assert
            act.Should().Throw <Exception>();
        }