Skip to content

Instantly share code, notes, and snippets.

@dsibinski
Last active November 10, 2020 20:42
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save dsibinski/e0a649e6134b9c6b389d3419db62f92a to your computer and use it in GitHub Desktop.
Save dsibinski/e0a649e6134b9c6b389d3419db62f92a to your computer and use it in GitHub Desktop.
[Test]
public void ApplyBlackFridayDiscount_Should_ApplyBlackFridayDiscount_When_CalledOnNewProduct()
{
// given
var product = CreateProduct(basePrice: 100);
// when
product.ApplyBlackFridayDiscount();
// then
var productShould = new ProductAssert(product);
productShould
.BeAvailable()
.HaveDiscount("Black Friday", 20)
.Cost(80);
}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment