public UnitOfWorkEf(ApplicationDbContext context) { this.context = context; Gigs = new GigEfRepository(context); Attendances = new AttendanceEfRepository(context); Follows = new FollowEfRepository(context); Genres = new GenreEfRepository(context); Notifications = new NotificationEfRepository(context); UserNotifications = new UserNotificationEfRepository(context); }
public void TestInitialize() { mockGigs = new Mock <DbSet <Gig> >(); var mockContext = new Mock <IApplicationDbContext>(); mockContext.SetupGet(c => c.Gigs).Returns(mockGigs.Object); repository = new GigEfRepository(mockContext.Object); }