本文整理汇总了C#中IUsersRepository类的典型用法代码示例。如果您正苦于以下问题:C# IUsersRepository类的具体用法?C# IUsersRepository怎么用?C# IUsersRepository使用的例子?那么恭喜您, 这里精选的类代码示例或许可以为您提供帮助。
IUsersRepository类属于命名空间,在下文中一共展示了IUsersRepository类的15个代码示例,这些例子默认根据受欢迎程度排序。您可以为喜欢或者感觉有用的代码点赞,您的评价将有助于系统推荐出更棒的C#代码示例。
示例1: GrupyController
public GrupyController(IGrupyRepository repo, IUsersRepository repo1, IPrzedmiotyRepository repo2, ILogger logger)
{
_repo = repo;
_repo1 = repo1;
_repo2 = repo2;
_logger = logger;
}
示例2: UsersManager
public UsersManager(IUsersRepository repository, IPasswordHasher hasher)
{
if (repository == null) throw new ArgumentNullException("repository");
if (hasher == null) throw new ArgumentNullException("hasher");
_repository = repository;
_hasher = hasher;
}
示例3: ProjectsController
public ProjectsController(
IUsersRepository usersRepository,
IRepository<Project> projectsRepository)
{
this.usersRepository = usersRepository;
this.projectsRepository = projectsRepository;
}
示例4: MyTestInitialize
public void MyTestInitialize()
{
_repositoryStub = MockRepository.GenerateStub<IUsersRepository>();
_userMapperStub = MockRepository.GenerateStub<IMapper>();
_sut = new UsersController(_repositoryStub, _userMapperStub);
InitializeController(_sut);
}
示例5: GetUsersAll
public IList<User> GetUsersAll(UserFilter filterData, IUsersRepository repository)
{
ValidateRepositoryInstance(repository);
var users = repository.GetUsers(filterData, int.MaxValue, 0);
return users;
}
示例6: ChangePasswordViewModel
public ChangePasswordViewModel(IUsersRepository usersRepository)
{
this.usersRepository = usersRepository;
Title = "Смена пароля - ";
SaveCommand = new DelegateCommand<ChangePasswordArgs>(Save);
CloseCommand = new DelegateCommand(Close);
}
示例7: AlbumService
public AlbumService(IUsersRepository usersRepository, IAlbumRepository albumRepository, IPhotoRepository photoRepository, ITagRepository tagRepository)
{
this.mUserRepository = usersRepository;
this.mAlbumRepository = albumRepository;
this.mPhotoRepository = photoRepository;
this.mTagRepository = tagRepository;
}
示例8: UsersService
public UsersService(IUsersRepository usersRepository, IHashService hashService, IRolesService rolesService, IConstantsProvider constantsProvider)
{
UsersRepository = usersRepository;
HashService = hashService;
RolesService = rolesService;
ConstantsProvider = constantsProvider;
}
示例9: LoginController
public LoginController(IUsersRepository usrRep, IUserConfigurationItemsRepository cfgRep, IGroupsRepository grpRep, IRolesRepository rolRep, ITradersRepository trdRep)
{
_usersRepository = usrRep;
_userConfigurationItemsRepository = cfgRep;
_groupsRepository = grpRep;
_rolesRepository = rolRep;
_tradersRepository = trdRep;
}
示例10: ForumController
public ForumController(IMessagesRepository messages, IUsersRepository users,
ISectionsRepository sections, ITopicsRepository topics)
{
this.messages = messages;
this.users = users;
this.sections = sections;
this.topics = topics;
}
示例11: DataManager
public DataManager(IUsersRepository usersRepository, PrimaryMembershipProvider provider)
{
this.usersRepository = usersRepository;
this.provider = provider;
}
示例12: TranslateController
public TranslateController(ITranslationHistoryRepository translationHistoryRepository,
IUsersRepository usersRepositary,
ITranslatorHelper translator)
{
this._translationHistoryRepository = translationHistoryRepository;
this._usersRepositary = usersRepositary;
this._translator = translator;
}
示例13: DataController
public DataController(JsonConverter[] converters, ISummarizer repository, ISitesRepository sitesRepository, IErrorController errorController, IUsersRepository userRepository)
: base(errorController)
{
m_Converters = converters;
m_TimeSeriesRepository = repository;
m_SiteRepository = sitesRepository;
m_userRepository = userRepository;
}
示例14: UsersController
public UsersController(IUsersRepository usersRepository)
{
if (usersRepository == null)
{
throw new ArgumentNullException("usersRepository");
}
this.usersRepository = usersRepository;
}
示例15: UsersRunner
public UsersRunner(
IModelContext context,
INpgsqlConnectionFactory connectionFactory,
IUsersRepository repository)
{
_context = context;
_connectionFactory = connectionFactory;
_repository = repository;
}