예제 #1
0
        public async Task GetTitleAsync_Gets_Title()
        {
            ITitleApi             warcraftClient = ClientFactory.BuildClient();
            RequestResult <Title> result         = await warcraftClient.GetTitleAsync(1, "static-us");

            Assert.NotNull(result.Value);
        }
예제 #2
0
    public async Task GetTitleAsync_Gets_Title()
    {
        ITitleApi warcraftClient = ClientFactory.BuildMockClient(
            requestUri: "https://us.api.blizzard.com/data/wow/title/1?namespace=static-us&locale=en_US",
            responseContent: Resources.TitleResponse);

        RequestResult <Title> result = await warcraftClient.GetTitleAsync(1, "static-us");

        Assert.NotNull(result.Value);
    }