Skip to content

Commit

Permalink
Added the RuPaulFaker to the main faker classes.
Browse files Browse the repository at this point in the history
  • Loading branch information
mrstebo committed Feb 3, 2019
1 parent 8ce6890 commit 58c2df6
Show file tree
Hide file tree
Showing 4 changed files with 16 additions and 0 deletions.
1 change: 1 addition & 0 deletions src/FakerDotNet/Faker.cs
Original file line number Diff line number Diff line change
Expand Up @@ -43,6 +43,7 @@ public static class Faker
public static IRandomFaker Random { get; } = Container.Random;
public static IRickAndMortyFaker RickAndMorty { get; } = Container.RickAndMorty;
public static IRockBandFaker RockBand { get; } = Container.RockBand;
public static IRuPaulFaker RuPaul { get; } = Container.RuPaul;
public static ISlackEmojiFaker SlackEmoji { get; } = Container.SlackEmoji;
public static ISpaceFaker Space { get; } = Container.Space;
public static IStarWarsFaker StarWars { get; } = Container.StarWars;
Expand Down
3 changes: 3 additions & 0 deletions src/FakerDotNet/FakerContainer.cs
Original file line number Diff line number Diff line change
Expand Up @@ -41,6 +41,7 @@ internal interface IFakerContainer
IRandomFaker Random { get; }
IRickAndMortyFaker RickAndMorty { get; }
IRockBandFaker RockBand { get; }
IRuPaulFaker RuPaul { get; }
ISlackEmojiFaker SlackEmoji { get; }
ISpaceFaker Space { get; }
IStarWarsFaker StarWars { get; }
Expand Down Expand Up @@ -94,6 +95,7 @@ public FakerContainer()
Random = new RandomFaker();
RickAndMorty = new RickAndMortyFaker(this);
RockBand = new RockBandFaker(this);
RuPaul = new RuPaulFaker(this);
SlackEmoji = new SlackEmojiFaker(this);
Space = new SpaceFaker(this);
StarWars = new StarWarsFaker(this);
Expand Down Expand Up @@ -143,6 +145,7 @@ public FakerContainer()
public IRandomFaker Random { get; }
public IRickAndMortyFaker RickAndMorty { get; }
public IRockBandFaker RockBand { get; }
public IRuPaulFaker RuPaul { get; }
public ISlackEmojiFaker SlackEmoji { get; }
public ISpaceFaker Space { get; }
public IStarWarsFaker StarWars { get; }
Expand Down
6 changes: 6 additions & 0 deletions tests/FakerDotNet.Tests/FakerContainerTests.cs
Original file line number Diff line number Diff line change
Expand Up @@ -237,6 +237,12 @@ public void RockBand_returns_IRockBandFaker()
Assert.IsInstanceOf<IRockBandFaker>(_fakerContainer.RockBand);
}

[Test]
public void RuPaul_returns_IRuPaulFaker()
{
Assert.IsInstanceOf<IRuPaulFaker>(_fakerContainer.RuPaul);
}

[Test]
public void SlackEmoji_returns_ISlackEmoji()
{
Expand Down
6 changes: 6 additions & 0 deletions tests/FakerDotNet.Tests/FakerTests.cs
Original file line number Diff line number Diff line change
Expand Up @@ -229,6 +229,12 @@ public void RockBand_returns_IRockBandFaker()
Assert.IsInstanceOf<IRockBandFaker>(Faker.RockBand);
}

[Test]
public void RuPaul_returns_IRuPaulFaker()
{
Assert.IsInstanceOf<IRuPaulFaker>(Faker.RuPaul);
}

[Test]
public void SlackEmoji_returns_ISlackEmoji()
{
Expand Down

0 comments on commit 58c2df6

Please sign in to comment.