public void Test_Sort_Salary_Desc() { var result = _sut.SortBySalaryDesc(_employees); VerifyLogger(LogLevel.Information, "Sort by salary descending started"); VerifyLogger(LogLevel.Information, "Sort by salary descending finished"); Assert.Equal("Joe Bloggs", result[0].Name); }
public IList <Employee> SortBySalaryDesc([FromBody] GetRequest request) { var employees = _employeeSortUtil.SortBySalaryDesc(request?.Employees); return(employees); }