Пример #1
0
        public async Task CategoryAsync_successfully_returns_a_category()
        {
            LatestUniverseEndpoints internalLatestUniverse = new LatestUniverseEndpoints(string.Empty, true);

            V1UniverseCategory returnModel = await internalLatestUniverse.CategoryAsync(int.MinValue);

            Assert.NotNull(returnModel);
            Assert.Equal(6, returnModel.CategoryId);
            Assert.Equal(3, returnModel.Groups.Count);
            Assert.Equal(25, returnModel.Groups[0]);
            Assert.Equal(26, returnModel.Groups[1]);
            Assert.Equal(27, returnModel.Groups[2]);
            Assert.Equal("Ship", returnModel.Name);
            Assert.True(returnModel.Published);
        }