Exemplo n.º 1
0
        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);
        }
Exemplo n.º 2
0
        public IList <Employee> SortBySalaryDesc([FromBody] GetRequest request)
        {
            var employees = _employeeSortUtil.SortBySalaryDesc(request?.Employees);

            return(employees);
        }