Exemple #1
0
 public DbBoardService(OakDbContext context, IMapper mapper, IPostService posts, ThrowHelper throwHelper)
 {
     this.context     = context;
     this.mapper      = mapper;
     this.posts       = posts;
     this.throwHelper = throwHelper;
 }
Exemple #2
0
 public DbPostService(IAttachmentsStorage attachmentsStorage,
                      IHashService hashService,
                      OakDbContext context,
                      IMapper mapper,
                      ThrowHelper throwHelper)
 {
     this.attachmentsStorage = attachmentsStorage;
     this.hashService        = hashService;
     this.context            = context;
     this.mapper             = mapper;
     this.throwHelper        = throwHelper;
 }
 public FavoriteThreadsService(OakDbContext context)
 {
     this.context = context ?? throw new ArgumentNullException(nameof(context));
 }
Exemple #4
0
 public DbUserService(OakDbContext context, IMapper mapper)
 {
     this.context = context;
     this.mapper  = mapper;
 }