Example #1
0
        public void ValidateVNetForMigration()
        {
            using (NetworkTestClient networkTestClient = new NetworkTestClient())
            {
                string virtualNetworkName = "foo";
                var    response           = networkTestClient.ValidateVnetMigration(virtualNetworkName);
                Assert.NotNull(response);
                Assert.Equal(HttpStatusCode.OK, response.StatusCode);

                Assert.NotNull(response.ValidateVirtualNetworkMessages);
                Assert.Equal(1, response.ValidateVirtualNetworkMessages.Count);
                Assert.Equal("The virtual network foo does not exist.", response.ValidateVirtualNetworkMessages[0].Message);
            }
        }
        public void ValidateVNetForMigration()
        {
            using (NetworkTestClient networkTestClient = new NetworkTestClient())
            {
                string virtualNetworkName = "foo";
                var response = networkTestClient.ValidateVnetMigration(virtualNetworkName);
                Assert.NotNull(response);
                Assert.Equal(HttpStatusCode.OK, response.StatusCode);

                Assert.NotNull(response.ValidateVirtualNetworkMessages);
                Assert.Equal(1, response.ValidateVirtualNetworkMessages.Count);
                Assert.Equal("The virtual network foo does not exist.", response.ValidateVirtualNetworkMessages[0].Message);
            }
        }