-
Notifications
You must be signed in to change notification settings - Fork 12
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- Loading branch information
Showing
9 changed files
with
196 additions
and
0 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,6 @@ | ||
# Faker.RuPaul | ||
|
||
```cs | ||
Faker.RuPaul.Quote() //=> "That's Funny, Tell Another One" | ||
Faker.RuPaul.Queen() //=> "Latrice Royale" | ||
``` |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,103 @@ | ||
using System.Collections.Generic; | ||
|
||
namespace FakerDotNet.Data | ||
{ | ||
internal static class RuPaulData | ||
{ | ||
public static readonly IEnumerable<string> Queens = new[] | ||
{ | ||
"Tyra Sanchez", | ||
"Raven", | ||
"Jujubee", | ||
"Tatianna", | ||
"Pandora Boxx", | ||
"Jessica Wild", | ||
"Sahara Davenport", | ||
"Morgan McMichaels", | ||
"Shangela Wadley", | ||
"Raja", | ||
"Manila Luzon", | ||
"Alexis Mateo", | ||
"Yara Sofia", | ||
"Carmen Carrera", | ||
"Delta Work", | ||
"Stacy Layne Matthews", | ||
"Mimi Imfurst", | ||
"Sharon Needles", | ||
"Chad Michaels", | ||
"Phi Phi O'Hara", | ||
"Latrice Royale", | ||
"Kenya Michaels", | ||
"Dida Ritz", | ||
"Willam", | ||
"Jiggly Caliente", | ||
"Jinkx Monsoon", | ||
"Alaska", | ||
"Roxxxy Andrews", | ||
"Detox", | ||
"Coco Montrese", | ||
"Alyssa Edwards", | ||
"Ivy Winters", | ||
"Bianca Del Rio", | ||
"Adore Delano", | ||
"Courtney Act", | ||
"Darienne Lake", | ||
"BenDeLaCreme", | ||
"Joslyn Fox", | ||
"Trinity K Bonet", | ||
"Laganja Estranja", | ||
"Milk", | ||
"Gia Gunn", | ||
"Violet Chachki", | ||
"Ginger Minj", | ||
"Pearl", | ||
"Kennedy Davenport", | ||
"Katya", | ||
"Trixie Mattel", | ||
"Miss Fame", | ||
"Bob The Drag Queen", | ||
"Kim Chi", | ||
"Naomi Smalls", | ||
"Chi Chi DeVayne", | ||
"Derrick Barry", | ||
"Thorgy Thor", | ||
"Robbie Turner", | ||
"Acid Betty", | ||
"Sasha Velour", | ||
"Peppermint", | ||
"Shea Coulee", | ||
"Trinity Taylor", | ||
"Alexis Michelle", | ||
"Nina Bonina Brown", | ||
"Valentina", | ||
"Farrah Moan", | ||
"Aja", | ||
"Cynthia Lee Fontaine" | ||
}; | ||
|
||
public static readonly IEnumerable<string> Quotes = new[] | ||
{ | ||
"Glamazon!", | ||
"Put The Bass In Your Walk", | ||
"Sashay Away", | ||
"Don't F*ck It Up", | ||
"Shante, You Stay", | ||
"Shante, Shante, Shante", | ||
"You Betta Work", | ||
"Lip-Sync for Your Life", | ||
"Extravaganza Eleganza", | ||
"Let the music play", | ||
"That's Funny, Tell Another One", | ||
"Sissy That Walk", | ||
"Don't Be Jealous Of My Boogie", | ||
"You're Born Naked, The Rest Is Drag", | ||
"Life Is About Using The Whole Box Of Crayons", | ||
"When The Going Gets Tough, The Tough Reinvent", | ||
"Hello Hello Hello!", | ||
"Bring Back My Girls", | ||
"Just Between Us Squirrel Friends", | ||
"Get Out Your Library Cards", | ||
"Silence...I've made my decision" | ||
}; | ||
} | ||
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,30 @@ | ||
using FakerDotNet.Data; | ||
|
||
namespace FakerDotNet.Fakers | ||
{ | ||
public interface IRuPaulFaker | ||
{ | ||
string Quote(); | ||
string Queen(); | ||
} | ||
|
||
internal class RuPaulFaker : IRuPaulFaker | ||
{ | ||
private readonly IFakerContainer _fakerContainer; | ||
|
||
public RuPaulFaker(IFakerContainer fakerContainer) | ||
{ | ||
_fakerContainer = fakerContainer; | ||
} | ||
|
||
public string Quote() | ||
{ | ||
return _fakerContainer.Random.Element(RuPaulData.Quotes); | ||
} | ||
|
||
public string Queen() | ||
{ | ||
return _fakerContainer.Random.Element(RuPaulData.Queens); | ||
} | ||
} | ||
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,40 @@ | ||
using FakeItEasy; | ||
using FakerDotNet.Data; | ||
using FakerDotNet.Fakers; | ||
using NUnit.Framework; | ||
|
||
namespace FakerDotNet.Tests.Fakers | ||
{ | ||
[TestFixture] | ||
[Parallelizable] | ||
public class RuPaulFakerTests | ||
{ | ||
[SetUp] | ||
public void SetUp() | ||
{ | ||
_fakerContainer = A.Fake<IFakerContainer>(); | ||
_ruPaulFaker = new RuPaulFaker(_fakerContainer); | ||
} | ||
|
||
private IFakerContainer _fakerContainer; | ||
private IRuPaulFaker _ruPaulFaker; | ||
|
||
[Test] | ||
public void Quote_returns_a_quote() | ||
{ | ||
A.CallTo(() => _fakerContainer.Random.Element(RuPaulData.Quotes)) | ||
.Returns("That's Funny, Tell Another One"); | ||
|
||
Assert.AreEqual("That's Funny, Tell Another One", _ruPaulFaker.Quote()); | ||
} | ||
|
||
[Test] | ||
public void Queen_returns_a_queen() | ||
{ | ||
A.CallTo(() => _fakerContainer.Random.Element(RuPaulData.Queens)) | ||
.Returns("Latrice Royale"); | ||
|
||
Assert.AreEqual("Latrice Royale", _ruPaulFaker.Queen()); | ||
} | ||
} | ||
} |