Skip to content

Instantly share code, notes, and snippets.

@justinyoo
Created June 20, 2016 03:58
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save justinyoo/f623ec42d7724d0bbbedf7273a0b5580 to your computer and use it in GitHub Desktop.
Save justinyoo/f623ec42d7724d0bbbedf7273a0b5580 to your computer and use it in GitHub Desktop.
Application Insights WebTests SDK
public class PingWebTestProperties : WebTestProperties
{
public override string Kind => TestKind.Ping;
public override WebTestConfiguration Configuration { get; set; }
}
public abstract class WebTestProperties
{
...
public static implicit operator string(WebTestProperties properties)
{
return properties.ToString();
}
public override string ToString()
{
return JsonConvert.SerializeObject(this);
}
...
}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment