CardShopTest.TestHelper.ListOfUsers.GetListOfUsers C# (CSharp) Method

GetListOfUsers() public static method

Creates a list of Users with: UserID of n a Username of "Tank"+n Name of "Frank" + n Password of of pass UserRole of Role.User
public static GetListOfUsers ( int UsersWanted ) : List
UsersWanted int Number of Users you want to create
return List
        public static List<User> GetListOfUsers(int UsersWanted)
        {
            listOfUsers = new List<User>();
            for (int index = 0; index < UsersWanted; index++)
            {
                User user = new User();
                user.UserId = index;
                user.FirstName = "Tank" + index;
                user.LastName = "Frank" + index;
                user.Email = "pass";
                user.RoleId = 1;
                listOfUsers.Add(user);
            }
            return listOfUsers;
        }