예제 #1
0
        public void Region_successfully_returns_a_region()
        {
            LatestUniverseEndpoints internalLatestUniverse = new LatestUniverseEndpoints(string.Empty, true);

            V1UniverseRegion returnModel = internalLatestUniverse.Region(int.MinValue);

            Assert.NotNull(returnModel);
            Assert.Equal(2, returnModel.Constellations.Count);
            Assert.Equal(20000302, returnModel.Constellations[0]);
            Assert.Equal(20000303, returnModel.Constellations[1]);
            Assert.Equal("It has long been an established fact of civilization...", returnModel.Description);
            Assert.Equal("Metropolis", returnModel.Name);
            Assert.Equal(10000042, returnModel.RegionId);
        }