Service Class

Typemock Isolator Developer Guide
The main class used to integrate Typemock Isolator with other applications.
Inheritance Hierarchy

SystemObject
  TypeMock.IntegrationService

Namespace:  TypeMock.Integration
Assembly:  TypeMock.Integration (in TypeMock.Integration.dll) Version: 8.0.0.0 (8.0.0.0)
Syntax

public class Service

The Service type exposes the following members.

Constructors

  NameDescription
Public methodService
Top
Properties

  NameDescription
Public propertyStatic memberInstallDirectory
Retrieve the Typemock Isolator installation directory
Public propertyStatic memberIsInstalled
Check if Typemock Isolator is installed on the machine
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 methodStatic memberGetCoverageTools
Get list of profilers available to link with Typemock Isolator
Public methodGetHashCode
Serves as a hash function for a particular type.
(Inherited from Object.)
Public methodGetType
Gets the Type of the current instance.
(Inherited from Object.)
Public methodStatic memberHasLicenseForAutodeploy Obsolete.
Check if the running machine has license for Auto Deploying TypeMock
Public methodStatic memberHasLicenseToLink Obsolete.
Check if the running machine has license for linking TypeMock with coverage tool
Public methodStatic memberInstallFrom
Install (AutoDeploy) Typemock Isolator from a specific directory. (This requires an Enterprise License)
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
Remarks

This class in the entry point to integrate Typemock Isolator with other applications. For example retrieving information about the installed Typemock Isolator, setting up processes to run with Typemock Isolator and to link coverage tools

As this assembly is used for integration, it is version agnostic and is both backward and forward compatible. This assembly does not require other Typemock Isolator assemblies and can be deployed separately

Examples

Example of using the Auto deploy feature of Typemock Isolator with TypeMock.Integration API
C#
public void DoAutoDeploy(string path)
{
    if(!Service.HasLicenseForAutodeploy())
    {
        Console.WriteLine("You don't have license for Auto Deploy TypeMock");
        return;
    }

    Service.InstallFrom(path);
}
See Also

Reference