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); }
public Condition() { _relatedConditionsValidator = new ConditionsValidator(RelatedConditions); }
public Automation(AutomationId id) : base(id) { _conditionsValidator = new ConditionsValidator(Conditions); }