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