public UsersService(IRepository <User> usersRepository, IRepository <Manager> managersRepository, IUnitOfWork unitOfWork, IUsersFactory usersFactory, IManagersFactory managerFactory) { this.usersRepository = usersRepository; this.managersRepository = managersRepository; this.unitOfWork = unitOfWork; this.usersFactory = usersFactory; this.managerFactory = managerFactory; }
/// <summary> /// Initializes the <see cref="KbContext"/> class. /// </summary> /// <param name="provider">The provider.</param> /// <param name="factory">The factory.</param> public KbContext(IDalObjectProvider provider, IManagersFactory factory) : base(provider) { if (provider == null) { throw new ArgumentNullException("provider"); } if (factory == null) { throw new ArgumentNullException("factory"); } _factory = factory; }