mirror of
https://github.com/danieleteti/delphimvcframework.git
synced 2024-11-15 07:45:54 +01:00
updated facebook group logo
added a unit test
This commit is contained in:
parent
a290e6ca03
commit
1a19fa9e1d
Binary file not shown.
Before Width: | Height: | Size: 58 KiB After Width: | Height: | Size: 50 KiB |
@ -624,6 +624,20 @@ begin
|
||||
Params.free;
|
||||
end;
|
||||
|
||||
Params := TMVCRequestParamsTable.Create;
|
||||
try
|
||||
CheckTrue(Router.ExecuteRouting('/orders/àèéìòù .-_\', httpGET, 'text/plain', 'text/plain', Controllers,
|
||||
'text/plain', TMVCMimeType.TEXT_PLAIN, Params, ResponseContentType, ResponseContentEncoding));
|
||||
CheckEquals(1, Params.Count);
|
||||
CheckEquals('àèéìòù .-_\', Params['ordernumber']);
|
||||
CheckEquals('TSimpleController', Router.MVCControllerClass.ClassName);
|
||||
CheckEquals('OrderNumber', Router.MethodToCall.Name);
|
||||
finally
|
||||
Params.free;
|
||||
end;
|
||||
|
||||
|
||||
|
||||
end;
|
||||
|
||||
procedure TTestRouting.TestProduceRoutings;
|
||||
|
Loading…
Reference in New Issue
Block a user