ResponsesModelFactory Class
Definition
Important
Some information relates to prerelease product that may be substantially modified before it’s released. Microsoft makes no warranties, express or implied, with respect to the information provided here.
Factory for creating model instances with specific values for testing and mocking.
Provides a curated subset of factory methods with cleaner parameter names,
delegating to the internal AgentServerResponsesModelFactory.
public static class ResponsesModelFactory
type ResponsesModelFactory = class
Public Class ResponsesModelFactory
- Inheritance
-
ResponsesModelFactory
Remarks
Most model types now have public constructors (via @@usage) and can be constructed directly. This factory is primarily useful for types where all-defaults construction is convenient for tests.
Methods
| Name | Description |
|---|---|
| AgentsPagedResultOutputItem(IEnumerable<OutputItem>, String, String, Boolean) |
Creates an AgentsPagedResultOutputItem instance for mocking. |
| DeleteResponseResult(String) |
Creates a DeleteResponseResult instance for mocking. |
| ResponseCreatedEvent(ResponseObject, Int64) |
Creates a ResponseCreatedEvent instance for mocking. |
| ResponseErrorInfo(ResponseErrorCode, String) |
Creates a ResponseErrorInfo instance for mocking. |
| ResponseObject(String, String, Nullable<ResponseStatus>, DateTimeOffset, ResponseErrorInfo, IEnumerable<OutputItem>) |
Creates a ResponseObject instance for mocking. |