Ejemplo 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);
        }
Ejemplo 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");
    }
Ejemplo 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);
        }