public void TestCreateRegisterCloseRegisterWorksCorrectly()
        {
            ExampleDomainConnector exampleDomain = new ExampleDomainConnector();
            IDomainFactory         factory       = DomainFactoryProvider.GetDomainFactoryInstance(Version, Destination, exampleDomain, exceptionHandler);
            String tmpuuid = null;

            uuid = factory.CreateDomainService(DomainName);
            factory.RegisterConnector(uuid, DomainName);
            factory.StopConnection(uuid);
            tmpuuid = uuid;
            factory.RegisterConnector(uuid, DomainName);
            factory.StopConnection(uuid);
            Assert.AreEqual <String>(tmpuuid, uuid);
        }
 /// <summary>
 /// Unregisters the connector from XLink and removes it from the OpenEngSB
 /// </summary>
 public void disconnect()
 {
     outputLine("Disconnecting from OpenEngSB and XLink...");
     factory.DisconnectFromXLink(connectorUUID, hostIp);
     factory.UnRegisterConnector(connectorUUID);
     factory.DeleteDomainService(connectorUUID);
     factory.StopConnection(connectorUUID);
     outputLine("Disconnected.");
 }
 public override void CleanUp()
 {
     factory.StopConnection(uuid);
 }