public new static void MyClassInitialize(TestContext testContext) { BaseIntegrationTests.MyClassInitialize(testContext); _connectionServer.ErrorEvents += ServerOnErrorEvents; string strAlias = "Tenant" + Guid.NewGuid().ToString().Replace("-", "").Substring(0, 13); var res = Tenant.AddTenant(_connectionServer, strAlias, strAlias + ".org", strAlias, "", "", out _tempTenant); Assert.IsTrue(res.Success, "Failed to create temproary teannt:" + res); }
public new static void MyClassInitialize(TestContext testContext) { BaseIntegrationTests.MyClassInitialize(testContext); //create new handler with GUID in the name to ensure uniqueness String strName = "Tenant" + Guid.NewGuid().ToString().Replace("-", "").Substring(0, 8); WebCallResult res = Tenant.AddTenant(_connectionServer, strName, strName + ".org", strName, "", "", out _tempTenant); Assert.IsTrue(res.Success, "Failed creating temporary tenant:" + res.ToString()); }
public void AddTenant_EmptyDomain_Failure() { var res = Tenant.AddTenant(_mockServer, "alias", "", "description", "", ""); Assert.IsFalse(res.Success, ""); }
public void AddTenant_NullConnectionServer_Failure() { WebCallResult res = Tenant.AddTenant(null, "alias", "domain", "description", "", ""); Assert.IsFalse(res.Success, ""); }