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; }
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 UserRoleService(IUserRoleRepository repository, IUnitOfWork unitOfWork, IRoleRepository roleRepository, IUserCategoryRepository userCategoryRepository) : base(repository, unitOfWork) { this.repository = repository; this.unitOfWork = unitOfWork; this.roleRepository = roleRepository; this.userCategoryRepository = userCategoryRepository; }
public override void SetUp() { base.SetUp(); _userCategoryService = ServiceLocator.Current.GetInstance <IUserCategoryService>(); _userCategoryRepository = ServiceLocator.Current.GetInstance <IUserCategoryRepository>(); _categoryRepository = ServiceLocator.Current.GetInstance <ICategoryRepository>(); _categoryFavouriteLevelRepository = ServiceLocator.Current.GetInstance <ICategoryFavouriteLevelRepository>(); _unitOfWork = ServiceLocator.Current.GetInstance <IUnitOfWork>(); }
public UserService(IUserRepository repository, IUnitOfWork unitOfWork, IUserExtendRepository userExtendRepository, IUserCategoryRepository userCategoryRepository, IRoleRepository roleRepository, IUserGroupRepository userGroupRepository, IGroupRepository groupRepository) : base(repository, unitOfWork) { this.repository = repository; this.unitOfWork = unitOfWork; this.userCategoryRepository = userCategoryRepository; this.userExtendRepository = userExtendRepository; this.userGroupRepository = userGroupRepository; this.roleRepository = roleRepository; this.groupRepository = groupRepository; }
public CommentService(ICommentRepository repository, IUnitOfWork unitOfWork, IUserRepository userRepository, ISurveyRepository surveyRepository, IUserNotificationRepository userNotificationRepository, IUserCategoryRepository userCategoryRepository, INotificationRepository notificationRepository, ILikeOrDislikeCommentRepository likeOrDislikeCommentRepository) : base(repository, unitOfWork) { this.repository = repository; this.unitOfWork = unitOfWork; this.userNotificationRepository = userNotificationRepository; this.surveyRepository = surveyRepository; this.userRepository = userRepository; this.userCategoryRepository = userCategoryRepository; this.notificationRepository = notificationRepository; this.likeOrDislikeCommentRepository = likeOrDislikeCommentRepository; }
public UserCategoryService(IUserCategoryRepository repository, IUnitOfWork unitOfWork) : base(repository, unitOfWork) { this.repository = repository; this.unitOfWork = unitOfWork; }
public UserCategoryService(IUserCategoryRepository userCategoryRepository) { _userCategoryRepository = userCategoryRepository; }
public UserCategoryAppService(IUserCategoryRepository repository) { _repository = repository; }