public HashtagController(SocialMediaContext context, IMapper mapper, IHashtagService hashtagService, ITweetService tweetService)
 {
     _context        = context;
     _mapper         = mapper;
     _hashtagService = hashtagService;
     _tweetService   = tweetService;
 }
Exemple #2
0
 public UnitOfWork(SocialMediaContext context)
 {
     _context           = context;
     _postRepository    = new PostRepository(context);
     _commentRepository = new BaseRepository <Comment>(context);
     _userRepository    = new BaseRepository <User>(context);
 }
Exemple #3
0
 public TweetService(SocialMediaContext context, IHashtagService hashtagService, IUserService userService, ILogger <UserService> logger)
 {
     _context        = context;
     _hashtagService = hashtagService;
     _userService    = userService;
     _logger         = logger;
 }
 public TweetsController(IMapper mapper, SocialMediaContext context, ITweetService tweetService, IHashtagService hashtagService, IUserService userService)
 {
     _mapper         = mapper;
     _context        = context;
     _tweetService   = tweetService;
     _hashtagService = hashtagService;
     _userService    = userService;
 }
Exemple #5
0
 public SecurityRepository(SocialMediaContext context) : base(context)
 {
 }
 public TweetService(SocialMediaContext context, IUserService userService, IHashtagService hashtagService)
 {
     _context        = context;
     _userService    = userService;
     _hashtagService = hashtagService;
 }
 public BaseRepository(SocialMediaContext _db)
 {
     db       = _db;
     entities = db.Set <T>();
 }
 public ValidateService(SocialMediaContext context)
 {
     _context = context;
 }
Exemple #9
0
 public BaseRepository(SocialMediaContext socialMediaContext)
 {
     this.socialMediaContext = socialMediaContext;
     entities = socialMediaContext.Set <T>();
 }
 public RepositoryBase()
 {
     context = new SocialMediaContext();
 }
Exemple #11
0
 public PostRepository(SocialMediaContext context)
     : base(context)
 {
 }
Exemple #12
0
 public UnitOfWork(SocialMediaContext context)
 {
     _context = context;
 }
Exemple #13
0
 public UserService(SocialMediaContext context, ILogger <UserService> logger, ValidationService validationService)
 {
     _context           = context;
     _logger            = logger;
     _validationService = validationService;
 }
Exemple #14
0
 public SecurityRepository(SocialMediaContext _db) : base(_db)
 {
 }
Exemple #15
0
 /// <summary>
 /// Initialize a new instance of the
 /// TagRepository with the provided context.
 /// </summary>
 /// <param name="context">The context.</param>
 public TagRepository(SocialMediaContext context)
 {
     db = context;
 }
 public ValidationController(SocialMediaContext socialMediaContext, IHashtagService hashtagService, IUserService userService)
 {
     _socialMediaContext = socialMediaContext;
     _hashtagService     = hashtagService;
     _userService        = userService;
 }
Exemple #17
0
 public TweetService(SocialMediaContext context, ILogger <TweetService> logger)
 {
     _context = context;
     _logger  = logger;
 }
Exemple #18
0
 public ValidationService(UserService userService, SocialMediaContext context)
 {
     UserService = userService;
     _context    = context;
 }
Exemple #19
0
 public PostRepository(SocialMediaContext socialMediaContext)
 {
     this.SocialMediaContext = socialMediaContext;
 }
 public SecurityRepository(SocialMediaContext context)
 {
     context = _context;
 }
Exemple #21
0
 /// <summary>
 /// Initialize a new instance of the
 /// RoleRepository with the provided context.
 /// </summary>
 /// <param name="context">The context.</param>
 public RoleRepository(SocialMediaContext context)
 {
     db = context;
 }
Exemple #22
0
 public UserRepository(SocialMediaContext context)
 {
     _context = context;
 }
Exemple #23
0
 public UserService(SocialMediaContext context, ILogger <UserService> logger)
 {
     _context = context;
     _logger  = logger;
 }
Exemple #24
0
 public UnitOfWorkRepository(SocialMediaContext context)
 {
     _Context = context;
 }
 public RepositoryBase(SocialMediaContext context)
 {
     this.context = context;
 }
 /// <summary>
 /// Initialize a new instance of the
 /// PostReplyRepository with the provided context.
 /// </summary>
 /// <param name="context">The context.</param>
 public PostReplyRepository(SocialMediaContext context)
 {
     db = context;
 }
Exemple #27
0
 public PostRepository(SocialMediaContext context)
 {
     _context = context;
 }
Exemple #28
0
 public UserRepository(SocialMediaContext socialMediaContext)
 {
     _socialMediaContext = socialMediaContext;
 }
 public BaseRepository(SocialMediaContext context)
 {
     _context  = context;
     _entities = context.Set <T>();
 }
Exemple #30
0
 public HashtagService(SocialMediaContext context, ILogger <HashtagService> logger)
 {
     _context = context;
     _logger  = logger;
 }