C# Class HealthMonitoring.AcceptanceTests.Helpers.ClientHelper

Afficher le fichier Open project: wongatech/HealthMonitoring

Méthodes publiques

Свойство Type Description
CredentialsProvider CredentialsProvider

Méthodes publiques

Méthode 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 méthode

public static Authorize ( this client, Credentials credentials ) : IRestClient
client this
credentials Credentials
Résultat IRestClient

Build() public static méthode

public static Build ( ) : RestSharp.RestClient
Résultat RestSharp.RestClient

DeserializeEndpointDetails() public static méthode

public static DeserializeEndpointDetails ( this response ) : EndpointEntity
response this
Résultat HealthMonitoring.AcceptanceTests.Helpers.Entities.EndpointEntity

DeserializeEndpointStats() public static méthode

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

EnsureMonitoringStarted() public static méthode

public static EnsureMonitoringStarted ( this client, System.Guid endpointId ) : void
client this
endpointId System.Guid
Résultat void

EnsureStatusChanged() public static méthode

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

ExpectAnSuccessfulGet() public static méthode

public static ExpectAnSuccessfulGet ( this client, string url ) : IRestResponse
client this
url string
Résultat IRestResponse

GetEndpointDetails() public static méthode

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

GetEndpointIdentities() public static méthode

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

GetHealthMonitorUrl() public static méthode

public static GetHealthMonitorUrl ( ) : Uri
Résultat System.Uri

RegisterEndpoint() public static méthode

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
Résultat System.Guid

VerifyHeader() public static méthode

public static VerifyHeader ( this response, string header, string value ) : void
response this
header string
value string
Résultat void

VerifyLocationHeader() public static méthode

public static VerifyLocationHeader ( this response, string url ) : void
response this
url string
Résultat void

VerifyValidStatus() public static méthode

public static VerifyValidStatus ( this response, HttpStatusCode status ) : void
response this
status HttpStatusCode
Résultat void

Property Details

CredentialsProvider public_oe static_oe property

public static CredentialsProvider,HealthMonitoring.AcceptanceTests.Helpers CredentialsProvider
Résultat CredentialsProvider