/// <summary> /// Defines the entry point of the application. /// </summary> /// <param name="args">The arguments.</param> private static void Main(string[] args) { var MyServices = new ServiceCollection(); // Note that in an ASP.Net app, you'd just use the service collection it feeds you. MyServices.AddCanisterModules(); // Wire up Mirage and other libraries using Canister. Mirage.Random RandomGenerator = new Mirage.Random(); // Create Mirage object for (var x = 0; x < 1000; ++x) { var NewUser = RandomGenerator.Next <User>(); // Generate random User object Console.WriteLine(NewUser); } }
/// <summary> /// Initializes a new instance of the <see cref="DefaultGenerator"/> class. /// </summary> /// <param name="random">The random.</param> public DefaultGenerator(Mirage.Random random) { RandomObj = random; }
/// <summary> /// Initializes a new instance of the <see cref="BoundaryGenerator"/> class. /// </summary> /// <param name="random">The random.</param> public BoundaryGenerator(Mirage.Random random) { Random = random; SetupMaxValues(); SetupMinValues(); }