public void trouverRole() { string role; role = ControlerTest.findRole(1); Assert.AreEqual("Administrateur", role); }
private void PanelView_Load(object sender, EventArgs e) { MessageBox.Show("L'id employe est " + this.id_employe + " L'id societe est " + this.id_societe); this.MaximumSize = new Size(815, 665); this.MaximizeBox = false; this.ControlBox = false; this.Text = "Pannel de " + controler.findFirstName(this.id_employe); int droit = controler.defineRole(controler.findRole(this.id_employe)); if (droit == 1) { infoSoc.Visible = true; } else { infoSoc.Visible = false; } }