Skip to content

Commit

Permalink
Added the LoremFlickrFaker to the main faker classes.
Browse files Browse the repository at this point in the history
  • Loading branch information
mrstebo committed Feb 4, 2019
1 parent fb07c0c commit b2c0a42
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 ILoremFlickrFaker LoremFlickr { get; } = Container.LoremFlickr;
public static IMatzFaker Matz { get; } = Container.Matz;
public static IMusicFaker Music { get; } = Container.Music;
public static INameFaker Name { get; } = Container.Name;
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; }
ILoremFlickrFaker LoremFlickr { get; }
IMatzFaker Matz { get; }
IMusicFaker Music { get; }
INameFaker Name { get; }
Expand Down Expand Up @@ -87,6 +88,7 @@ public FakerContainer()
Internet = new InternetFaker(this);
LordOfTheRings = new LordOfTheRingsFaker(this);
Lorem = new LoremFaker(this);
LoremFlickr = new LoremFlickrFaker(this);
Matz = new MatzFaker(this);
Music = new MusicFaker(this);
Name = new NameFaker(this);
Expand Down Expand Up @@ -138,6 +140,7 @@ public FakerContainer()
public IInternetFaker Internet { get; }
public ILordOfTheRingsFaker LordOfTheRings { get; }
public ILoremFaker Lorem { get; }
public ILoremFlickrFaker LoremFlickr { get; }
public IMatzFaker Matz { get; }
public IMusicFaker Music { get; }
public INameFaker Name { 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 LoremFlickr_returns_ILoremFlickrFaker()
{
Assert.IsInstanceOf<ILoremFlickrFaker>(_fakerContainer.LoremFlickr);
}

[Test]
public void Matz_returns_IMatzFaker()
{
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 LoremFlickr_returns_ILoremFlickrFaker()
{
Assert.IsInstanceOf<ILoremFlickrFaker>(Faker.LoremFlickr);
}

[Test]
public void Matz_returns_IMatzFaker()
{
Expand Down

0 comments on commit b2c0a42

Please sign in to comment.