Esempio n. 1
0
        public async Task ExecuteStep_ExecutesViewModelStep()
        {
            var stepWasExecuted = false;

            _handleJobAction = job => stepWasExecuted = true;
            var step = WorkflowStep.Create <UserControl>();

            await step.ExecuteStep(null, _workflowViewModel);

            Assert.IsTrue(stepWasExecuted);
        }
Esempio n. 2
0
        public void Create_NavigationUri_IsTypeName()
        {
            var step = WorkflowStep.Create <UserControl>();

            Assert.AreEqual(nameof(UserControl), step.NavigationUri);
        }
Esempio n. 3
0
        public void Create_WithPredicate_EvaluatesPredicate(bool isRequired)
        {
            var step = WorkflowStep.Create <UserControl>(job => isRequired);

            Assert.AreEqual(isRequired, step.IsStepRequired(null));
        }
Esempio n. 4
0
        public void Create_WithoutPredicate_StepIsRequired()
        {
            var step = WorkflowStep.Create <UserControl>();

            Assert.IsTrue(step.IsStepRequired(null));
        }