public void TestDeleteContainerFailNotFound() { var account = new CF_Account(_conn, _client); _conn.UserCreds.AuthToken = "fail-not-empty"; Assert.Throws <ContainerNotEmptyException>(() => account.DeleteContainer("foo")); }
public void TestDeleteContainerFailTimeout() { var account = new CF_Account(_conn, _client); _conn.UserCreds.AuthToken = "fail-timeout"; Assert.Throws <TimeoutException>(() => account.DeleteContainer("foo")); }
public void TestDeleteContainerFailUnauthorized() { var account = new CF_Account(_conn, _client); _conn.UserCreds.AuthToken = "fail-unauthorized"; Assert.Throws <UnauthorizedException>(() => account.DeleteContainer("foo")); }
public void TestDeleteContainer() { var account = new CF_Account(_conn, _client); _conn.UserCreds.AuthToken = "delete-container"; account.DeleteContainer("foo"); }
public void TestDeleteContainerListFail() { var account = new CF_Account(_conn, _client); _conn.UserCreds.AuthToken = "fail"; Assert.Throws <CloudFilesException>(() => account.DeleteContainer("foo")); }
public void TestFailDeleteContainer() { var account = new CF_Account(_conn, _client) { Retries = 1 }; _conn.UserCreds.AuthToken = "fail-delete-container"; account.DeleteContainer("foo"); }
/// <summary> /// Delete a container /// </summary> /// <param name="containerName">Name of Container</param> public void DeleteContainer(string containerName) { _account.DeleteContainer(containerName); }
public void TestDeleteContainerFailTimeout() { var account = new CF_Account(_conn, _client); _conn.UserCreds.AuthToken = "fail-timeout"; Assert.Throws<TimeoutException>(() => account.DeleteContainer("foo")); }
public void TestDeleteContainerFailNotFound() { var account = new CF_Account(_conn, _client); _conn.UserCreds.AuthToken = "fail-not-empty"; Assert.Throws<ContainerNotEmptyException>(() => account.DeleteContainer("foo")); }
public void TestFailDeleteContainer() { var account = new CF_Account(_conn, _client) {Retries = 1}; _conn.UserCreds.AuthToken = "fail-delete-container"; account.DeleteContainer("foo"); }
public void TestDeleteContainerListFail() { var account = new CF_Account(_conn, _client); _conn.UserCreds.AuthToken = "fail"; Assert.Throws<CloudFilesException>(() => account.DeleteContainer("foo")); }
public void TestDeleteContainerFailUnauthorized() { var account = new CF_Account(_conn, _client); _conn.UserCreds.AuthToken = "fail-unauthorized"; Assert.Throws<UnauthorizedException>(() => account.DeleteContainer("foo")); }