Esempio n. 1
0
        public void AdminLogin()
        {
            CtrAdmin ctrAdminObj = new CtrAdmin();
            DataSet ds = GetAdminDataSet("admin3", "admin3");
            ctrAdminObj.UpdateAdmins(ds);

            int expected = 1;
            int actual = ctrAdminObj.Login("admin3", "admin3");

            Assert.AreEqual(expected, actual);
        }
Esempio n. 2
0
        //ADMIN
        public int AdminLogin(string username, string password)
        {
            ctrAdminObj = new CtrAdmin();

            //lock (LockObject)
            //{
                Console.WriteLine("STARTED admin login | Thread: " + Thread.CurrentThread.ManagedThreadId.ToString() + " | Time: " + DateTime.Now);
                Thread.Sleep(3000);

                return ctrAdminObj.Login(username, password);
            //}
        }