コード例 #1
0
        public async Task GetPlayableSpecializationsIndexAsync_Gets_PlayableSpecializationsIndex()
        {
            IPlayableSpecializationApi warcraftClient           = ClientFactory.BuildClient();
            RequestResult <PlayableSpecializationsIndex> result = await warcraftClient.GetPlayableSpecializationsIndexAsync("static-us");

            Assert.NotNull(result.Value);
        }
コード例 #2
0
    public async Task GetPlayableSpecializationsIndexAsync_Gets_PlayableSpecializationsIndex()
    {
        IPlayableSpecializationApi warcraftClient = ClientFactory.BuildClient();

        RequestResult <PlayableSpecializationsIndex> result = await warcraftClient.GetPlayableSpecializationsIndexAsync("static-us");

        await result.Should().BeSuccessfulRequest()
        .BeEquivalentToBlizzardResponseAsync("https://us.api.blizzard.com/data/wow/playable-specialization/index?namespace=static-us&locale=en_US");
    }
コード例 #3
0
        public async void GetPlayableSpecializationsIndexAsync_Gets_PlayableSpecializationsIndex()
        {
            IPlayableSpecializationApi warcraftClient = ClientFactory.BuildMockClient(
                requestUri: "https://us.api.blizzard.com/data/wow/playable-specialization/index?namespace=static-us&locale=en_US",
                responseContent: Resources.PlayableSpecializationsIndexResponse);

            RequestResult <PlayableSpecializationsIndex> result = await warcraftClient.GetPlayableSpecializationsIndexAsync("static-us");

            Assert.NotNull(result.Value);
        }