public void ShouldPassIfValidRequest() { var request = PasswordResetEmailRequest.Example(); var result = _validator.Validate(request); Assert.True(result.IsValid); }
public void ShouldFailIfLinkIsInvalid() { var request = PasswordResetEmailRequest.Example(); request.Link = "test.com"; var result = _validator.Validate(request); Assert.False(result.IsValid); }
public void ShouldFailIfEmailIsNull() { var request = PasswordResetEmailRequest.Example(); request.Email = null; var result = _validator.Validate(request); Assert.False(result.IsValid); }
public void ShouldFailOnInvalidFirstName() { var request = PasswordResetEmailRequest.Example(); request.FirstName = ""; var result = _validator.Validate(request); Assert.False(result.IsValid); }