Removing test code

This commit is contained in:
Rikki Tooley 2014-11-09 15:51:48 +00:00
parent e99ba1fb77
commit 7d754407c6

View File

@ -279,21 +279,11 @@ private async Task ExecuteSelectedCommand()
var parametersProperty = genericType.GetProperty("Parameters",
BindingFlags.Public | BindingFlags.Instance);
parametersProperty.SetValue(instance, parameters);
//test
var command = new GetRecentStationsCommand(_lastAuth, "tehrikkit")
{
Count = 5,
Page = 1
};
await command.ExecuteAsync();
// execute
var executeMethod = genericType.GetMethods().First(m => m.Name == "ExecuteAsync");
await (dynamic) executeMethod.Invoke(instance, null);
// cast so we can get the Json response
var dummyCommand = (IDummyCommand) instance;
var jo = dummyCommand.Response;