示例#1
0
 public void LocationFakerTest()
 {
     DisplayAndExecute(new Expression <Func <string> >[] {
         () => LocationFaker.City(),
         () => LocationFaker.Country(),
         () => LocationFaker.PostCode(),
         () => LocationFaker.Street(),
         () => LocationFaker.StreetName(),
         () => LocationFaker.ZipCode(),
     });
     DisplayAndExecute(new Expression <Func <int> >[] {
         () => LocationFaker.StreetNumber(),
     });
 }
示例#2
0
        public static string Street()
        {
            int num = LocationFaker.StreetNumber();

            return(string.Concat(num.ToString(), " ", LocationFaker.StreetName()));
        }