public void DenyRecipeAboveSpecificMinutesForCooking2() { var constraint = new За("20 минути"); var recipe = new Recipe() { MinutesRequiredToCook = 22 }; Assert.IsFalse(constraint.IsAllowed(recipe)); }
public void DenyRecipeAboveSpecificHoursForCooking3() { var constraint = new За("1 ЧАСА"); var recipe = new Recipe() { MinutesRequiredToCook = 999 }; Assert.IsFalse(constraint.IsAllowed(recipe)); }
public void AllowRecipeUnderSpecificMinutesForCooking4() { var constraint = new За("15 МИН"); var recipe = new Recipe() { MinutesRequiredToCook = 10 }; Assert.IsTrue(constraint.IsAllowed(recipe)); }
public void AllowRecipeAboveSpecificHoursForCooking3() { var constraint = new За("2 ЧАСА"); var recipe = new Recipe() { MinutesRequiredToCook = 30 }; Assert.IsTrue(constraint.IsAllowed(recipe)); }