public async Task GetSpellAsync_Gets_Spell() { ISpellApi warcraftClient = ClientFactory.BuildClient(); RequestResult <Spell> result = await warcraftClient.GetSpellAsync(196607, "static-us"); Assert.NotNull(result.Value); }
public async Task GetSpellAsync_Gets_Spell() { ISpellApi warcraftClient = ClientFactory.BuildClient(); RequestResult <Spell> result = await warcraftClient.GetSpellAsync(196607, "static-us"); await result.Should().BeSuccessfulRequest() .BeEquivalentToBlizzardResponseAsync("https://us.api.blizzard.com/data/wow/spell/196607?namespace=static-us&locale=en_US"); }
public async Task GetSpellAsync_Gets_Spell() { ISpellApi warcraftClient = ClientFactory.BuildMockClient( requestUri: "https://us.api.blizzard.com/data/wow/spell/196607?namespace=static-us&locale=en_US", responseContent: Resources.SpellResponse); RequestResult <Spell> result = await warcraftClient.GetSpellAsync(196607, "static-us"); Assert.NotNull(result.Value); }