// [TestMethod] public void PupulateRandomUsersTableData() { UserRepository repository = new UserRepository(MovieDbContext.Create(), new ApplicationUserManager(new UserStore <ApplicationUser>(new MovieDbContext())), new ApplicationRoleManager(new RoleStore <IdentityRole>(new MovieDbContext()))); var personGenerator = new PersonNameGenerator(); var randomNames = personGenerator.GenerateMultipleFirstAndLastNames(20); foreach (var n in randomNames) { var names = n.Split(' '); var user = new ApplicationUser() { UserName = names[0] + names[1] + "@gmail.com", Email = names[0] + names[1] + "@gmail.com", FirstName = names[0], LastName = names[1], DateOfBirth = RandomDay() }; var addUserResult = repository.CreatUserAsync(user, "Antra2018!").Result; } Assert.AreEqual(0, 0); }
public MovieController() { movieContext = MovieDbContext.Create(); }
public NewRentalController() { movieContext = MovieDbContext.Create(); }
public CustomerController() { movieContext = MovieDbContext.Create(); }