コード例 #1
0
 public void ValidateUsername_Success()
 {
     JwtAuthenticationService.ValidateUsername("*****@*****.**");
 }
コード例 #2
0
 public void ValidateUsername_NoEmail()
 {
     Assert.Throws <UnprocessableEntityException>(
         () => JwtAuthenticationService.ValidateUsername("This is not a username"));
 }