Sample 3: Using AutoDeploy

To use the Auto-Deploy mode, use the TypeMock.Integration.Service.InstallFrom() method. You can check if the machine has a valid license using the TypeMock.Integration.Service.HasLicenseForAutodeploy() method.

C#

public void DoAutoDeploy(string path)
{
  if(!Service.HasLicenseForAutodeploy())
  {
    Console.WriteLine("You don't have license for Auto Deploy Typemock Isolator");
    return;
  } 
  Service.InstallFrom(path);
}