private async Task <HmacAuthenticationHandler> BuildHandlerAsync()
        {
            var authHandler = new HmacAuthenticationHandler(_hmacRequirement.Object, _loggerFactory.Object, _urlEncoder.Object, _systemClock.Object, _optionsProvider.Object, _hashProviderFactory.Object, _signatureProvider.Object);
            await authHandler.InitializeAsync(new AuthenticationScheme(Constants.SecurityScheme, "HMAC", typeof(HmacAuthenticationHandler)), _httpContext);

            return(authHandler);
        }
 private async Task InitializeHandler(HttpContext context)
 {
     await handler.InitializeAsync(new AuthenticationScheme(HmacAuthentication.AuthenticationScheme, HmacAuthentication.AuthenticationScheme, typeof(HmacAuthenticationHandler)), context);
 }