BeginDelete() public method

public BeginDelete ( DeploymentSlotUri deploymentUri ) : RequestUri
deploymentUri DeploymentSlotUri
return RequestUri
        public void ThrowsOnAnythingOtherThanAcceptedOrConflict()
        {
            var http = new ScriptedHttpFake();

            http.Script.Add(() => http.NextResponse = new HttpResponse(HttpStatusCode.ServiceUnavailable, ""));

            var api = new AzureManagementLowLevelApi(http);
            Assert.That(() => api.BeginDelete(TestDeploymentUri), Throws.TypeOf<UnhandledHttpException>());
        }
        public void Http409ConflictReturnsNull()
        {
            var http = new ScriptedHttpFake();

            http.Script.Add(() => http.NextResponse = new HttpResponse(HttpStatusCode.Conflict, ""));

            var api = new AzureManagementLowLevelApi(http);
            Assert.That(api.BeginDelete(TestDeploymentUri), Is.Null, "Should return null on 409 conflict");
        }
        public void SendsCorrectDeleteUri()
        {
            var http = new ScriptedHttpFake();

            http.Script.Add(() => http.NextResponse = new HttpResponse(HttpStatusCode.Accepted, ""));

            var api = new AzureManagementLowLevelApi(http);
            api.BeginDelete(TestDeploymentUri);

            Assert.That(http.LastDeleteUri, Is.EqualTo(TestDeploymentUri.ToString()), "deploymentUri parameter incorrect");
        }