Пример #1
0
        public ActionResult AccountInventory(string apiKey)
        {
            var request = new GetAccountInventoryRequest {
                GuildWars2ApiKey = apiKey
            };
            var response = this.getAccountInventoryCommand.Execute(request);

            return(this.RespondWithJson(response.Result));
        }
Пример #2
0
        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);
        }