Ejemplo n.º 1
0
        private Store setUpTestStore(double userBalance, List <Product> products)
        {
            var users = new List <User>();

            users.Add(CommonTestSetup.createTestUser("Test User", "", userBalance));

            var dataManager = new DataManager(users, products);

            return(new Store(users[0], dataManager));
        }
 private User CreateTestUser(string userName, string password)
 {
     return(CommonTestSetup.createTestUser(userName, password, 99.99));
 }