Example #1
0
        public void Update()
        {
            int expected = 1;

            Bug_Tracker.Forms.Model.UserTable us = new Bug_Tracker.Forms.Model.UserTable()
            {
                password = "******",
                user_id  = 7
            };
            Bug_Tracker.Forms.DAO.UserDAO user = new Bug_Tracker.Forms.DAO.UserDAO();
            int result = user.Update(us);

            Assert.AreEqual(expected, result);
        }
Example #2
0
        public void InsertUser()
        {
            int expected = 1;

            Bug_Tracker.Forms.Model.UserTable us = new Bug_Tracker.Forms.Model.UserTable()
            {
                fname    = "Savnjeev",
                lname    = "Thapa",
                contact  = "4583456",
                address  = "Banepa",
                username = "******",
                password = "******",
                type_id  = 1
            };
            Bug_Tracker.Forms.DAO.UserDAO user = new Bug_Tracker.Forms.DAO.UserDAO();
            int result = user.Insert(us);

            Assert.AreEqual(expected, result);
        }