Exemple #1
0
 private void AssignRandomEmployeeType(Employee employee)
 {
     employee.Name = _names.OrderBy(x => Guid.NewGuid()).First();
 }
        public void LasttNameTest()
        {
            Employee e = new Employee(null, "perenimi", 0);

            Assert.AreEqual("perenimi", e.LastName);
        }
        public void SalaryTest()
        {
            Employee e = new Employee(null, null, 100);

            Assert.AreEqual(100, e.Salary);
        }
        public void FirstNameTest()
        {
            Employee e = new Employee("eesnimi", null, 0);

            Assert.AreEqual("eesnimi", e.FirstName);
        }