public async Task UpdateImageMetadataWithEmptyImageIdThrows()
 {
     var metadata = new Dictionary<string, string>() { { "item1", "value1" } };
     var client = new ComputeServiceClient(GetValidCreds(), "Nova", CancellationToken.None, this.ServiceLocator);
     await client.UpdateImageMetadata(string.Empty, metadata);
 }
 public async Task UpdateImageMetadataWithNullMetadataThrows()
 {
     var client = new ComputeServiceClient(GetValidCreds(), "Nova", CancellationToken.None, this.ServiceLocator);
     await client.UpdateImageMetadata("12345", null);
 }
        public async Task CanUpdateImageMetadata()
        {
            var metadata = new Dictionary<string, string>() { { "item1", "value1" } };
            this.ServicePocoClient.UpdateImageMetadataDelegate = async (imageId, meta) =>
            {
                await Task.Run(() =>
                {
                    Assert.AreEqual(imageId, "12345");
                    Assert.AreEqual(metadata, meta);
                });
            };

            var client = new ComputeServiceClient(GetValidCreds(), "Nova", CancellationToken.None, this.ServiceLocator);
            await client.UpdateImageMetadata("12345", metadata);
        }