public void IfTheAuthorizationHeaderIsNotSetTheCanUseMethodMustReturnFalse()
        {
            // Arrange
            var handler     = new EasyAuthForAuthorizationTokenService(this.loggerFactory.CreateLogger <EasyAuthForAuthorizationTokenService>());
            var httpcontext = new DefaultHttpContext();
            // Act
            var result = handler.CanHandleAuthentification(httpcontext);

            // Arrange
            Assert.False(result);
        }
        public void IfTheAuthorizationHeaderIsSetTheCanUseMethodMustReturnTrue()
        {
            // Arrange
            var handler     = new EasyAuthForAuthorizationTokenService(this.loggerFactory.CreateLogger <EasyAuthForAuthorizationTokenService>());
            var httpcontext = new DefaultHttpContext();

            httpcontext.Request.Headers.Add("Authorization", "Bearer sgölkfsögölfsg");
            // Act
            var result = handler.CanHandleAuthentification(httpcontext);

            // Arrange
            Assert.True(result);
        }