Exemplo n.º 1
0
 // We will have two constructors, one with Random Generated values the other with manual. This helps in Testing
 public User(Random random)
 {
     UserName    = RandomGenerator.RND_UserNames(random);
     Password    = "******";
     FirstName   = RandomGenerator.RND_FirstName(random);
     LastName    = RandomGenerator.RND_LastName(random);
     PhoneNumber = RandomGenerator.RND_PhoneNumber(random);
     Email       = $"{FirstName}.{LastName}@gmail.com";
     Address     = RandomGenerator.RND_Adress(random);
     UserWallet  = new Ewallet(this);
     BetsPlaced  = new List <Bet>();
 }
Exemplo n.º 2
0
 // We will have two constructors, one with Random Generated values the other with manual. This helps in Testing
 public User(string userName, string password, string firstName, string lastName, string phoneNumber, string email, string address)
 {
     UserName    = userName;
     Password    = password;
     FirstName   = firstName;
     LastName    = lastName;
     PhoneNumber = phoneNumber;
     Email       = email;
     Address     = address;
     UserWallet  = new Ewallet(this);
     BetsPlaced  = new List <Bet>();
 }