Skip to main content
Skip table of contents

Unit tests [VF AgSDK]

When you implement unit tests for your task processor you will have to mock certain interfaces required by the underlying agent framework.
The Agent SDK already provides some mocked classes for several interfaces

  • AgentValidator.LoggerMock<T> for the ILogger<> interface

  • AgentValidator.FileSupervisorFactoryMock<T> for the IFileSupervisorFactory interface

  • AgentValidator.WorkflowParameterMock for the IWorkflowParameter interface

For all other interfaces, the Platform.Integrations.Agent.Validator Nuget package already includes the Moq framework which is easy to use.

JavaScript errors detected

Please note, these errors can depend on your browser setup.

If this problem persists, please contact our support.