public async Task <List <Employee> > GetEmployeeByColumn(string columnName, string searchParam, string sortOrder)
        {
            Thread.Sleep(TimeSpan.FromSeconds(5));
            List <Employee> retEmployees = new List <Employee>();
            var             employees    = await employeeLookup.findEmployeeByColumn(columnName, searchParam, sortOrder);

            retEmployees = mapper.Map <List <Employee> >(employees);
            return(retEmployees);
        }
Esempio n. 2
0
        public async Task <int> GetEmployeeByColumn_ReturnsSearchedEmployeesFirstName()
        {
            var result = await _mockBus.findEmployeeByColumn("First Name", "a", "asc");

            result.ToList().ForEach(x => Assert.Contains("a", x.firstName));
            return(1);
        }