public void Dado_um_usuario_com_role_invalido() { var command = new CriarUsuarioCommand("Fulano de tal", "*****@*****.**", "123456", "gerente"); command.Validate(); Assert.IsTrue(command.Invalid); }
public void Dado_um_usuario_com_nome_invalido() { var command = new CriarUsuarioCommand("Ful", "*****@*****.**", "123456", "candidato"); command.Validate(); Assert.IsTrue(command.Invalid); }
public void Dado_um_usuario_com_senha_invalida() { var command = new CriarUsuarioCommand("Fulano de tal", "*****@*****.**", "123", "candidato"); command.Validate(); Assert.IsTrue(command.Invalid); }