Skip to content

Commit

Permalink
Added the MatzFaker 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 be0a085 commit 8c775c3
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 @@ -34,6 +34,7 @@ public static class Faker
public static IInternetFaker Internet { get; } = Container.Internet;
public static ILordOfTheRingsFaker LordOfTheRings { get; } = Container.LordOfTheRings;
public static ILoremFaker Lorem { get; } = Container.Lorem;
public static IMatzFaker Matz { get; } = Container.Matz;
public static IMusicFaker Music { get; } = Container.Music;
public static INameFaker Name { get; } = Container.Name;
public static INumberFaker Number { get; } = Container.Number;
Expand Down
3 changes: 3 additions & 0 deletions src/FakerDotNet/FakerContainer.cs
Original file line number Diff line number Diff line change
Expand Up @@ -32,6 +32,7 @@ internal interface IFakerContainer
IInternetFaker Internet { get; }
ILordOfTheRingsFaker LordOfTheRings { get; }
ILoremFaker Lorem { get; }
IMatzFaker Matz { get; }
IMusicFaker Music { get; }
INameFaker Name { get; }
INumberFaker Number { get; }
Expand Down Expand Up @@ -85,6 +86,7 @@ public FakerContainer()
Internet = new InternetFaker(this);
LordOfTheRings = new LordOfTheRingsFaker(this);
Lorem = new LoremFaker(this);
Matz = new MatzFaker(this);
Music = new MusicFaker(this);
Name = new NameFaker(this);
Number = new NumberFaker();
Expand Down Expand Up @@ -134,6 +136,7 @@ public FakerContainer()
public IInternetFaker Internet { get; }
public ILordOfTheRingsFaker LordOfTheRings { get; }
public ILoremFaker Lorem { get; }
public IMatzFaker Matz { get; }
public IMusicFaker Music { get; }
public INameFaker Name { get; }
public INumberFaker Number { 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 @@ -183,6 +183,12 @@ public void Lorem_returns_ILoremFaker()
Assert.IsInstanceOf<ILoremFaker>(_fakerContainer.Lorem);
}

[Test]
public void Matz_returns_IMatzFaker()
{
Assert.IsInstanceOf<IMatzFaker>(_fakerContainer.Matz);
}

[Test]
public void Music_returns_IMusicFaker()
{
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 @@ -175,6 +175,12 @@ public void Lorem_returns_ILoremFaker()
Assert.IsInstanceOf<ILoremFaker>(Faker.Lorem);
}

[Test]
public void Matz_returns_IMatzFaker()
{
Assert.IsInstanceOf<IMatzFaker>(Faker.Matz);
}

[Test]
public void Music_returns_IMusicFaker()
{
Expand Down

0 comments on commit 8c775c3

Please sign in to comment.