Beispiel #1
0
        public Employee Get(int id)
        {
            var ops      = new EmployeeDirectoryOperations();
            var employee = ops.GetEmpById(id);

            return(employee);
        }
Beispiel #2
0
        public List <Employee> Get(int id)
        {
            var ops      = new EmployeeDirectoryOperations();
            var response = ops.GetEmpByDptID(id);
            var list     = response.Data;

            return(list);
        }
Beispiel #3
0
        public List <Employee> Get()
        {
            var ops      = new EmployeeDirectoryOperations();
            var response = ops.ListAllEmployees();
            var list     = response.Data;

            return(list);
        }
Beispiel #4
0
        public void ListAllEmployeesTest()
        {
            var ops      = new EmployeeDirectoryOperations();
            var response = ops.ListAllEmployees();

            Assert.IsTrue(response.Success);
            Assert.AreEqual(17, response.Data.Count);
        }
Beispiel #5
0
        public void Put(Employee employee)
        {
            var ops = new EmployeeDirectoryOperations();

            ops.UpdateEmployee(employee);
        }
Beispiel #6
0
        public void Delete(int id)
        {
            var ops = new EmployeeDirectoryOperations();

            ops.DeleteEmpById(id);
        }