RestClient CreateClient()
{
if (this.BackstopUrl == null)
throw new InvalidOperationException("BackstopUrl has not been initialized.");
if (string.IsNullOrEmpty(this.Username))
throw new InvalidOperationException("Username has not been initialized.");
if (string.IsNullOrEmpty(this.Password))
throw new InvalidOperationException("Password has not been initialized.");
return new RestClient(this.BackstopUrl)
{
Authenticator = new HttpBasicAuthenticator(this.Username, this.Password),
Timeout = 2000000
};
}