Click or drag to resize

AbstractMetadata Class

The base level of a Service metadata. A metadata describes a Service simulated as a Client (Driver) or Server (Mock)
Inheritance Hierarchy

Namespace:  Hummingbird.TestFramework.Services
Assembly:  Hummingbird.TestFramework (in Hummingbird.TestFramework.dll) Version: 1.2.0.0
Syntax
public class AbstractMetadata : Identifier

The AbstractMetadata type exposes the following members.

Constructors
  NameDescription
Public methodAbstractMetadata
Initializes a new instance of the AbstractMetadata class
Top
Properties
  NameDescription
Public propertyApplicationName
Level 1 description of a service, in which the application/system it belongs
Public propertyDescription
An description of the functionality of the current service. This description will be shown as Tool-tip on service selector user interface.
Public propertyErrorTypes
Type of the object which an error could be received from the server.
Public propertyFriendlyUriTemplate
This is a friendly version of Uri displayed to the users, taken account the binding ip, parameters and variables. so the user can understand better where is service is.
Public propertyId
This property must be initialized in the constructor of derived class and must be given a fixed GUID. the GUID must be a constant in code, and should not equals to any other classes derived from AbstractService.
(Inherited from Identifier.)
Public propertyIsUniqueMethodOfService Obsolete.
If there are no different Method (MethodName) in the same Service (ServiceName) => true, Else false;
Public propertyOperationName
An additional Level 4 description of a service, for a subservice or a subworkflow. Example: for a SOAP web service, it may contains more soap action for a single endpoint
Public propertyReferencedService
Gets or Sets referenced AbstractService (Client of Server) which the current request/response is used. For services that based on HTTP Client, HTTP Server, SOAP Client and SOAP Server, this value can be assigned automatically, When creating an extension that implements a new AbstractService, you must assign all request / responses with the service.
Public propertyRequestEditorType
Type of a CustomObjectEditor to edit the request data (used as Driver). If the value is not provided, Hummingbird default editor will be used. the request data is type of RequestType.
Public propertyRequestSerializer
Gets or sets the serializer used to serialize and deserialize request objects.
Public propertyRequestType
Type of the object which the request will be in .NET framework. The injector service will convert this object to real request (such as Soap or HTTP request). For a service stub, this is the type of object RECEIVED by the service stub.
Public propertyRequiredExtension
Gets the required extension about this AbstractMetadata
Public propertyResponseEditorType
Type of a CustomObjectEditor to edit the response data (used as Stub). If the value is not provided, Hummingbird default editor will be used.
Public propertyResponseSerializer
Gets or sets the serializer used to serialize and deserialize response objects..
Public propertyResponseType
Type of the object which the reply will be received from the server. For a mocking service, this is the type of object which will be sent to the caller.
Public propertyServiceCategory
Level 2 description of a service, in which the category/module it belongs
Public propertyServiceName
Level 3 description of a service, in which the service/workflow it belongs
Public propertyCode exampleUriTemplate

When used as Server to simulate responses, UriTemplate is the absolute path of the service, starts always by /. If the service is HTTP based, the HTTP service handler will route the received http message by it's URL. if the Uri matches the UriTemplate, then such handler is chosen.

When used as drivers, The Uri template there the request will be send.

UriTemplate supports variables and processing functions in order make the extension reusable to different test environments and configurations

Public propertyVisualizerType
The type of WPF control which shows the result of the type must be derived from Hummingbird.TestFramework.DataVisualizer
Top
Methods
  NameDescription
Public methodEquals
Determines whether the specified object is equal to the current object.
(Inherited from Object.)
Protected methodFinalize
Allows an object to try to free resources and perform other cleanup operations before it is reclaimed by garbage collection.
(Inherited from Object.)
Public methodGetHashCode
Serves as the default hash function.
(Inherited from Object.)
Public methodGetType
Gets the Type of the current instance.
(Inherited from Object.)
Protected methodMemberwiseClone
Creates a shallow copy of the current Object.
(Inherited from Object.)
Public methodToString
the string presentation of the current service
(Overrides ObjectToString.)
Top
Extension Methods
  NameDescription
Public Extension MethodToStringOrXml
Converts any Object to string representation in String or XML format.
(Defined by ExtensionMethods.)
Public Extension MethodToXmlString
Converts any Object to string representation in XML format.
(Defined by ExtensionMethods.)
Top
See Also