public void Validate_ValidateStoreIncorrect_ReturnsFalse() { policy = new PolicyLeafMaximumAmount(0, 15); Assert.IsFalse(policy.Validate(1, cart)); }
public void Validate_ValidateStoreCorrect_ReturnsTrue() { policy = new PolicyLeafMaximumAmount(0, 25); Assert.IsTrue(policy.Validate(1, cart)); }
public void Validate_ValidateProductIncorrect_ReturnsFalse() { policy = new PolicyLeafMaximumAmount(1, 7); Assert.IsFalse(policy.Validate(1, cart)); }
public void Validate_ValidateProductCorrect_ReturnsTrue() { policy = new PolicyLeafMaximumAmount(1, 12); Assert.IsTrue(policy.Validate(1, cart)); }