public IdentityUnitOfWork( FriendsAndTravelDbContext db, SignInManager <User> signInManager, UserManager <User> userManager, RoleManager <IdentityRole> roleManager, ICategoryRepository categoryRepository, IUserCategoryRepository userCategoryRepository, IUserProfileRepository UserProfileRepository, IUserEventRepository userEventRepository, IEventRepository eventRepository, IEventCategoryRepository eventCategoryRepository, IPhotoRepository photoRepository, IEventPhotoRepository eventPhotoRepository, ILocationRepository locationRepository ) { Database = db; UserManager = userManager; RoleManager = roleManager; SignInManager = signInManager; UserCategoryRepository = userCategoryRepository; CategoryRepository = categoryRepository; this.userProfileRepository = UserProfileRepository; UserEventRepository = userEventRepository; EventCategoryRepository = eventCategoryRepository; EventRepository = eventRepository; PhotoRepository = photoRepository; EventPhotoRepository = eventPhotoRepository; LocationRepository = locationRepository; }
public IdentityUnitOfWork(ILocationRepository _locationRepository, IProfileManager _profileManager, AppDBContext db, SignInManager <User> signInManager, UserManager <User> userManager, RoleManager <IdentityRole> roleManager, IPhotoRepository _photoRepository, ICategoryRepository _categoriesRepository, IUserCategoryRepository _userCategoryRepository, IEventCategoryRepository _eventCategoryRepository, IEventPhotoRepository _eventPhotoRepository, IEventRepository _eventRepository, IEventVisitorsRepository _eventVisitorsRepository) { Database = db; UserManager = userManager; RoleManager = roleManager; SignInManager = signInManager; LocationRepository = _locationRepository; ProfileManager = _profileManager; PhotoRepository = _photoRepository; CategoryRepository = _categoriesRepository; UserCategoryRepository = _userCategoryRepository; EventCategoryRepository = _eventCategoryRepository; EventPhotoRepository = _eventPhotoRepository; EventRepository = _eventRepository; EventVisitorsRepository = _eventVisitorsRepository; }