Exemplo n.º 1
0
        public async Task GetReputationFactionAsync_Gets_ReputationFaction()
        {
            IReputationsApi warcraftClient           = ClientFactory.BuildClient();
            RequestResult <ReputationFaction> result = await warcraftClient.GetReputationFactionAsync(21, "static-us");

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

        RequestResult <ReputationFaction> result = await warcraftClient.GetReputationFactionAsync(21, "static-us");

        await result.Should().BeSuccessfulRequest()
        .BeEquivalentToBlizzardResponseAsync("https://us.api.blizzard.com/data/wow/reputation-faction/21?namespace=static-us&locale=en_US");
    }
Exemplo n.º 3
0
    public async Task GetReputationFactionAsync_Gets_ReputationFaction()
    {
        IReputationsApi warcraftClient = ClientFactory.BuildMockClient(
            requestUri: "https://us.api.blizzard.com/data/wow/reputation-faction/21?namespace=static-us&locale=en_US",
            responseContent: Resources.ReputationFactionResponse);

        RequestResult <ReputationFaction> result = await warcraftClient.GetReputationFactionAsync(21, "static-us");

        Assert.NotNull(result.Value);
    }