Пример #1
0
 public void Validate_ValidateStoreIncorrect_ReturnsFalse()
 {
     policy = new PolicyLeafMaximumAmount(0, 15);
     Assert.IsFalse(policy.Validate(1, cart));
 }
Пример #2
0
 public void Validate_ValidateStoreCorrect_ReturnsTrue()
 {
     policy = new PolicyLeafMaximumAmount(0, 25);
     Assert.IsTrue(policy.Validate(1, cart));
 }
Пример #3
0
 public void Validate_ValidateProductIncorrect_ReturnsFalse()
 {
     policy = new PolicyLeafMaximumAmount(1, 7);
     Assert.IsFalse(policy.Validate(1, cart));
 }
Пример #4
0
 public void Validate_ValidateProductCorrect_ReturnsTrue()
 {
     policy = new PolicyLeafMaximumAmount(1, 12);
     Assert.IsTrue(policy.Validate(1, cart));
 }