Major rework of HttpRoutes.

Implemented DI based routes.
Implemented converters for HttpRequest and HttpResponse.
Fixed e2e tests.
This commit is contained in:
Alexandru Macocian
2021-03-09 15:19:54 +01:00
parent 8ad0b27029
commit 50669ad289
19 changed files with 370 additions and 82 deletions
@@ -0,0 +1,13 @@
using MTSC.Common.Http.RoutingModules;
using System.Threading.Tasks;
namespace MTSC.UnitTests.RoutingModules
{
public class SomeRoutingModule : HttpRouteBase<SomeRoutingRequest, SomeRoutingResponse>
{
public override Task<SomeRoutingResponse> HandleRequest(SomeRoutingRequest request)
{
return Task.FromResult(new SomeRoutingResponse());
}
}
}