mirror of
https://github.com/AlexMacocian/MTSC.git
synced 2026-07-22 18:29:31 +00:00
50669ad289
Implemented DI based routes. Implemented converters for HttpRequest and HttpResponse. Fixed e2e tests.
14 lines
379 B
C#
14 lines
379 B
C#
using MTSC.Common.Http;
|
|
using MTSC.Common.Http.RoutingModules;
|
|
|
|
namespace MTSC.UnitTests.RoutingModules
|
|
{
|
|
public class SomeResponseConverter : IResponseConverter<SomeRoutingResponse>
|
|
{
|
|
public HttpResponse ConvertResponse(SomeRoutingResponse response)
|
|
{
|
|
return new HttpResponse { StatusCode = HttpMessage.StatusCodes.OK };
|
|
}
|
|
}
|
|
}
|