Exemplo n.º 1
0
        public async Task GetCreatureFamiliesIndexAsync_Gets_CreatureFamiliesIndex()
        {
            ICreatureApi warcraftClient = ClientFactory.BuildClient();
            RequestResult <CreatureFamiliesIndex> result = await warcraftClient.GetCreatureFamiliesIndexAsync("static-us");

            Assert.NotNull(result.Value);
        }
Exemplo n.º 2
0
    public async Task GetCreatureFamiliesIndexAsync_Gets_CreatureFamiliesIndex()
    {
        ICreatureApi warcraftClient = ClientFactory.BuildClient();

        RequestResult <CreatureFamiliesIndex> result = await warcraftClient.GetCreatureFamiliesIndexAsync("static-us");

        await result.Should().BeSuccessfulRequest()
        .BeEquivalentToBlizzardResponseAsync("https://us.api.blizzard.com/data/wow/creature-family/index?namespace=static-us&locale=en_US");
    }
Exemplo n.º 3
0
        public async Task GetCreatureFamiliesIndexAsync_Gets_CreatureFamiliesIndex()
        {
            ICreatureApi warcraftClient = ClientFactory.BuildMockClient(
                requestUri: "https://us.api.blizzard.com/data/wow/creature-family/index?namespace=static-us&locale=en_US",
                responseContent: Resources.CreatureFamiliesIndexResponse);

            RequestResult <CreatureFamiliesIndex> result = await warcraftClient.GetCreatureFamiliesIndexAsync("static-us");

            Assert.NotNull(result.Value);
        }