Exemple #1
0
 private IResponseBuilder BuildGetFooResponse(HellowWorldDto hw)
 {
     return(Response.Create()
            .WithSuccess()
            .WithHeader(HeaderNames.ContentType, "application/json")
            .WithBodyAsJson(hw));
 }
Exemple #2
0
        public Guid SetupGetFooResponse(HellowWorldDto hw)
        {
            Guid guid = Guid.NewGuid();

            Server.Given(BuildGetFooRequest())
            .WithGuid(guid)
            .RespondWith(BuildGetFooResponse(hw));
            return(guid);
        }