Exemplo n.º 1
0
 public void getUserNameTest()
 {
     LoginForm target = new LoginForm(); // TODO: Initialize to an appropriate value
     string expected = string.Empty; // TODO: Initialize to an appropriate value
     string actual;
     actual = target.getUserName();
     Assert.AreEqual(expected, actual);
     Assert.Inconclusive("Verify the correctness of this test method.");
 }
Exemplo n.º 2
0
 public void LoginFormConstructorTest()
 {
     LoginForm target = new LoginForm();
     Assert.Inconclusive("TODO: Implement code to verify target");
 }
Exemplo n.º 3
0
        private void MainForm_Shown(object sender, EventArgs e)
        {
            LoginForm lf = new LoginForm();
            this.AddOwnedForm(lf);
            lf.ShowDialog(this);
            user = lf.getUser();
            if (user == null)
                Application.Exit();
            else
            {
                ssMain.Items.Add("Usuário: " + user.getName());

                DaoSession daoSession = new DaoSession();
                daoSession.openConnection(this.GetType(), "sqlErrorHandler");
                daoSession.createTable(this.GetType(), "sqlErrorHandler");
                daoSession.closeConnection();

                fillDataGridView();
            }
        }