TryAtSoftware.Randomizer is a library that should simplify the generation process of random values. We offer a reusable methodology that can be applied to every projects of yours.
During the instantiation of an entity, its constructor may require additional random data. Consider what architecture changes would be required in order to simplify the current process.
Instead of AddRandomizationRule and OverrideRandomizationRule (and the corresponding extension methods), there should be a single Randomize method. We believe that by doing so, the syntax will become much more simpler.
Error Message:
System.OverflowException : Negating the minimum value of a twos complement number is invalid.
Stack Trace:
at TryAtSoftware.Randomizer.Core.Helpers.RandomizationHelper.RandomInteger(Int32 inclusiveBottomBound, Int32 exclusiveUpperBound)
at TryAtSoftware.Randomizer.Core.Helpers.RandomizationHelper.GetRandomStringCombination(Int32 length, IReadOnlyList`1 possibleChars)
at TryAtSoftware.Randomizer.Core.Helpers.RandomizationHelper.GetRandomString(Int32 length, String charactersMask)
at TryAtSoftware.Randomizer.Core.Helpers.RandomizationHelper.GetRandomString()
The usage of reflection should be reduced to minimum. Information about the constructors should be retrieved once per type.
No Activator.CreateInstance calls should exist. Use compiled expressions.