Skip to content

Commit

Permalink
Added the StarWars faker (#103)
Browse files Browse the repository at this point in the history
* Added the documentation.

* Added data for the StarWars faker.

* Set up the faker classes.

* Added the StarWarsFaker class to the main faker classes.

* Finished implementing the StarWars faker.
  • Loading branch information
mrstebo authored Jan 29, 2019
1 parent 7f637b6 commit d902e0c
Show file tree
Hide file tree
Showing 9 changed files with 943 additions and 5 deletions.
1 change: 1 addition & 0 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -39,6 +39,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.StarWars](doc/star_wars.md)
- [Faker.Superhero](doc/superhero.md)
- [Faker.Team](doc/team.md)
- [Faker.Time](doc/time.md)
Expand Down
25 changes: 25 additions & 0 deletions doc/star_wars.md
Original file line number Diff line number Diff line change
@@ -0,0 +1,25 @@
# Faker.StarWars

```cs
Faker.StarWars.CallSquadron() //=> "Green"
Faker.StarWars.CallSign() //=> "Grey 5"
Faker.StarWars.CallNumber() //=> "Leader"
Faker.StarWars.Character() //=> "Anakin Skywalker"
Faker.StarWars.Droid() //=> "C-3PO"
Faker.StarWars.Planet() //=> "Tatooine"
Faker.StarWars.Quote() //=> "Aren’t you a little short for a Stormtrooper?"
Faker.StarWars.Quote("leia_organa")() //=> "Aren’t you a little short for a Stormtrooper?"
Faker.StarWars.Specie() //=> "Gungan"
Faker.StarWars.Vehicle() //=> "Sandcrawler"
Faker.StarWars.WookieeSentence() //=> "Yrroonn ru ooma roo ahuma ur roooarrgh hnn-rowr."
```
Loading

0 comments on commit d902e0c

Please sign in to comment.