C# Class Pepino.ScenarioRunner.ApiSteps.Specs.Fakes.FakeApiClient

Inheritance: IApiClient
Mostra file Open project: AcklenAvenue/Pepino

Public Methods

Method Description
Get ( System.Guid stepId, string rootPath, string resource ) : ApiStepResult
Put ( System.Guid stepId, string host, string resource, string requestPayload ) : ApiStepResult
ShouldReturn ( ApiStepResult apiResponse ) : void
ShouldReturnHttpStatusCode ( HttpStatusCode httpStatusCode ) : void
ShouldReturnResponsePayload ( string responsePayload ) : void
WhenGetting ( string url ) : FakeApiClient
WhenPutting ( string url ) : FakeApiClient

Method Details

Get() public method

public Get ( System.Guid stepId, string rootPath, string resource ) : ApiStepResult
stepId System.Guid
rootPath string
resource string
return Pepino.ScenarioRunner.Application.ApiStepResult

Put() public method

public Put ( System.Guid stepId, string host, string resource, string requestPayload ) : ApiStepResult
stepId System.Guid
host string
resource string
requestPayload string
return Pepino.ScenarioRunner.Application.ApiStepResult

ShouldReturn() public method

public ShouldReturn ( ApiStepResult apiResponse ) : void
apiResponse Pepino.ScenarioRunner.Application.ApiStepResult
return void

ShouldReturnHttpStatusCode() public method

public ShouldReturnHttpStatusCode ( HttpStatusCode httpStatusCode ) : void
httpStatusCode HttpStatusCode
return void

ShouldReturnResponsePayload() public method

public ShouldReturnResponsePayload ( string responsePayload ) : void
responsePayload string
return void

WhenGetting() public method

public WhenGetting ( string url ) : FakeApiClient
url string
return FakeApiClient

WhenPutting() public method

public WhenPutting ( string url ) : FakeApiClient
url string
return FakeApiClient