Skip to content

xtofs/MonGen

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

18 Commits
 
 
 
 
 
 
 
 

Repository files navigation

MonGen

Monadic data generatorcs in C#

Example:

   public class Person
   {
       public int Id { get; set; }
       public string Name { get; set; }
       public DateTime Birthday { get; set; }
   }

   public static IGenerator<Person> Gen =
       from i in Generators.Range(0, 100)
       from n in Generators.Regex("[A-Z][a-z]{2,16}")
       from d in Generators.Range(DateTime.Parse("1930-01-01T00:00:00Z"), DateTime.Parse("2017-01-01T00:00:00Z"))
       select new Person { Id = i, Name = n, Birthday = d };

About

Monadic data generators

Topics

Resources

License

Stars

Watchers

Forks

Releases

No releases published

Packages

 
 
 

Contributors