Skip to content

Commit

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

* Added the data for the Music faker.

* Implemented the Music faker.

* Added the MusicFaker to the main faker class.
  • Loading branch information
mrstebo authored Jan 29, 2019
1 parent 9613b5e commit 02e29e7
Show file tree
Hide file tree
Showing 10 changed files with 566 additions and 1 deletion.
3 changes: 2 additions & 1 deletion FakerDotNet.sln.DotSettings
Original file line number Diff line number Diff line change
@@ -1,3 +1,4 @@
<wpf:ResourceDictionary xml:space="preserve" xmlns:x="http://schemas.microsoft.com/winfx/2006/xaml" xmlns:s="clr-namespace:System;assembly=mscorlib" xmlns:ss="urn:shemas-jetbrains-com:settings-storage-xaml" xmlns:wpf="http://schemas.microsoft.com/winfx/2006/xaml/presentation">
<s:String x:Key="/Default/CodeStyle/Naming/CSharpNaming/Abbreviations/=IP/@EntryIndexedValue">IP</s:String>
<s:String x:Key="/Default/CodeStyle/Naming/CSharpNaming/Abbreviations/=RNG/@EntryIndexedValue">RNG</s:String></wpf:ResourceDictionary>
<s:String x:Key="/Default/CodeStyle/Naming/CSharpNaming/Abbreviations/=RNG/@EntryIndexedValue">RNG</s:String>
<s:Boolean x:Key="/Default/UserDictionary/Words/=Ukelele/@EntryIndexedValue">True</s:Boolean></wpf:ResourceDictionary>
1 change: 1 addition & 0 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -32,6 +32,7 @@ A .NET port of the Ruby [faker](https://github.com/stympy/faker) gem
- [Faker.HarryPotter](doc/harry_potter.md)
- [Faker.Internet](doc/internet.md)
- [Faker.Lorem](doc/lorem.md)
- [Faker.Music](doc/music.md)
- [Faker.Name](doc/name.md)
- [Faker.Number](doc/number.md)
- [Faker.PhoneNumber](doc/phone_number.md)
Expand Down
15 changes: 15 additions & 0 deletions doc/music.md
Original file line number Diff line number Diff line change
@@ -0,0 +1,15 @@
# Faker.Music

```cs
Faker.Music.Key() //=> "C"
Faker.Music.Chord() //=> "Amaj7"
Faker.Music.Instrument() //=> "Ukelele"
Faker.Music.Band() //=> "The Beatles"
Faker.Music.Album() //=> "Sgt. Pepper's Lonely Hearts Club"
Faker.Music.Genre() //=> "Rock"
```
Loading

0 comments on commit 02e29e7

Please sign in to comment.