Exemple #1
0
        private void btnChangeRole_Click(object sender, EventArgs e)
        {
            Admin_panel ap = new Admin_panel();

            ap.ShowDialog();

            ap.Close();
        }
 public void Initialize()
 {
     admin       = new Admin_panel();
     admin.films = mockDB.Object;
     mockDB.Setup(m => m.Save()).Returns(1);
     mockDB.Setup(m => m.GetUsers).Returns(new List <User> {
         new User()
         {
             IdUser = 16
         }
     });
 }