package testclient

import (
	"net/http"

	"github.com/AlchemyTelcoSolutions/callisto-so-bff/internal/domain/model"
)

// ForwardRequest is a integration test function for CreateFromAcution
func (c Client) ForwardRequest(path string) *model.ProxyResponse {
	w := newCustomResponseWriter()
	req := newRequestBuilder(http.MethodGet)
	r := req.getRequest()
	c.client.ForwarRequest(w, r, path)
	return &model.ProxyResponse{
		BodyBytes:  w.body,
		StatusCode: w.statusCode,
	}
}
