private IResponseBuilder BuildGetFooResponse(HellowWorldDto hw) { return(Response.Create() .WithSuccess() .WithHeader(HeaderNames.ContentType, "application/json") .WithBodyAsJson(hw)); }
public Guid SetupGetFooResponse(HellowWorldDto hw) { Guid guid = Guid.NewGuid(); Server.Given(BuildGetFooRequest()) .WithGuid(guid) .RespondWith(BuildGetFooResponse(hw)); return(guid); }