コード例 #1
0
        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);
        }
コード例 #2
0
 public Condition()
 {
     _relatedConditionsValidator = new ConditionsValidator(RelatedConditions);
 }
コード例 #3
0
 public Automation(AutomationId id)
     : base(id)
 {
     _conditionsValidator = new ConditionsValidator(Conditions);
 }
コード例 #4
0
 public Condition()
 {
     _relatedConditionsValidator = new ConditionsValidator(RelatedConditions);
 }