public void TestClientEntreprise_unClientEntrepriseVideEstInvalide()
 {
     ClientEntreprise client = new ClientEntreprise();
     Assert.IsFalse(client.estValide());
     ListeMessagesValidation validation = client.donnerLesMessagesDeValidation();
     Assert.AreEqual(8, validation.Count());
     Assert.IsTrue(validation.Any(x => x == VALIDATION.REQUIS_NOM));
     Assert.IsTrue(validation.Any(x => x == VALIDATION.REQUIS_PRENOM));
     Assert.IsTrue(validation.Any(x => x == VALIDATION.REQUIS_NUMERO_TELEPHONE));
     Assert.IsTrue(validation.Any(x => x == VALIDATION.REQUIS_NUMERO_SIRET));
     Assert.IsTrue(validation.Any(x => x == VALIDATION.REQUIS_DENOMINATION));
     Assert.IsTrue(validation.Any(x => x == VALIDATION.REQUIS_VOIE));
     Assert.IsTrue(validation.Any(x => x == VALIDATION.REQUIS_CODE_POSTAL));
     Assert.IsTrue(validation.Any(x => x == VALIDATION.REQUIS_COMMUNE));
 }
 public void TestClientEntreprise_unClientAvecDeMauvaisesDonnéesEstInvalide()
 {
     ClientEntreprise client = new ClientEntreprise();
     ClientEntrepriseMessageMock message = new ClientEntrepriseMessageMock();
     message.Nom = TEST.CHAINEx257;
     message.Prénom = TEST.CHAINEx257;
     message.AdresseEmail = TEST.CHAINEx257;
     message.Téléphone = TEST.CHAINEx257;
     message.IdEntreprise = _entreprise.Id.ToString();
     client.modifier(message);
     Assert.IsFalse(client.estValide());
     ListeMessagesValidation validation = client.donnerLesMessagesDeValidation();
     Assert.AreEqual(4, validation.Count());
     Assert.IsTrue(validation.Any(x => x == VALIDATION.LONGUEUR_NOM));
     Assert.IsTrue(validation.Any(x => x == VALIDATION.LONGUEUR_PRENOM));
     Assert.IsTrue(validation.Any(x => x == VALIDATION.INVALIDE_NUMERO_TELEPHONE));
     Assert.IsTrue(validation.Any(x => x == VALIDATION.LONGUEUR_ADRESSE_EMAIL));
 }