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