public void ThenTheFavouriteListShouldBeEmpty() { FavouriteList favouriteList = _favouriteService.GetFavouriteList(_userId, _favouriteListId); favouriteList.Should().NotBeNull(); favouriteList.FavouriteListId.Should().Be(_favouriteListId); favouriteList.ProductIds.Should().BeNull(); }
public void ThenTheFavouriteListShouldBeEmpty() { if (FavouriteListSteps._scenarioContext.ScenarioInfo.Tags.ToString().Contains("ignore")) { var unitTestRuntimeProvider = (IUnitTestRuntimeProvider) _scenarioContext.GetBindingInstance((typeof(IUnitTestRuntimeProvider))); unitTestRuntimeProvider.TestIgnore("ignored"); } else { FavouriteList favouriteList = _favouriteService.GetFavouriteList(_userId, _favouriteListId); favouriteList.Should().NotBeNull(); favouriteList.FavouriteListId.Should().Be(_favouriteListId); favouriteList.ProductIds.Should().BeNull(); } }