Exemplo n.º 1
0
        /// <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);
            }
        }
Exemplo n.º 2
0
 /// <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;
 }
Exemplo n.º 3
0
 /// <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();
 }