private List <FakeUser> CreateOneUser(int total) { var list = new List <FakeUser>(); if (total < 1) { return(list); } for (int i = 0; i < total; i++) { var gender = FakeUtility.CreateGender(); var fakeUser = new FakeUser() { Id = FakeUtility.CreateGuid(), RealName = FakeUtility.CreatePersonName(gender), Username = FakeUtility.CreateUsername(), Password = FakeUtility.CreatePassword(), Address = "XXXX路yy号", Mobile = FakeUtility.CreateMobile(), Email = FakeUtility.CreateEmail(), Points = FakeUtility.RandomInt(0, 100), Birthday = FakeUtility.CreateBirthday(), PersonHeight = FakeUtility.CreatePersonHeight(), CreateTime = DateTime.Now }; list.Add(fakeUser); } return(list); }
private FakeUser CreateOneUser() { var gender = FakeUtility.CreateGender(); var fakeUser = new FakeUser() { Id = FakeUtility.CreateGuid(), RealName = FakeUtility.CreatePersonName(gender), Username = FakeUtility.CreateUsername(), Password = FakeUtility.CreatePassword(), Address = "XXXX路yy号", Mobile = FakeUtility.CreateMobile(), Email = FakeUtility.CreateEmail(), Points = FakeUtility.RandomInt(0, 100), Birthday = FakeUtility.CreateBirthday(), PersonHeight = FakeUtility.CreatePersonHeight(), CreateTime = DateTime.Now }; return(fakeUser); }