Beispiel #1
0
        public async Task GetMountsIndexAsync_Gets_MountsIndex()
        {
            IMountApi warcraftClient           = ClientFactory.BuildClient();
            RequestResult <MountsIndex> result = await warcraftClient.GetMountsIndexAsync("static-us");

            Assert.NotNull(result.Value);
        }
Beispiel #2
0
    public async Task GetMountsIndexAsync_Gets_MountsIndex()
    {
        IMountApi warcraftClient = ClientFactory.BuildClient();

        RequestResult <MountsIndex> result = await warcraftClient.GetMountsIndexAsync("static-us");

        await result.Should().BeSuccessfulRequest()
        .BeEquivalentToBlizzardResponseAsync("https://us.api.blizzard.com/data/wow/mount/index?namespace=static-us&locale=en_US");
    }
Beispiel #3
0
        public async void GetMountsIndexAsync_Gets_MountsIndex()
        {
            IMountApi warcraftClient = ClientFactory.BuildMockClient(
                requestUri: "https://us.api.blizzard.com/data/wow/mount/index?namespace=static-us&locale=en_US",
                responseContent: Resources.MountsIndexResponse);

            RequestResult <MountsIndex> result = await warcraftClient.GetMountsIndexAsync("static-us");

            Assert.NotNull(result.Value);
        }