privateconststringGeneralUsageMessage="Usage: /ip:<system-ip or hostname> /user:<WDP username> /pwd:<WDP password> [/endpoint:<api to call>] [/directory:<directory to save mock data file(s)>";
privateconststringGeneralUsageMessage="Usage: /address:<URL for device (eg. https://10.0.0.1:11443)> /user:<WDP username> /pwd:<WDP password> [/endpoint:<api to call>] [/directory:<directory to save mock data file(s)>";
/// <summary>
/// Endpoints for REST calls to populate
/// Endpoints for REST calls to populate. Feel free to override this list (especially locally) to
/// facilitate generating a large number of mock files all simultaneously.
Console.WriteLine("Data generated in directory {0}. Please make sure to remove any personally identifiable information from the response(s) before adding them as mock responses.",directory);
}
/// <summary>
/// Encapsulation of an endpoint and its HTTP method.
/// </summary>
privateclassEndpoint
{
/// <summary>
/// Initializes a new instance of the <see cref="Endpoint"/> class.
/// </summary>
/// <param name="method">The HTTP method this endpoint should use.</param>
/// <param name="endpoint">The actual endpoint.</param>
publicEndpoint(HttpMethodsmethod,stringendpoint)
{
this.Method=method;
this.Value=endpoint;
}
/// <summary>
/// Gets or sets the HTTP Method.
/// </summary>
publicHttpMethodsMethod{get;set;}
/// <summary>
/// Gets or sets the endpoint value.
/// </summary>
publicstringValue{get;set;}
/// <summary>
/// Overridden ToString method.
/// </summary>
/// <returns>Human readable representation of an Endpoint.</returns>