public DeleteRoute(IRouteOperations routeOperations, string routeTableName, string routeName)
        {
            this.routeOperations = routeOperations;
            this.routeTableName  = routeTableName;
            this.routeName       = routeName;

            oldRouteTable = RouteTestClient.GetRouteTableSafe(routeOperations, routeTableName);
        }
Ejemplo n.º 2
0
        public SetRoute(IRouteOperations routeOperations, string routeTableName, string routeName, SetRouteParameters parameters)
        {
            this.routeOperations = routeOperations;
            this.routeTableName  = routeTableName;
            this.routeName       = routeName;
            this.parameters      = parameters;

            oldRouteTable = RouteTestClient.GetRouteTableSafe(routeOperations, routeTableName);
        }
Ejemplo n.º 3
0
        public DeleteRouteTable(IRouteOperations routeOperations, string routeTableName)
        {
            this.routeOperations = routeOperations;
            this.routeTableName  = routeTableName;

            if (string.IsNullOrEmpty(routeTableName))
            {
                oldRouteTable = null;
            }
            else
            {
                oldRouteTable = RouteTestClient.GetRouteTableSafe(routeOperations, routeTableName);
            }
        }
Ejemplo n.º 4
0
        public CreateRouteTable(IRouteOperations routeOperations, CreateRouteTableParameters parameters)
        {
            this.routeOperations = routeOperations;
            this.parameters      = parameters;

            if (parameters == null || string.IsNullOrEmpty(parameters.Name))
            {
                tableExistedPreviously = false;
            }
            else
            {
                RouteTable routeTable = RouteTestClient.GetRouteTableSafe(routeOperations, parameters.Name);
                tableExistedPreviously = (routeTable != null);
            }
        }