public void DeleteFloatingIP(HttpStatusCode responseCode) { using (var httpTest = new HttpTest()) { Identifier floatingIPId = Guid.NewGuid(); httpTest.RespondWith((int)responseCode, "All gone!"); _networking.DeleteFloatingIP(floatingIPId); httpTest.ShouldHaveCalled($"*/floatingips/{floatingIPId}"); } }