public async Task ExceptionThrownWhenDeletingAStorageContainerWithInternalServerError() { var containerName = "TestContainer"; var restResp = new HttpResponseAbstraction(new MemoryStream(), new HttpHeadersAbstraction(), HttpStatusCode.InternalServerError); this.StorageServiceRestClient.Responses.Enqueue(restResp); var client = new StorageServicePocoClient(GetValidContext(), this.ServiceLocator); await client.DeleteStorageContainer(containerName); }
public async Task CanDeleteStorageContainerWithOkResponse() { var containerName = "TestContainer"; var restResp = new HttpResponseAbstraction(new MemoryStream(), new HttpHeadersAbstraction(), HttpStatusCode.OK); this.StorageServiceRestClient.Responses.Enqueue(restResp); var client = new StorageServicePocoClient(GetValidContext(), this.ServiceLocator); await client.DeleteStorageContainer(containerName); }