public void TestCreateDeleteConnectorAndNoRegistrationWorksCorrectly() { uuid = factory.CreateDomainService(DomainName); Assert.IsFalse(factory.Registered(uuid)); Assert.IsTrue(factory.GetDomainTypConnectorId(uuid).Equals(DomainName + "+external-connector-proxy+" + uuid)); factory.DeleteDomainService(uuid); }
public void TestCreateRegisterConnecttoxlinkDisconnectfromXlinkUnregisterDeleteWithoutCreateMethodConnectorWorksCorrectly() { uuid = factory.RegisterConnector(null, DomainName); Assert.IsTrue(factory.Registered(uuid)); Assert.IsFalse(factory.Registered("WRONG ID")); Assert.IsTrue(factory.GetDomainTypConnectorId(uuid).Equals(DomainName + "+external-connector-proxy+" + uuid)); XLinkUrlBlueprint template = factory.ConnectToXLink(uuid, "localhost", DomainName, InitModelViewRelation()); factory.DisconnectFromXLink(uuid, "localhost"); factory.UnRegisterConnector(uuid); Assert.IsFalse(factory.Registered(uuid)); factory.DeleteDomainService(uuid); Assert.IsFalse(factory.Registered(uuid)); }