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