Exemplo n.º 1
0
        public void ValidateNameFailed()
        {
            var validatepeople = new People()
            {
                Id       = 2,
                Name     = "",
                Document = "05765622391"
            };

            Assert.True(validator.Validate(validatepeople).IsValid);
        }
Exemplo n.º 2
0
        public void ValidateDocumentFailed()
        {
            var validatepeople = new People()
            {
                Id       = 2,
                Name     = "nome teste",
                Document = "5622391"
            };

            Assert.True(validator.Validate(validatepeople).IsValid);
        }
Exemplo n.º 3
0
        public void ValidateNameSuccess()
        {
            var validatepeople = new People()
            {
                Id       = 2,
                Name     = "nome teste",
                Document = "05765622391"
            };

            Assert.True(validator.Validate(validatepeople).IsValid);
        }