Esempio n. 1
0
        public async Task GetQuestTypesIndexAsync_Gets_QuestTypesIndex()
        {
            IQuestApi warcraftClient = ClientFactory.BuildClient();
            RequestResult <QuestTypesIndex> result = await warcraftClient.GetQuestTypesIndexAsync("static-us");

            Assert.NotNull(result.Value);
        }
Esempio n. 2
0
    public async Task GetQuestTypesIndexAsync_Gets_QuestTypesIndex()
    {
        IQuestApi warcraftClient = ClientFactory.BuildClient();

        RequestResult <QuestTypesIndex> result = await warcraftClient.GetQuestTypesIndexAsync("static-us");

        await result.Should().BeSuccessfulRequest()
        .BeEquivalentToBlizzardResponseAsync("https://us.api.blizzard.com/data/wow/quest/type/index?namespace=static-us&locale=en_US");
    }
Esempio n. 3
0
        public async Task GetQuestTypesIndexAsync_Gets_QuestTypesIndex()
        {
            IQuestApi warcraftClient = ClientFactory.BuildMockClient(
                requestUri: "https://us.api.blizzard.com/data/wow/quest/type/index?namespace=static-us&locale=en_US",
                responseContent: Resources.QuestTypesIndexResponse);

            RequestResult <QuestTypesIndex> result = await warcraftClient.GetQuestTypesIndexAsync("static-us");

            Assert.NotNull(result.Value);
        }