public UserIDAssociation(User_Account.UserInfo user = null, User_Account.BusinessAccountInfo business = null, User_Account.ShopperAccountInfo shopper = null) { this.user = user != null ? user : new User_Account.UserInfo(); this.business = business; this.shopper = shopper; }
public void loadTestData() { //create first test user User_Account.UserInfo user1 = new User_Account.UserInfo( "bugsbunny", "stinker", "Bugs", "", "Bunny", ""); User_Account.BusinessAccountInfo bus1 = new User_Account.BusinessAccountInfo( "cartoon1", "Acme Solutions", ""); this.addUser(new UserIDAssociation(user1, bus1)); //create second test user User_Account.UserInfo user2 = new User_Account.UserInfo( "johndoe", "jd123", "John", "", "Doe", ""); User_Account.BusinessAccountInfo bus2 = new User_Account.BusinessAccountInfo( "hunt12", "John's Hunting Apparrell", ""); this.addUser(new UserIDAssociation(user2, bus2)); //create third test user User_Account.UserInfo user3 = new User_Account.UserInfo( "janedoe", "ja87", "Jane", "", "Doe", ""); User_Account.BusinessAccountInfo bus3 = new User_Account.BusinessAccountInfo( "rocker43", "Rockers of America", ""); this.addUser(new UserIDAssociation(user3, bus3)); }