public HashtagController(SocialMediaContext context, IMapper mapper, IHashtagService hashtagService, ITweetService tweetService)
 {
     _context        = context;
     _mapper         = mapper;
     _hashtagService = hashtagService;
     _tweetService   = tweetService;
 }
Exemplo n.º 2
0
 public UnitOfWork(SocialMediaContext context)
 {
     _context           = context;
     _postRepository    = new PostRepository(context);
     _commentRepository = new BaseRepository <Comment>(context);
     _userRepository    = new BaseRepository <User>(context);
 }
Exemplo n.º 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;
 }
Exemplo n.º 5
0
 public SecurityRepository(SocialMediaContext context) : base(context)
 {
 }
Exemplo n.º 6
0
 public TweetService(SocialMediaContext context, IUserService userService, IHashtagService hashtagService)
 {
     _context        = context;
     _userService    = userService;
     _hashtagService = hashtagService;
 }
 public BaseRepository(SocialMediaContext _db)
 {
     db       = _db;
     entities = db.Set <T>();
 }
Exemplo n.º 8
0
 public ValidateService(SocialMediaContext context)
 {
     _context = context;
 }
Exemplo n.º 9
0
 public BaseRepository(SocialMediaContext socialMediaContext)
 {
     this.socialMediaContext = socialMediaContext;
     entities = socialMediaContext.Set <T>();
 }
Exemplo n.º 10
0
 public RepositoryBase()
 {
     context = new SocialMediaContext();
 }
Exemplo n.º 11
0
 public PostRepository(SocialMediaContext context)
     : base(context)
 {
 }
Exemplo n.º 12
0
 public UnitOfWork(SocialMediaContext context)
 {
     _context = context;
 }
Exemplo n.º 13
0
 public UserService(SocialMediaContext context, ILogger <UserService> logger, ValidationService validationService)
 {
     _context           = context;
     _logger            = logger;
     _validationService = validationService;
 }
Exemplo n.º 14
0
 public SecurityRepository(SocialMediaContext _db) : base(_db)
 {
 }
Exemplo n.º 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;
 }
Exemplo n.º 17
0
 public TweetService(SocialMediaContext context, ILogger <TweetService> logger)
 {
     _context = context;
     _logger  = logger;
 }
Exemplo n.º 18
0
 public ValidationService(UserService userService, SocialMediaContext context)
 {
     UserService = userService;
     _context    = context;
 }
Exemplo n.º 19
0
 public PostRepository(SocialMediaContext socialMediaContext)
 {
     this.SocialMediaContext = socialMediaContext;
 }
Exemplo n.º 20
0
 public SecurityRepository(SocialMediaContext context)
 {
     context = _context;
 }
Exemplo n.º 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;
 }
Exemplo n.º 22
0
 public UserRepository(SocialMediaContext context)
 {
     _context = context;
 }
Exemplo n.º 23
0
 public UserService(SocialMediaContext context, ILogger <UserService> logger)
 {
     _context = context;
     _logger  = logger;
 }
Exemplo n.º 24
0
 public UnitOfWorkRepository(SocialMediaContext context)
 {
     _Context = context;
 }
Exemplo n.º 25
0
 public RepositoryBase(SocialMediaContext context)
 {
     this.context = context;
 }
Exemplo n.º 26
0
 /// <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;
 }
Exemplo n.º 27
0
 public PostRepository(SocialMediaContext context)
 {
     _context = context;
 }
Exemplo n.º 28
0
 public UserRepository(SocialMediaContext socialMediaContext)
 {
     _socialMediaContext = socialMediaContext;
 }
 public BaseRepository(SocialMediaContext context)
 {
     _context  = context;
     _entities = context.Set <T>();
 }
Exemplo n.º 30
0
 public HashtagService(SocialMediaContext context, ILogger <HashtagService> logger)
 {
     _context = context;
     _logger  = logger;
 }