public void PrepareAndAbortMigrationRouteTable()
        {
            using (NetworkTestClient networkTestClient = new NetworkTestClient())
            {
                networkTestClient.Routes.EnsureRouteTableDoesntExist("MockName");

                CreateRouteTableParameters parameters = CreateParameters("MockName", null, NetworkTestConstants.WideVNetLocation);

                AzureOperationResponse createResponse = networkTestClient.Routes.CreateRouteTable(parameters);
                Assert.NotNull(createResponse);
                Assert.NotNull(createResponse.RequestId);
                Assert.NotEqual(0, createResponse.RequestId.Length);
                Assert.Equal(HttpStatusCode.OK, createResponse.StatusCode);

                // Test Validate migration call
                var response = networkTestClient.ValidateRouteTableMigration("MockName");
                Assert.NotNull(response);
                Assert.Equal(HttpStatusCode.OK, response.StatusCode);

                Assert.NotNull(response.ValidationMessages);
                Assert.Equal(0, response.ValidationMessages.Count);

                // Prepare
                OperationStatusResponse prepareVnetMigration = networkTestClient.PrepareRouteTableMigration("MockName");
                Assert.Equal(OperationStatus.Succeeded, prepareVnetMigration.Status);

                // Abort
                OperationStatusResponse abortVnetMigration = networkTestClient.AbortRouteTableMigration("MockName");
                Assert.Equal(OperationStatus.Succeeded, abortVnetMigration.Status);
            }
        }
        public void PrepareAndAbortMigrationRouteTable()
        {
            using (NetworkTestClient networkTestClient = new NetworkTestClient())
            {
                networkTestClient.Routes.EnsureRouteTableDoesntExist("MockName");

                CreateRouteTableParameters parameters = CreateParameters("MockName", null, NetworkTestConstants.WideVNetLocation);

                AzureOperationResponse createResponse = networkTestClient.Routes.CreateRouteTable(parameters);
                Assert.NotNull(createResponse);
                Assert.NotNull(createResponse.RequestId);
                Assert.NotEqual(0, createResponse.RequestId.Length);
                Assert.Equal(HttpStatusCode.OK, createResponse.StatusCode);

                // Test Validate migration call
                var response = networkTestClient.ValidateRouteTableMigration("MockName");
                Assert.NotNull(response);
                Assert.Equal(HttpStatusCode.OK, response.StatusCode);

                Assert.NotNull(response.ValidationMessages);
                Assert.Equal(0, response.ValidationMessages.Count);

                // Prepare
                OperationStatusResponse prepareVnetMigration = networkTestClient.PrepareRouteTableMigration("MockName");
                Assert.Equal(OperationStatus.Succeeded, prepareVnetMigration.Status);

                // Abort
                OperationStatusResponse abortVnetMigration = networkTestClient.AbortRouteTableMigration("MockName");
                Assert.Equal(OperationStatus.Succeeded, abortVnetMigration.Status);
            }
        }