public ActionResult AccountInventory(string apiKey) { var request = new GetAccountInventoryRequest { GuildWars2ApiKey = apiKey }; var response = this.getAccountInventoryCommand.Execute(request); return(this.RespondWithJson(response.Result)); }
public void GetAccountInventoryWorks() { var request = new GetAccountInventoryRequest { GuildWars2ApiKey = this.testKey }; var inventorySummary = this.SystemUnderTest.Execute(request); var json = JsonConvert.SerializeObject(inventorySummary); this.output.WriteLine("Json: {0}", json); }