예제 #1
0
        public async Task GetTalentAsync_Gets_Talent()
        {
            ITalentApi warcraftClient = ClientFactory.BuildMockClient(
                requestUri: "https://us.api.blizzard.com/data/wow/talent/23106?namespace=static-us&locale=en_US",
                responseContent: Resources.TalentResponse);

            RequestResult <Talent> result = await warcraftClient.GetTalentAsync(23106, "static-us");

            Assert.NotNull(result.Value);
        }
예제 #2
0
    public async Task GetPvpTalentsIndexAsync_Gets_PvpTalentsIndex()
    {
        ITalentApi warcraftClient = ClientFactory.BuildMockClient(
            requestUri: "https://us.api.blizzard.com/data/wow/pvp-talent/index?namespace=static-us&locale=en_US",
            responseContent: Resources.PvpTalentsIndexResponse);

        RequestResult <PvpTalentsIndex> result = await warcraftClient.GetPvpTalentsIndexAsync("static-us");

        Assert.NotNull(result.Value);
    }