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