예제 #1
0
        public void InvalidCommand()
        {
            var command = new CreateAlunoCommand("Antonio Fracisco da Silva", "00000000000", DateTime.Now, "*****@*****.**", "0124");

            command.Validate();
            Assert.AreEqual(command.Valid, true);
        }
예제 #2
0
        public void ValidCommand()
        {
            var command = new CreateAlunoCommand("", "", DateTime.Now, "", "");

            command.Validate();
            Assert.AreEqual(command.Valid, false);
        }