Skip to content

Commit

Permalink
Add Space faker (#64)
Browse files Browse the repository at this point in the history
* Add Space faker

* Space faker tidy-up: Reformat space data. Add missing unit test. Remove method copied from other faker.

* Add Space faker to Faker.cs

* Add docs for Space faker.

* Tidy up Space doc

* Tidy up Space doc

* Ensured the faker is the same format as the rest.

* Updated the tests.
  • Loading branch information
c-d authored and mrstebo committed Feb 2, 2019
1 parent 9ff74a1 commit 8a1f9aa
Show file tree
Hide file tree
Showing 11 changed files with 1,081 additions and 361 deletions.
1 change: 1 addition & 0 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -45,6 +45,7 @@ A .NET port of the Ruby [faker](https://github.com/stympy/faker) gem
- [Faker.RickAndMorty](doc/rick_and_morty.md)
- [Faker.RockBand](doc/rockband.md)
- [Faker.SlackEmoji](doc/slackemoji.md)
- [Faker.Space](doc/space.md)
- [Faker.StarWars](doc/star_wars.md)
- [Faker.Superhero](doc/superhero.md)
- [Faker.Team](doc/team.md)
Expand Down
45 changes: 45 additions & 0 deletions doc/space.md
Original file line number Diff line number Diff line change
@@ -0,0 +1,45 @@
// Faker.Space

```cs
// Random planet from our Solar System
Faker.Space.Planet() //=> "Venus"
// Random moon from our Solar System
Faker.Space.Moon() //=> "Europa"
// Random galaxy
Faker.Space.Galaxy() //=> "Andromeda"
// Random nebula name
Faker.Space.Nebula() //=> "Triffid Nebula"
// Random star cluster
Faker.Space.StarCluster() //=> "Messier 70"
// Random constellation
Faker.Space.Constellation() //=> "Orion"
// Random star
Faker.Space.Star() //=> "Proxima Centauri"
// Random national space agency
Faker.Space.Agency() //=> "Japan Aerospace Exploration Agency"
// Random space agency abbreviation
Faker.Space.AgencyAbv() //=> "NASA"
// Random spacecraft name (limited to NASA)
Faker.Space.NaseSpaceCraft() //=> "Endeavour"
// Random private space company title
Faker.Space.Company() //=> "SpaceX"
// Random unit of stellar distance with number
Faker.Space.DistanceMeasurement() //=> "15 parsecs"
// Random meteorite name
Faker.Space.Meteorite() //=> "Ensisheim"
// Random launch vehicule name
Faker.Space.LaunchVehicle() //=> "Saturn IV"
```
Loading

0 comments on commit 8a1f9aa

Please sign in to comment.