Esempio n. 1
0
        public async Task GetRegionsIndexAsync_Gets_RegionsIndex()
        {
            IRegionApi warcraftClient           = ClientFactory.BuildClient();
            RequestResult <RegionsIndex> result = await warcraftClient.GetRegionsIndexAsync("dynamic-us");

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

        RequestResult <RegionsIndex> result = await warcraftClient.GetRegionsIndexAsync("dynamic-us");

        await result.Should().BeSuccessfulRequest()
        .BeEquivalentToBlizzardResponseAsync("https://us.api.blizzard.com/data/wow/region/index?namespace=dynamic-us&locale=en_US");
    }
Esempio n. 3
0
        public async Task GetRegionsIndexAsync_Gets_RegionsIndex()
        {
            IRegionApi warcraftClient = ClientFactory.BuildMockClient(
                requestUri: "https://us.api.blizzard.com/data/wow/region/index?namespace=dynamic-us&locale=en_US",
                responseContent: Resources.RegionsIndexResponse);

            RequestResult <RegionsIndex> result = await warcraftClient.GetRegionsIndexAsync("dynamic-us");

            Assert.NotNull(result.Value);
        }