Ejemplo n.º 1
0
        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();
        }
Ejemplo n.º 2
0
 public void SetUp()
 {
     _context    = new GigHubContext();
     _controller = new GigsController(new UnitOfWork(_context));
 }
Ejemplo n.º 3
0
 public GenreRepository(GigHubContext context)
 {
     _context = context;
 }
Ejemplo n.º 4
0
 public FollowingRepository(GigHubContext context)
 {
     _context = context;
 }
Ejemplo n.º 5
0
 public UserNotificationRepository(GigHubContext context)
 {
     _context = context;
 }
Ejemplo n.º 6
0
 public AttendanceRepository(GigHubContext context)
 {
     _context = context;
 }
Ejemplo n.º 7
0
 public ApplicationUserRepository(GigHubContext context)
 {
     _context = context;
 }