Skip to content

Instantly share code, notes, and snippets.

@Kevin-Bronsdijk
Created August 16, 2020 04:56
Show Gist options
  • Save Kevin-Bronsdijk/f30365575b979a83274c331590b66b9c to your computer and use it in GitHub Desktop.
Save Kevin-Bronsdijk/f30365575b979a83274c331590b66b9c to your computer and use it in GitHub Desktop.
[Test]
public void Example3_GetProducts_WhenPassingAValidCategory_ThenShouldReturnProducts()
{
Given.AConcreteProductCatalogService.WhenBasedOnScenario(
Given.AProductCatalogRepository.WhenReturningProductsForCategory("ElectronicDevices"))
.When().GetProducts(Category.ElectronicDevices)
.Then().Should().NotBeNull().And.HaveCountGreaterThan(0);
}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment