예제 #1
0
            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);
            }
예제 #2
0
 public void EmployeeApiReturnsData()
 => ProcessedCommand.Should().BeEquivalentTo(Employee.ToString());