Table of Contents

Interface ITestViewModel

Namespace
Acuit.Pinpoint.Workflows.Workstation.Testing
Assembly
Acuit.Pinpoint.Workflows.Workstation.dll

The view model object that gets provided to a test view.

public interface ITestViewModel : INotifyPropertyChanged
Inherited Members

Properties

CancelWorkflowAndCloseTestViewCommand

Gets the ICommand to cancel the running test workflow and close the test view. The test view can only be closed when it is closeable (IsCloseable is true).

ICommand CancelWorkflowAndCloseTestViewCommand { get; }

Property Value

ICommand

Remarks

If the workflow is running, then this will signal a cancel request to the executing workflow, and then disable the command until it completes. Then the view will be closed.

CancelWorkflowCommand

Gets the ICommand to cancel the running test workflow. This command can execute only when the workflow is running.

ICommand CancelWorkflowCommand { get; }

Property Value

ICommand

Remarks

This will signal a cancel request to the executing workflow, and then disable the command until it completes.

CloseTestViewCommand

Gets the ICommand to close the test view. The test view can only be closed when it is closeable (IsCloseable is true) and the test workflow is not running.

ICommand CloseTestViewCommand { get; }

Property Value

ICommand

IsBad

Gets whether a "bad" indication should be shown for this test type, which means the type type applies to the unit, the last test result for this unit's test type did not pass (or there is no test result yet), and the test workflow is not currently running.

bool IsBad { get; }

Property Value

bool

IsCloseable

Gets whether the test view is closeable. It is closeable when the test view has been navigated to within the MainRegion region.

bool IsCloseable { get; }

Property Value

bool

IsGood

Gets whether a "good" indication should be shown for this test type, which means the type type applies to the unit, the last test result for this unit's test type passed, and the test workflow is not currently running.

bool IsGood { get; }

Property Value

bool

IsTestApplicableToUnit

Gets whether the test type is applicable to the unit at the station.

bool IsTestApplicableToUnit { get; }

Property Value

bool

IsTestWorkflowRunning

Gets whether the test workflow is running.

bool IsTestWorkflowRunning { get; }

Property Value

bool

IsUnitAtStation

Gets whether there is a unit at the station.

bool IsUnitAtStation { get; }

Property Value

bool

IsWorkflowDefined

Gets whether a test workflow has been defined for this test type.

bool IsWorkflowDefined { get; }

Property Value

bool

LastTestResult

Gets the last test result of this type for this unit, or null if no tests results exist, or null when a workflow has been newly-started.

UnitTest LastTestResult { get; }

Property Value

UnitTest

Remarks

This gets set to null when a workflow is newly started so that no test result is shown while a test is running to avoid confusion. As soon as a test result is record, this will update to reflect that test result.

LatestReadings

Gets the latest polled readings.

IReadingCollection LatestReadings { get; }

Property Value

IReadingCollection

RestartWorkflowCommand

Gets the ICommand to restart the test workflow. This will not navigate to the test view if the test type is configured such that view navigation is required. This command can execute only when the test type is applicable to the scanned unit and the test workflow is not already running.

ICommand RestartWorkflowCommand { get; }

Property Value

ICommand

Remarks

If the workflow fails due to a problem with workflow parameters, an error message box will be shown.

ShowTestStrip

Gets or sets whether to show the test strip.

bool ShowTestStrip { get; }

Property Value

bool

StartWorkflowCommand

Gets the ICommand to start the test workflow. This will navigate to the test view if the test type is configured such that view navigation is required. This command can execute only when the test type is applicable to the scanned unit and the test workflow is not already running.

ICommand StartWorkflowCommand { get; }

Property Value

ICommand

Remarks

If the workflow fails due to a problem with workflow parameters, an error message box will be shown.

TestTypeName

Gets the Acuit Pinpoint test type name.

string TestTypeName { get; }

Property Value

string

WorkflowData

Gets the workflow data context object for the running or last-completed test workflow.

object WorkflowData { get; }

Property Value

object

WorkflowUICommand

Gets the ICommand to issue a user interface command. When executing this command, the user interface command name (of type string) should be provided as the parameter.

ICommand WorkflowUICommand { get; }

Property Value

ICommand

Remarks

Views can bind to this, and then test workflows can watch for these commands via the WaitForUICommand activity.