public async Task GetMountAsync_Gets_Mount() { IMountApi warcraftClient = ClientFactory.BuildClient(); RequestResult <Mount> result = await warcraftClient.GetMountAsync(6, "static-us"); Assert.NotNull(result.Value); }
public async Task GetMountAsync_Gets_Mount() { IMountApi warcraftClient = ClientFactory.BuildClient(); RequestResult <Mount> result = await warcraftClient.GetMountAsync(6, "static-us"); await result.Should().BeSuccessfulRequest() .BeEquivalentToBlizzardResponseAsync("https://us.api.blizzard.com/data/wow/mount/6?namespace=static-us&locale=en_US"); }
public async void GetMountAsync_Gets_Mount() { IMountApi warcraftClient = ClientFactory.BuildMockClient( requestUri: "https://us.api.blizzard.com/data/wow/mount/6?namespace=static-us&locale=en_US", responseContent: Resources.MountResponse); RequestResult <Mount> result = await warcraftClient.GetMountAsync(6, "static-us"); Assert.NotNull(result.Value); }