Exemplo n.º 1
0
        public void ShouldPassIfValidRequest()
        {
            var request = PasswordResetEmailRequest.Example();

            var result = _validator.Validate(request);

            Assert.True(result.IsValid);
        }
Exemplo n.º 2
0
        public void ShouldFailIfLinkIsInvalid()
        {
            var request = PasswordResetEmailRequest.Example();

            request.Link = "test.com";

            var result = _validator.Validate(request);

            Assert.False(result.IsValid);
        }
Exemplo n.º 3
0
        public void ShouldFailIfEmailIsNull()
        {
            var request = PasswordResetEmailRequest.Example();

            request.Email = null;

            var result = _validator.Validate(request);

            Assert.False(result.IsValid);
        }
Exemplo n.º 4
0
        public void ShouldFailOnInvalidFirstName()
        {
            var request = PasswordResetEmailRequest.Example();

            request.FirstName = "";

            var result = _validator.Validate(request);

            Assert.False(result.IsValid);
        }