Click or drag to resize

TestServiceAdapterTService Class

An adapter that enables usage of IceNetService implementations from unit tests directly, without generated code from the Service builder.
Inheritance Hierarchy
SystemObject
  PDTec.IceNet.Sdk.TestTestServiceAdapterTService

Namespace:  PDTec.IceNet.Sdk.Test
Assembly:  PDTec.IceNet.Sdk (in PDTec.IceNet.Sdk.dll) Version: 7.2.0.0 (7.2.7583.15464)
Syntax
C#
public class TestServiceAdapter<TService>
where TService : new(), Object

Type Parameters

TService
The service implementation.

The TestServiceAdapterTService type exposes the following members.

Constructors
  NameDescription
Public methodTestServiceAdapterTService
Initializes a new instance of the TestServiceAdapterTService class
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.)
Public methodStatic memberInstance
Retrieves a reference to an instance of the service implementation. This instance is connected to the ice.NET infrastructure.
Protected methodMemberwiseClone
Creates a shallow copy of the current Object.
(Inherited from Object.)
Public methodToString
Returns a string that represents the current object.
(Inherited from Object.)
Top
Examples

This example shows how to call IceNetService implementations (here: MyService) from unit tests directly, without generated code from the Service builder.

r0 = TestServiceAdapter<MyService>.Instance(this).MyMethod(p1, p2);
See Also