public void ShouldBeNotFulfilled_WithNotFulfilledDefault_AndOneFulfilledCondiiton()
        {
            var conditionsValidator = new ConditionsValidator()
                .WithCondition(ConditionRelation.Or, new NotFulfilledTestCondition())
                .WithCondition(ConditionRelation.Or, new FulfilledTestCondition())
                .WithDefaultState(ConditionState.NotFulfilled);

            conditionsValidator.Validate().ShouldBeEquivalentTo(ConditionState.Fulfilled);
        }
Exemple #2
0
 public Condition()
 {
     _relatedConditionsValidator = new ConditionsValidator(RelatedConditions);
 }
 public Automation(AutomationId id)
     : base(id)
 {
     _conditionsValidator = new ConditionsValidator(Conditions);
 }
 public Condition()
 {
     _relatedConditionsValidator = new ConditionsValidator(RelatedConditions);
 }