add example project

This commit is contained in:
AJ Hoffer 2020-02-21 16:47:15 -05:00
parent a6f239a1cb
commit aafd06b07f
4 changed files with 125 additions and 2 deletions

24
Examples/Program.cs Normal file
View file

@ -0,0 +1,24 @@
using System;
namespace Examples
{
static class Program
{
static void Main(string[] args)
{
Console.WriteLine($"Email: {LoremNET.Generate.Email()}");
Console.WriteLine($"Chance: {LoremNET.Generate.Chance(1, 2)}");
Console.WriteLine($"Words: {LoremNET.Generate.Words(5)}");
Console.WriteLine();
Console.WriteLine("Change the source...");
LoremNET.Source.UpdateSource("Alright stop collaborate and listen ice is back with my brand new invention something grabs a hold of me tightly flow like a harpoon daily and nightly will it ever stop yo I don't know turn off the lights and I'll glow");
Console.WriteLine($"Sentence: {LoremNET.Generate.Sentence(5, 25)}");
Console.WriteLine();
Console.WriteLine("Press any key to exit...");
Console.ReadKey();
}
}
}