public async Task DeleteFloatingIpFormsCorrectUrlAndMethod()
        {
            var floatingIpId = "12345";
            var client =
                new NetworkServiceRestClient(GetValidContext(), this.ServiceLocator);

            await client.DeleteFloatingIp(floatingIpId);

            Assert.AreEqual(string.Format("{0}/floatingips/{1}", endpoint + "v2.0", floatingIpId), this.simulator.Uri.ToString());
            Assert.AreEqual(HttpMethod.Delete, this.simulator.Method);
        }
        public async Task CanDeleteFloatinIp()
        {
            this.simulator.FloatingIps.Add(new FloatingIp("12345", "172.0.0.1", FloatingIpStatus.Active));
            var client =
               new NetworkServiceRestClient(GetValidContext(), this.ServiceLocator);

            var resp = await client.DeleteFloatingIp("12345");

            Assert.AreEqual(HttpStatusCode.NoContent, resp.StatusCode);

            Assert.AreEqual(0, this.simulator.FloatingIps.Count);
        }
        public async Task DeleteFloatingIpIncludesAuthHeader()
        {
            var client =
                new NetworkServiceRestClient(GetValidContext(), this.ServiceLocator);

            await client.DeleteFloatingIp("12345");

            Assert.IsTrue(this.simulator.Headers.ContainsKey("X-Auth-Token"));
            Assert.AreEqual(this.authId, this.simulator.Headers["X-Auth-Token"]);
        }