public async Task CanGetFlavors() { var flv1 = new ComputeFlavor("1", "m1.tiny", "512", "2", "10", new Uri("http://someuri.com/v2/flavors/1"), new Uri("http://someuri.com/flavors/1"), new Dictionary<string, string>()); var flv2 = new ComputeFlavor("2", "m1.small", "1024", "4", "100", new Uri("http://someuri.com/v2/flavors/2"), new Uri("http://someuri.com/flavors/2"), new Dictionary<string, string>()); var flavors = new List<ComputeFlavor>() {flv1, flv2}; this.ServicePocoClient.GetFlavorsDelegate = () => Task.Factory.StartNew(() => (IEnumerable<ComputeFlavor>)flavors); var client = new ComputeServiceClient(GetValidCreds(), "Nova", CancellationToken.None, this.ServiceLocator); var resp = await client.GetFlavors(); Assert.IsNotNull(resp); var respFlavors = resp.ToList(); Assert.AreEqual(2, respFlavors.Count()); Assert.AreEqual(flv1, respFlavors[0]); Assert.AreEqual(flv2, respFlavors[1]); }