Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Users/adilatic/coderub-create-o-tokenizations #55

Open
wants to merge 3 commits into
base: main
Choose a base branch
from
Open
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
Original file line number Diff line number Diff line change
Expand Up @@ -38,7 +38,7 @@ public static TheoryData DependencyExceptions()
};
}

private static string GetRandomString() =>
private static string CreateRandomString() =>
new MnemonicString().GetValue();

private static (List<string>, string) GenerateRandomSqlQueryProperties()
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -22,7 +22,7 @@ public void ShouldThrowDependencyValidationExceptionOnOTokenizeIfDependencyValid
Xeption dependencyValidationException)
{
// given
string someQuery = GetRandomString();
string someQuery = CreateRandomString();

var expectedOTokenizeOrchestrationDependencyValidationException =
new OTokenizationOrchestrationDependencyValidationException(
Expand Down Expand Up @@ -69,7 +69,7 @@ public void ShouldThrowDependencyExceptionOnOTokenizeIfDependencyErrorOccurs(
Xeption dependencyException)
{
// given
string someQuery = GetRandomString();
string someQuery = CreateRandomString();

var expectedOTokenizationOrchestrationDependencyException =
new OTokenizationOrchestrationDependencyException(
Expand Down Expand Up @@ -114,7 +114,7 @@ public void ShouldThrowDependencyExceptionOnOTokenizeIfDependencyErrorOccurs(
public void ShouldThrowServiceExceptionOnOTokenizeIfServiceErrorOccurs()
{
// given
string someQuery = GetRandomString();
string someQuery = CreateRandomString();
var serviceException = new Exception();

var failedTokenizationOrchestrationServiceException =
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -45,7 +45,7 @@ public OTokenizationOrchestrationServiceTests()

public static TheoryData DependencyValidationExceptions()
{
string randomMessage = GetRandomString();
string randomMessage = CreateRandomString();
var someException = new Xeption(randomMessage);

return new TheoryData<Xeption>
Expand All @@ -58,7 +58,7 @@ public static TheoryData DependencyValidationExceptions()

public static TheoryData DependencyExceptions()
{
string randomMessage = GetRandomString();
string randomMessage = CreateRandomString();
var someException = new Xeption(randomMessage);

return new TheoryData<Xeption>
Expand Down Expand Up @@ -92,8 +92,7 @@ private Expression<Func<OToken[], bool>> SameOTokensAs(
private static OToken CreateRandomOToken() =>
CreateOTokenFiller().Create();

private static string GetRandomString() =>
new MnemonicString(wordCount: GetRandomCount()).GetValue();
private static string CreateRandomString() => new MnemonicString(wordCount: GetRandomCount()).GetValue();

private static int GetRandomCount() =>
new IntRange(min: 2, max: 10).GetValue();
Expand Down