public async Task CanGetKeyPairs() { var expKeyPair1 = new ComputeKeyPair("1", "ABCDEF","12345"); var expKeyPair2 = new ComputeKeyPair("2", "FEDCBA", "54321"); var pairs = new List<ComputeKeyPair>() { expKeyPair1, expKeyPair2 }; this.ServicePocoClient.GetKeyPairsDelegate = () => Task.Factory.StartNew(() => (IEnumerable<ComputeKeyPair>)pairs); var client = new ComputeServiceClient(GetValidCreds(), "Nova", CancellationToken.None, this.ServiceLocator); var resp = await client.GetKeyPairs(); Assert.IsNotNull(resp); var respPairs = resp.ToList(); Assert.AreEqual(2, respPairs.Count()); Assert.AreEqual(expKeyPair1, respPairs[0]); Assert.AreEqual(expKeyPair2, respPairs[1]); }