Ejemplo n.º 1
0
        public void FunctionBase_ValidateTokenAsync_ShouldHandleBadTokenStrings(string tokenValue)
        {
            userServiceMock.Reset();

            var request = CreateHttoRequestWithAuth(tokenValue);

            var result = functionBase.ValidateTokenAsync(request).Result;

            result.Should().BeNull();
            userServiceMock.Verify(x => x.GetUserData(It.IsAny <string>()), Times.Never);
        }