Esempio n. 1
0
        public void Test_Sort_Salary_Asc()
        {
            var result = _sut.SortBySalaryAsc(_employees);

            VerifyLogger(LogLevel.Information, "Sort by salary ascending started");
            VerifyLogger(LogLevel.Information, "Sort by salary ascending finished");

            Assert.Equal("John Doe", result[0].Name);
        }
Esempio n. 2
0
        public IList <Employee> SortBySalaryAsc([FromBody] GetRequest request)
        {
            var employees = _employeeSortUtil.SortBySalaryAsc(request?.Employees);

            return(employees);
        }