public void ThenIShouldOnlyGetXColoredAppliances(string color) { var expected = ApplianceTableData .Where(app => app.Color.Equals(color, StringComparison.OrdinalIgnoreCase)); ApplianceResult.Should().BeEmptyOrSubsetOf(expected); }
public void ThenTheRecordsShouldBeReverseSortedBy(string column) { var expected = ApplianceTableData.OrderByDescending(GetPropertyLambda(column)); ApplianceResult.Should().Equal(expected); }
public void ThenIShouldOnlyGetApplianceWithMoreThanNAmps(int amps) { var expected = ApplianceTableData.Where(app => app.Amps > amps); expected.Should().BeEmptyOrSubsetOf(expected); }