public void ReturnNullIfPasswordDoesntMatch() { ICustomSignInService service = SignInServiceWithMockedAdminAccount(); string jwtToken = service.GetJwtToken("someUser", "wrongPassword"); Assert.Null(jwtToken); }
public void ReturnJwtTokenIfPasswordMatches() { ICustomSignInService service = SignInServiceWithMockedAdminAccount(); string jwtToken = service.GetJwtToken("someUser", "admin123"); Assert.Contains(".", jwtToken); }