Example #1
0
        public void DeleteKeyPair(HttpStatusCode responseCode)
        {
            using (var httpTest = new HttpTest())
            {
                httpTest.RespondWithJson(new KeyPair {
                    Name = "keypair-name"
                });
                httpTest.RespondWith((int)responseCode, "All gone!");

                KeyPairSummary result = _computeService.GetKeyPair("keypair-name");
                result.Delete();

                httpTest.ShouldHaveCalled("*/os-keypairs");
            }
        }