public void Seed() { var context = new GigHubContext(); if (context.Users.Any()) { return; } context.Users.Add(new ApplicationUser { UserName = "******", Name = "user1", Email = "-", PasswordHash = "-" }); context.Users.Add(new ApplicationUser { UserName = "******", Name = "user2", Email = "-", PasswordHash = "-" }); context.SaveChanges(); }
public void SetUp() { _context = new GigHubContext(); _controller = new GigsController(new UnitOfWork(_context)); }
public GenreRepository(GigHubContext context) { _context = context; }
public FollowingRepository(GigHubContext context) { _context = context; }
public UserNotificationRepository(GigHubContext context) { _context = context; }
public AttendanceRepository(GigHubContext context) { _context = context; }
public ApplicationUserRepository(GigHubContext context) { _context = context; }