| TestServiceAdapterTService Class | 
Namespace: PDTec.IceNet.Sdk.Test
public class TestServiceAdapter<TService> where TService : new(), Object
The TestServiceAdapterTService type exposes the following members.
| Name | Description | |
|---|---|---|
| TestServiceAdapterTService | Initializes a new instance of the TestServiceAdapterTService class  | 
| Name | Description | |
|---|---|---|
| Equals | Determines whether the specified object is equal to the current object.  (Inherited from Object.) | |
| Finalize | Allows an object to try to free resources and perform other cleanup operations before it is reclaimed by garbage collection.  (Inherited from Object.) | |
| GetHashCode | Serves as the default hash function.   (Inherited from Object.) | |
| GetType | Gets the Type of the current instance.  (Inherited from Object.) | |
| Instance | 
            Retrieves a reference to an instance of the service implementation. This instance
            is connected to the ice.NET infrastructure.
              | |
| MemberwiseClone | Creates a shallow copy of the current Object.  (Inherited from Object.) | |
| ToString | Returns a string that represents the current object.  (Inherited from Object.) | 
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);