Beispiel #1
0
        public async Task GetPlayableRacesIndexAsync_Gets_PlayableRacesIndex()
        {
            IConnectedRealmApi warcraftClient           = ClientFactory.BuildClient();
            RequestResult <ConnectedRealmsIndex> result = await warcraftClient.GetConnectedRealmsIndexAsync("dynamic-us");

            Assert.NotNull(result.Value);
        }
Beispiel #2
0
        public async Task GetRealmAsync_Gets_Realm()
        {
            IConnectedRealmApi             warcraftClient = ClientFactory.BuildClient();
            RequestResult <ConnectedRealm> result         = await warcraftClient.GetConnectedRealmAsync(11, "dynamic-us");

            Assert.NotNull(result.Value);
        }
    public async Task GetPlayableRacesIndexAsync_Gets_PlayableRacesIndex()
    {
        IConnectedRealmApi warcraftClient = ClientFactory.BuildClient();

        RequestResult <ConnectedRealmsIndex> result = await warcraftClient.GetConnectedRealmsIndexAsync("dynamic-us");

        await result.Should().BeSuccessfulRequest()
        .BeEquivalentToBlizzardResponseAsync("https://us.api.blizzard.com/data/wow/connected-realm/index?namespace=dynamic-us&locale=en_US");
    }
    public async Task GetPlayableRacesIndexAsync_Gets_PlayableRacesIndex()
    {
        IConnectedRealmApi warcraftClient = ClientFactory.BuildMockClient(
            requestUri: "https://us.api.blizzard.com/data/wow/connected-realm/index?namespace=dynamic-us&locale=en_US",
            responseContent: Resources.ConnectedRealmsIndexResponse);

        RequestResult <ConnectedRealmsIndex> result = await warcraftClient.GetConnectedRealmsIndexAsync("dynamic-us");

        Assert.NotNull(result.Value);
    }
Beispiel #5
0
        public async void GetRealmAsync_Gets_Realm()
        {
            IConnectedRealmApi warcraftClient = ClientFactory.BuildMockClient(
                requestUri: "https://us.api.blizzard.com/data/wow/connected-realm/11?namespace=dynamic-us&locale=en_US",
                responseContent: Resources.ConnectedRealmResponse);

            RequestResult <ConnectedRealm> result = await warcraftClient.GetConnectedRealmAsync(11, "dynamic-us");

            Assert.NotNull(result.Value);
        }