Exemple #1
0
        // Tester om der kan oprettes en ny ansat
        public void TestAddEmployee()
        {
            //Arrange
            Employee _testEmployee3 = new Employee("donesntExist", 1313131313, "heyhvaså", "Olaf");

            _testEmployee3.IsAdmin = true;
            // Act & Assert
            Singleton.Instance.EP.CreateEmployee(_testEmployee3);

            Assert.IsTrue(_testEmployeeViewModel.EmployeeExists(_testEmployee3.Cpr));
        }