public void EmployeeApiReturnsData() { var processedString = EmployeeList.Aggregate("", (current, employee) => current + ($"ID: {employee.Id}\r\n" + $"Name: {employee.Name}\r\n" + $"Start Date: {employee.StartDate:dd/MM/yyyy}\r\n\r\n")); ProcessedCommand.Should().BeEquivalentTo(processedString); }
public void EmployeeApiReturnsData() => ProcessedCommand.Should().BeEquivalentTo(Employee.ToString());