Пример #1
0
        public Login(Front f, User u)
        {
            InitializeComponent();

            front = f;
            user = u;
        }
Пример #2
0
        public Front()
        {
            InitializeComponent();

            user = new User();
            Login();
        }
Пример #3
0
 public void LoginTest4()
 {
     User user = new User();
     user.Login("schan", "jake");
     Assert.IsNull(User.ID);
     Assert.IsNull(user.Role);
     Assert.IsNull(user.FirstName);
     Assert.IsNull(user.LastName);
 }
Пример #4
0
 public void LoginTest1()
 {
     User user = new User();
     user.Login("schan", "mims");
     Assert.IsNotNull(User.ID);
     Assert.IsNotNull(user.Role);
     Assert.IsNotNull(user.FirstName);
     Assert.IsNotNull(user.LastName);
 }
Пример #5
0
 public void LoginTest3()
 {
     User user = new User();
     user.Login("schan", "");
 }
Пример #6
0
 public void LoginTest2()
 {
     User user = new User();
     user.Login("", "");
 }