public void Get_With_Failure_Returns_Unauthorized()
        {
            //Arrange
            var userId = Guid.NewGuid();
            var mockHttpAccessorService = HttpContextAccessorMocks.MockReturningUserId(userId);
            var mockTokenService        = TokenServiceMocks.MockReturningGenerateToken(null);

            //Act
            var           tokenController = new TokenController(mockHttpAccessorService, null, mockTokenService);
            IActionResult result          = tokenController.Get();

            //Assert
            Assert.True(result is UnauthorizedResult);
        }
        public void Get_With_Success_Returns_Token()
        {
            //Arrange
            var token  = "abc123";
            var userId = Guid.NewGuid();
            var mockHttpAccessorService = HttpContextAccessorMocks.MockReturningUserId(userId);
            var mockTokenService        = TokenServiceMocks.MockReturningGenerateToken(token);

            //Act
            var tokenController = new TokenController(mockHttpAccessorService, null, mockTokenService);
            var result          = (SuccessResult)tokenController.Get();
            var response        = (SuccessResponse)result.Value;

            //Assert
            Assert.Equal(response.Data, token);
        }