public async Task Test_the_count_of_named_brands_of_used_cars() { // Act var usedCars = await _catelogueHttpClient.GetCategories("UsedCars"); // Assert usedCars.Subcategories.Count(cat => !string.IsNullOrEmpty(cat.Name)).Should().Be(76); }
public async Task ThenIAmAbleToSeeAListOfVehicleBrands() { var optionsCount = _advancedSearchPage.AdvancedSearchPanel.GetVehicleBrands().Count(); optionsCount.Should().BeGreaterThan(0); (await _catelogueHttpClient.GetCategories("UsedCars")) .Subcategories.Count().Should().Be(optionsCount); }