コード例 #1
0
 public UserServices(IDbGenericRepository<User, string> userRepos, IDbRepository<UserComment> userCommentRepos)
 {
     this.userRepos = userRepos;
     this.dbContext = new TripDestinationDbContext();
     this.userManager = new UserManager<User>(new UserStore<User>(this.dbContext));
     this.userCommentRepos = userCommentRepos;
 }
コード例 #2
0
 /// <summary>
 /// Constructor
 /// </summary>
 /// <param name="userRepo">Repo to help interact with the users db records</param>
 /// <param name="wordsRepo">Repo to help intercat with the words db records</param>
 /// <param name="categoriesRepo">Repo to help interact with the categories db records</param>
 public GameController(IDbGenericRepository <ApplicationUser, string> userRepo, IDbRepository <Word> wordsRepo,
                       IDbRepository <WordCategory> categoriesRepo)
 {
     users      = userRepo;
     words      = wordsRepo;
     categories = categoriesRepo;
 }
コード例 #3
0
 public ParticipantService(IDbGenericRepository<Participant> participants)
 {
     this.participants = participants;
 }
コード例 #4
0
ファイル: UserService.cs プロジェクト: chunk1ty/VoteSystem
 public UserService(IDbGenericRepository<User> users, IParticipantService participants)
 {
     this.users = users;
     this.participants = participants;
 }
コード例 #5
0
 public QuestionAnswerService(IDbGenericRepository<QuestionAnswer> questionAndAnswers)
 {
     this.questionAndAnswers = questionAndAnswers;
 }
コード例 #6
0
 public PhotoServices(IDbGenericRepository<Photo, int> photoRepos)
 {
     this.photoRepos = photoRepos;
 }
コード例 #7
0
 public ParticipantAnswerService(IDbGenericRepository<ParticipantAnswer> userAnswers)
 {
     this.userAnswers = userAnswers;
 }
コード例 #8
0
 public UsersService(IDbGenericRepository<User, string> users)
 {
     this.users = users;
 }
コード例 #9
0
 public QuestionService(IDbGenericRepository<Question> questions, IIdentifierProvider identifierProvider)
 {
     this.questions = questions;
     this.identifierProvider = identifierProvider;
 }
コード例 #10
0
 //private readonly UserStore userStore = new UserStore<ApplicationUser>(new ApplicationDbContext());
 public OrganisationsService(IDbRepository<Organisation> organisations, IDbGenericRepository<ApplicationUser, string> users)
 {
     this.organisations = organisations;
     this.users = users;
 }