コード例 #1
0
 public RequestService(
     IRepository <Request> requestRepository,
     IRepository <Book> bookRepository,
     IMapper mapper,
     IEmailSenderService emailSenderService,
     IRepository <User> userRepository,
     IPaginationService paginationService,
     IRepository <Language> bookLanguageRepository,
     IHangfireJobScheduleService hangfireJobScheduleService,
     IRepository <BookAuthor> bookAuthorRepository,
     IRepository <BookGenre> bookGenreRepository,
     IRepository <UserRoom> userLocationRepository,
     IRootRepository <BookRootComment> rootCommentRepository,
     IWishListService wishListService,
     INotificationsService notificationsService)
 {
     _requestRepository          = requestRepository;
     _bookRepository             = bookRepository;
     _mapper                     = mapper;
     _emailSenderService         = emailSenderService;
     _userRepository             = userRepository;
     _paginationService          = paginationService;
     _hangfireJobScheduleService = hangfireJobScheduleService;
     _bookGenreRepository        = bookGenreRepository;
     _bookLanguageRepository     = bookLanguageRepository;
     _bookAuthorRepository       = bookAuthorRepository;
     _userLocationRepository     = userLocationRepository;
     _rootCommentRepository      = rootCommentRepository;
     _wishListService            = wishListService;
     _notificationsService       = notificationsService;
 }
コード例 #2
0
 public RootService(
     IRootRepository rootRepository,
     ISettingRepository settingRepository)
 {
     _rootRepository    = rootRepository;
     _settingRepository = settingRepository;
 }
コード例 #3
0
 public BookRootCommentService(IRootRepository <BookRootComment> rootCommentRepository, ICommentOwnerMapper commentOwnerMapper,
                               IRepository <Book> bookRepository)
 {
     _rootCommentRepository = rootCommentRepository;
     _commentOwnerMapper    = commentOwnerMapper;
     _bookRepository        = bookRepository;
 }
コード例 #4
0
        public static GeneralPurposeTree <T> CreateARoot <T>(IRootRepository <T> repo, string name = "Deneme")
        {
            GeneralPurposeTree <T> insertedRoot;
            long idBeforeInserted;

            CreateARoot <T>(repo, out insertedRoot, out idBeforeInserted, name);
            return(insertedRoot);
        }
コード例 #5
0
 public UserService(
     IRootRepository rootRepository,
     ISettingRepository settingRepository,
     IDbCustomerDatabaseFactory customerContextFactory)
     : base(
         rootRepository,
         settingRepository)
 {
     _customerContextFactory = customerContextFactory;
 }
コード例 #6
0
 public static void CreateARoot <T>(IRootRepository <T> repo, out GeneralPurposeTree <T> root, out long createdId,
                                    string name = "Deneme")
 {
     //root = new GeneralPurposeTree<T> { Name = name, Initiator = "murat" };
     BindRepoTypeToDb <IRootRepository <T> >();
     root           = Kernel.Get <GeneralPurposeTree <T> >();
     root.Name      = name;
     root.Initiator = "murat";
     createdId      = root.Id;
     repo.InsertRoot(root);
 }
コード例 #7
0
 public AuthService(
     IRootRepository rootRepository,
     ISettingRepository settingRepository,
     IDbCustomerDatabaseFactory customerContextFactory,
     IMapper mapper)
     : base(
         rootRepository,
         settingRepository)
 {
     _customerContextFactory = customerContextFactory;
     _mapper = mapper;
 }
コード例 #8
0
ファイル: RootController.cs プロジェクト: mmStiver/JonasTest
 public RootController(ScoreCardContext context, ILoggerFactory logFactory, IMemoryCache memoryCache, IOptions <ApiSettings> options)
     : base(context, logFactory, memoryCache, options)
 {
     this._repository = new RootRepository(this._context);
 }
コード例 #9
0
 public RootService(IRootRepository rootRepository, IUserRepository userRepository)
 {
     _rootRepository = rootRepository;
     _userRepository = userRepository;
 }