public void CreateApplicationGateway()
        {
            using (NetworkTestClient networkTestClient = new NetworkTestClient())
            {
                ApplicationGatewayOperationResponse result = new ApplicationGatewayOperationResponse();

                //CREATE gateway
                var createParams = new CreateApplicationGatewayParameters
                {
                    Name = gatewayName,
                    Description = gatewayDescription,
                    VnetName = vnet,
                    Subnets = new List<string>() { subnet }
                };

                result = networkTestClient.ApplicationGateways.CreateApplicationGateway(createParams);
                Assert.Equal(result.StatusCode, HttpStatusCode.OK);

                //SET gateway config
                ApplicationGatewaySetConfiguration config = GenerateConfig();

                result = networkTestClient.ApplicationGateways.SetConfigApplicationGateway(gatewayName, config);
                Assert.Equal(result.StatusCode, HttpStatusCode.OK);

                //START gateway
                result = networkTestClient.ApplicationGateways.StartApplicationGateway(gatewayName);
                Assert.Equal(result.StatusCode, HttpStatusCode.OK);
            }
        }
        public void Invoke()
        {
            ApplicationGatewayOperation op = new ApplicationGatewayOperation();
            op.OperationType = "start";

            InvokeResponse = applicationGatewayClient.ExecuteOperation(gatewayName, op);
        }
 public void Invoke()
 {
     InvokeResponse = applicationGatewayClient.SetConfig(gatewayName, config);
 }
 public void Invoke()
 {
     InvokeResponse = applicationGatewayClient.Create(parameters);
 }
 public void Invoke()
 {
     InvokeResponse = applicationGatewayClient.ExecuteOperation(gatewayName, op);
 }
 public void Invoke()
 {
     InvokeResponse = applicationGatewayClient.Delete(gatewayName);
 }