Beispiel #1
0
        public void checkDelManager()
        {
            managers form = new managers();

            //add 3 records
            managers.dataManagers.Rows.Add("1", "Petya", "8888", "Менеджер", "petya", "22 мая");
            managers.dataManagers.Rows.Add("2", "Vasya", "6666", "Менеджер", "vas", "22 мая");
            managers.dataManagers.Rows.Add("3", "Egor", "3333", "Менеджер", "egor", "22 мая");

            ManagerTypeCol coll = new ManagerTypeCol();
            ManagerFactory fact = new ManagerFactory();
            int            a    = ManagerFactory.count();

            ManagerFactory.DeleteManager(1);
            Assert.AreEqual(a - 1, ManagerFactory.count());
        }