Esempio n. 1
0
        public async Task GroupsAsync_successfully_returns_a_PagedModel_of_ints()
        {
            LatestUniverseEndpoints internalLatestUniverse = new LatestUniverseEndpoints(string.Empty, true);

            PagedModel <int> response = await internalLatestUniverse.GroupsAsync(1);

            Assert.Equal(1, response.CurrentPage);
            Assert.Equal(3, response.Model.Count);
            Assert.Equal(1, response.Model[0]);
            Assert.Equal(2, response.Model[1]);
            Assert.Equal(3, response.Model[2]);
        }