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 ThenIShouldOnlyHaveNResults(int rows) { ApplianceResult.Should().HaveCount(rows, "because we asked for a subset of the data"); }
public void ThenIShouldGetNoResults() { ApplianceResult.Should().BeEmpty(); }
public void ThenTheyShouldBeASubsetOfAllData() { ApplianceResult.Should().BeEmptyOrSubsetOf(ApplianceTableData); }
public void ThenIShouldGetAllItems() { ApplianceResult.Should().BeEquivalentTo(ApplianceTableData); }