C# Class HealthMonitoring.AcceptanceTests.Helpers.ClientHelper

Mostrar archivo Open project: wongatech/HealthMonitoring

Public Properties

Property Type Description
CredentialsProvider CredentialsProvider

Public Methods

Method Description
Authorize ( this client, Credentials credentials ) : IRestClient
Build ( ) : RestSharp.RestClient
DeserializeEndpointDetails ( this response ) : EndpointEntity
DeserializeEndpointStats ( this response ) : HealthMonitoring.AcceptanceTests.Helpers.Entities.EndpointHealthStats[]
EnsureMonitoringStarted ( this client, System.Guid endpointId ) : void
EnsureStatusChanged ( this client, System.Guid endpointId, EndpointStatus expectedStatus ) : void
ExpectAnSuccessfulGet ( this client, string url ) : IRestResponse
GetEndpointDetails ( this client, System.Guid identifier ) : EndpointEntity
GetEndpointIdentities ( this client ) : HealthMonitoring.AcceptanceTests.Helpers.Entities.EndpointIdentity[]
GetHealthMonitorUrl ( ) : Uri
RegisterEndpoint ( this client, string monitor, string address, string group, string name, string tags = null, Credentials credentials = null, string monitorTag = null ) : System.Guid
VerifyHeader ( this response, string header, string value ) : void
VerifyLocationHeader ( this response, string url ) : void
VerifyValidStatus ( this response, HttpStatusCode status ) : void

Method Details

Authorize() public static method

public static Authorize ( this client, Credentials credentials ) : IRestClient
client this
credentials Credentials
return IRestClient

Build() public static method

public static Build ( ) : RestSharp.RestClient
return RestSharp.RestClient

DeserializeEndpointDetails() public static method

public static DeserializeEndpointDetails ( this response ) : EndpointEntity
response this
return HealthMonitoring.AcceptanceTests.Helpers.Entities.EndpointEntity

DeserializeEndpointStats() public static method

public static DeserializeEndpointStats ( this response ) : HealthMonitoring.AcceptanceTests.Helpers.Entities.EndpointHealthStats[]
response this
return HealthMonitoring.AcceptanceTests.Helpers.Entities.EndpointHealthStats[]

EnsureMonitoringStarted() public static method

public static EnsureMonitoringStarted ( this client, System.Guid endpointId ) : void
client this
endpointId System.Guid
return void

EnsureStatusChanged() public static method

public static EnsureStatusChanged ( this client, System.Guid endpointId, EndpointStatus expectedStatus ) : void
client this
endpointId System.Guid
expectedStatus EndpointStatus
return void

ExpectAnSuccessfulGet() public static method

public static ExpectAnSuccessfulGet ( this client, string url ) : IRestResponse
client this
url string
return IRestResponse

GetEndpointDetails() public static method

public static GetEndpointDetails ( this client, System.Guid identifier ) : EndpointEntity
client this
identifier System.Guid
return HealthMonitoring.AcceptanceTests.Helpers.Entities.EndpointEntity

GetEndpointIdentities() public static method

public static GetEndpointIdentities ( this client ) : HealthMonitoring.AcceptanceTests.Helpers.Entities.EndpointIdentity[]
client this
return HealthMonitoring.AcceptanceTests.Helpers.Entities.EndpointIdentity[]

GetHealthMonitorUrl() public static method

public static GetHealthMonitorUrl ( ) : Uri
return System.Uri

RegisterEndpoint() public static method

public static RegisterEndpoint ( this client, string monitor, string address, string group, string name, string tags = null, Credentials credentials = null, string monitorTag = null ) : System.Guid
client this
monitor string
address string
group string
name string
tags string
credentials Credentials
monitorTag string
return System.Guid

VerifyHeader() public static method

public static VerifyHeader ( this response, string header, string value ) : void
response this
header string
value string
return void

VerifyLocationHeader() public static method

public static VerifyLocationHeader ( this response, string url ) : void
response this
url string
return void

VerifyValidStatus() public static method

public static VerifyValidStatus ( this response, HttpStatusCode status ) : void
response this
status HttpStatusCode
return void

Property Details

CredentialsProvider public_oe static_oe property

public static CredentialsProvider,HealthMonitoring.AcceptanceTests.Helpers CredentialsProvider
return CredentialsProvider