Ejemplo n.º 1
0
        public void DeveRetornarEscolaTelefoneInvalido()
        {
            school = SchoolFaker.Gerar();

            var vO = school.Generate();

            add = new Domain.Entities.School(vO.Name, vO.Document, vO.Address, "");

            Assert.True(add.Invalid);
        }
Ejemplo n.º 2
0
        public void DeveRetornarEscolaNomeTamanhoMinimoInvalido()
        {
            school = SchoolFaker.Gerar();

            var vO = school.Generate();

            add = new Domain.Entities.School("a", vO.Document, vO.Address, vO.Phone);

            Assert.True(add.Invalid);
        }
Ejemplo n.º 3
0
        public void DeveRetornarEscolaValida()
        {
            school = SchoolFaker.Gerar();

            var vO = school.Generate();

            add = new Domain.Entities.School(vO.Name, vO.Document, vO.Address, vO.Phone);

            Assert.True(add.Valid);
        }
Ejemplo n.º 4
0
        public void DeveRetornarEscolaNomeTamanhoMaximoInvalido()
        {
            school = SchoolFaker.Gerar();

            var vO = school.Generate();

            int    i      = 0;
            string length = "";

            while (i < 50)
            {
                length += "teste";
                i++;
            }

            add = new Domain.Entities.School(vO.Name + length, vO.Document, vO.Address, vO.Phone);

            Assert.True(add.Invalid);
        }