Last active
November 10, 2020 20:42
-
-
Save dsibinski/e0a649e6134b9c6b389d3419db62f92a to your computer and use it in GitHub Desktop.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
[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