Example #1
0
        public void Does_not_schedule_activity_when_when_func_is_evaluated_to_false()
        {
            var activityItem = new ActivityItem(_activityIdentity, _workflow.Object);

            activityItem.When(a => false);

            var decisions = activityItem.ScheduleDecisions();

            Assert.That(decisions, Is.Empty);
        }
Example #2
0
 private ScheduleActivityDecision ScheduleDecision(ActivityItem activityItem)
 {
     return((ScheduleActivityDecision)activityItem.ScheduleDecisions().Single());
 }