Exemple #1
0
        public void CommandFail()
        {
            var command = new OwnerCreateCommand(name: new Name(firstName: "", lastName: "")
                                                 , address: "", fone: "", new Document(documentNumber: "", documentType: EDocumentType.CPF)
                                                 , DateTime.Now
                                                 );

            Assert.AreEqual(false, command.Validate());
        }
Exemple #2
0
        public void CommandValidade()
        {
            var command = new OwnerCreateCommand(name: new Name(firstName: "User", lastName: "Name")
                                                 , address: "Rua 1234", fone: "12344", new Document(documentNumber: "35724768011"
                                                                                                    , documentType: EDocumentType.CPF)
                                                 , DateTime.Now
                                                 );

            Assert.AreEqual(true, command.Validate());
        }