示例#1
0
 private static IEnumerable <string> UserEmails(int numUsers)
 {
     for (int i = 0; i < numUsers; i++)
     {
         yield return(FakeInternet.Email());
     }
 }
示例#2
0
        private static IEnumerable <string> UserEmail(int numUsers)
        {
            var bogus = new Bogus.DataSets.Internet();

            for (int i = 0; i < numUsers; i++)
            {
                yield return(bogus.Email());
            }
        }