示例#1
0
        public void ReturnNullIfPasswordDoesntMatch()
        {
            ICustomSignInService service = SignInServiceWithMockedAdminAccount();

            string jwtToken = service.GetJwtToken("someUser", "wrongPassword");

            Assert.Null(jwtToken);
        }
示例#2
0
        public void ReturnJwtTokenIfPasswordMatches()
        {
            ICustomSignInService service = SignInServiceWithMockedAdminAccount();

            string jwtToken = service.GetJwtToken("someUser", "admin123");

            Assert.Contains(".", jwtToken);
        }