示例#1
0
 public void TestRegistryManager()
 {
     //Arange
     work.RegistryManager("Log", "0000");
     //Act
     BLL.Managment.ManagersManagment managers = new BLL.Managment.ManagersManagment();
     managers.SaveChanges();
     managers.Load();
     // Assert
     Assert.AreEqual("Log", managers.GetList().ElementAt(managers.GetList().Count - 1).Email);
 }
示例#2
0
        public void TestRemoveManager()
        {
            //Arange
            BLL.Managment.ManagersManagment managers = new BLL.Managment.ManagersManagment();
            Manager manager = new Manager("Oksi", "Buba");

            managers.Insert(manager);
            managers.SaveChanges();
            managers.Load();
            //Act
            managers.Delete(manager);
            // Assert
            if (managers.GetList().Count != 0)
            {
                Assert.AreNotEqual(manager, managers.GetList().ElementAt(managers.GetList().Count - 1));
            }
        }