Show / Hide Table of Contents

# Interface IResponseBuilder

Defines an Interface for a Command Response Builder used by the MockTransport to answer Commands sent via the Request and AsnycRequest methods.

###### Namespace: Apache.NMS.ActiveMQ.Transport.Mock

###### Assembly: Apache.NMS.ActiveMQ.dll

##### Syntax

    public interface IResponseBuilder

### Methods

| Improve this Doc View Source

#### BuildIncomingCommands(Command)

When called the ResponseBuilder must construct all the Responses or Asynchronous commands that would be sent to this client by the Broker upon receipt of the passed command.

##### Declaration

    List<Command> BuildIncomingCommands(Command command)

##### Parameters

Type | Name | Description
--- | --- | ---
Command | command |

##### Returns

Type | Description
--- | ---
System.Collections.Generic.List<Command> |

| Improve this Doc View Source

#### BuildResponse(Command)

Given a Command, check if it requires a response and return the appropriate Response that the Broker would send for this Command

##### Declaration

    Response BuildResponse(Command command)

##### Parameters

Type | Name | Description
--- | --- | ---
Command | command |

##### Returns

Type | Description
--- | ---
Response |