Skip to content

Conversation

twenzel
Copy link
Contributor

@twenzel twenzel commented May 14, 2018

  • Add randomizer for Uri
  • Add randomizer for urls (strings)

Fixes #113

@Tynamix
Copy link
Owner

Tynamix commented May 14, 2018

Thank you very much for your contribution <3

Copy link
Owner

@Tynamix Tynamix left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Now, that we have a randomizer for type uri it is necessary to set it up as default randomizer for type uri. This can be done in the class FillerSetupItem in the method SetDefaultRandomizer - otherwise objectfiller would not use this great plugin by default.

/// </summary>
/// <param name="schemeType">Type of the scheme.</param>
/// <param name="domainNames">The possible domain names.</param>
public RandomUri(SchemeType schemeType, IEnumerable<string> domainNames)
Copy link
Owner

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

params string[] would be perfect

/// </summary>
/// <param name="schemeType">Type of the scheme.</param>
/// <param name="domainNames">The possible domain names.</param>
public RandomUrl(SchemeType schemeType, IEnumerable<string> domainNames)
Copy link
Owner

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

params string[] would be perfect

Set as default randomizer for type Uri
@Tynamix Tynamix merged commit 52e4645 into Tynamix:develop May 16, 2018
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants