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); }
public void Create_NavigationUri_IsTypeName() { var step = WorkflowStep.Create <UserControl>(); Assert.AreEqual(nameof(UserControl), step.NavigationUri); }
public void Create_WithPredicate_EvaluatesPredicate(bool isRequired) { var step = WorkflowStep.Create <UserControl>(job => isRequired); Assert.AreEqual(isRequired, step.IsStepRequired(null)); }
public void Create_WithoutPredicate_StepIsRequired() { var step = WorkflowStep.Create <UserControl>(); Assert.IsTrue(step.IsStepRequired(null)); }