Skip to content

Commit

Permalink
Merge pull request #56 from ADILATIC/users/adi/coderub-create-O-Queries
Browse files Browse the repository at this point in the history
CODE RUB: Rename Method to Create String
  • Loading branch information
TehWardy authored Feb 16, 2024
2 parents ce5dcc2 + eefc719 commit 7c6c8e4
Show file tree
Hide file tree
Showing 2 changed files with 4 additions and 4 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -18,7 +18,7 @@ public void ShouldGetOQueryFromExpression()
{
// given
Expression randomExpression = CreateMockedExpression();
string randomTableName = GetRandomString();
string randomTableName = CreateRandomString();

(List<string> properites, string sqlProperties) =
GenerateRandomSqlQueryProperties();
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -38,20 +38,20 @@ public static TheoryData DependencyExceptions()
};
}

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

private static (List<string>, string) GenerateRandomSqlQueryProperties()
{
int randomNumber = GetRandomNumber();
string randomSqlVariable = GetRandomString();
string randomSqlVariable = CreateRandomString();
List<string> properties = new List<string>();

string[] sqlProperties = Enumerable.Range(start: 0, count: randomNumber)
.Select(item =>
{
string randomPropertyName =
GetRandomString();
CreateRandomString();
properties.Add(randomPropertyName);
Expand Down

0 comments on commit 7c6c8e4

Please sign in to comment.