コード例 #1
0
ファイル: EntryController.cs プロジェクト: bogusz/dailylog
        public EntryController(IEntryRepository entryRepository, IUserRepository userRepository)
        {
            this.userRepository = userRepository;
            this.entryRepository = entryRepository;

            CurrentUser = userRepository.Query().FirstOrDefault();
        }
コード例 #2
0
        public void SetUp()
        {
            _blogs = new List<Blog> { _blog }.AsQueryable();

            MockDbSets();

            _contextFactory.Setup(o => o.CreateContext()).Returns(_context.Object);

            _entryRepository = new EntryRepository(_contextFactory.Object);
        }
コード例 #3
0
ファイル: BlogController.cs プロジェクト: avovsya/tBlog
        public BlogController(IEntryRepository entryRepository, IRepository<Category> categoryRepository, IRepository<Tag> tagRepository, ISettingRepository settingRepository)
            : base(settingRepository)
        {
            _entryRepository = entryRepository;
            _categoryRepository = categoryRepository;
            _tagRepository = tagRepository;

            _settingRepository = settingRepository;

            _pageSize = _settingRepository.ListPageSize;
        }
コード例 #4
0
ファイル: EntryService.cs プロジェクト: JefClaes/Docary
 public EntryService(IEntryRepository entryRepository, 
                     ILocationRepository locationRepository, 
                     ITagRepository tagRepository,
                     ITimelineColorService timelineColorService,
                     ITimeService timeService,
                     IScope scope)
 {
     _entryRepository = entryRepository;
     _locationRepository = locationRepository;
     _tagRepository = tagRepository;
     _timelineColorService = timelineColorService;
     _timeService = timeService;
     _scope = scope;
 }
コード例 #5
0
ファイル: EntryService.cs プロジェクト: Kris-I/Docary
 public EntryService(IEntryRepository entryRepository, 
                     ILocationRepository locationRepository, 
                     ITagRepository tagRepository,
                     ITimelineColorService timelineColorService,
                     ITimeService timeService,
                     IUnitOfWork unitOfWork)
 {
     _entryRepository = entryRepository;
     _locationRepository = locationRepository;
     _tagRepository = tagRepository;
     _timelineColorService = timelineColorService;
     _timeService = timeService;
     _unitOfWork = unitOfWork;
 }
コード例 #6
0
ファイル: AdminController.cs プロジェクト: avovsya/tBlog
 public AdminController(ISettingRepository settingRepository, 
     IEntryRepository entryRepository, 
     IRepository<Tag> tagRepository, 
     IRepository<Category> categoryRepository, 
     ICommentRepository commentRepository, 
     IUserRepository userRepository)
     : base(settingRepository)
 {
     _settingRepository = settingRepository;
     _entryRepository = entryRepository;
     _tagRepository = tagRepository;
     _categoryRepository = categoryRepository;
     _commentRepository = commentRepository;
     _userRepository = userRepository;
 }
コード例 #7
0
 public WikiController(IWikiRepository wikiRepository, IEntryRepository entryRepository)
 {
     _wikiRepository = wikiRepository;
     _entryRepository = entryRepository;
 }
コード例 #8
0
 public ReportService(IEntryRepository repository)
 {
     _repository = repository;
 }
コード例 #9
0
ファイル: FeedFactory.cs プロジェクト: EdgarVerona/cjns
 public FeedFactory(ICollectionRepository collectionRepository, IEntryRepository entryRepository, IGeneratorFactory generatorFactory)
 {
     _collectionRepository = collectionRepository;
     _entryRepository = entryRepository;
     _generatorFactory = generatorFactory;
 }
コード例 #10
0
        public void SetUp()
        {
            ServiceLocatorInitializer.Init();

            entryRepository =
                MockRepository.GenerateMock<IEntryRepository>();
            entryRepository.Stub(r => r.DbContext)
                .Return(MockRepository.GenerateMock<IDbContext>());

            entryManagementService =
                new EntryManagementService(entryRepository);
        }
コード例 #11
0
 public ExpenseController(DataContext context, IEntryRepository repo, IMapper mapper)
 {
     _mapper  = mapper;
     _repo    = repo;
     _context = context;
 }
コード例 #12
0
ファイル: EntryManager.cs プロジェクト: ufukgulec/Platform
 public EntryManager(IEntryRepository entryRepository) : base(entryRepository)
 {
     _entryRepository = entryRepository;
 }
コード例 #13
0
 public EntryController(IEntryRepository entryRepository)
 {
     EntryRepository = entryRepository;
 }
コード例 #14
0
 public EpisodeCountResolver(IEntryRepository entryRepository)
 {
     _entryRepository = entryRepository;
 }
コード例 #15
0
 public EntriesController(IMapper mapper, IEntryRepository entryRepository, IDetailEntryRepository detailEntryRepository)
 {
     _mapper                = mapper;
     _entryRepository       = entryRepository;
     _detailEntryRepository = detailEntryRepository;
 }
コード例 #16
0
 public SearchController(IEntryRepository entryRepository)
 {
     _entryRepository = entryRepository;
     _log             = LogManager.GetCurrentClassLogger();
 }
コード例 #17
0
 public EntryCreatedHandler(IEntryRepository repository)
 {
     _repository = repository;
 }
コード例 #18
0
 public StripeWebHookController()
 {
     _entryRepository = new EntryRepository(new DataConnection());
     _emailService    = new EmailService();
 }
コード例 #19
0
 public ManualGeneratedPairs(IEntryRepository entries, EmailProvider emails)
 {
     this.entries = entries;
     this.emails  = emails;
 }
コード例 #20
0
 public EntryService(IEntryRepository entryRepository, IBase64Validator base64Validator)
 {
     _entryRepository = entryRepository;
     _base64Validator = base64Validator;
 }
コード例 #21
0
 public EntryService(IEntryRepository entryRepository)
 {
     _entryRepository = entryRepository;
 }
コード例 #22
0
 public EntryService(IUnitOfWork unitOfWork,
                     IMapper mapper,
                     IEntryRepository entryRepository)
     : base(unitOfWork, mapper, entryRepository)
 {
 }
コード例 #23
0
        public EntryManagementService(IEntryRepository entryRepository)
        {
            Check.Require(entryRepository != null, "entryRepository may not be null");

            this.entryRepository = entryRepository;
        }
コード例 #24
0
ファイル: BlogService.cs プロジェクト: sharonrussell/Blog
 public BlogService(IBlogRepository blogRepository, IEntryRepository entryRepository)
 {
     _blogRepository = blogRepository;
     _entryRepository = entryRepository;
 }
コード例 #25
0
 public void SetUp()
 {
     _repository = new EntryRepository(_contextFactory.Object);
     _contextFactory.Setup(o => o.CreateContext()).Returns(new TestBlogContext());
 }
コード例 #26
0
 //ctors
 public EntryManager(IEntryRepository repository)
 {
     _EntryRepository = repository;
 }
コード例 #27
0
 public PaymentManager(ICheckingAccountRepository accountRepository, IPaymentRepository paymentRepository, IFeeRepository feeRepository, IEntryRepository entryRepository)
 {
     _checkingAccountRepository = accountRepository;
     _paymentRepository         = paymentRepository;
     _feeRepository             = feeRepository;
     _entryRepository           = entryRepository;
 }
コード例 #28
0
 public EntriesController(IEntryRepository repository, ILoggerFactory loggerFactory)
 {
     this._repository = repository ?? throw new ArgumentNullException(nameof(EntriesController));
     this._logger     = loggerFactory.CreateLogger(nameof(EntriesController));
 }
コード例 #29
0
 public MarkupRendererContext(IEntryRepository repository, string directory, string area)
 {
     _repository = repository;
     _directory = directory;
     _area = area;
 }
コード例 #30
0
 public UsersController(UserManager <ApplicationUser> userManager, SignInManager <ApplicationUser> signInManager, IEntryRepository thisRepo = null)
 {
     _userManager   = userManager;
     _signInManager = signInManager;
     if (thisRepo == null)
     {
         this.entryRepo = new EFEntryRepository();
     }
     else
     {
         this.entryRepo = thisRepo;
     }
 }
コード例 #31
0
 public WorldAcceptedEmail(IEntryRepository entries, LinkProvider links)
 {
     this.entries = entries;
     this.links   = links;
 }
コード例 #32
0
 public EntriesService(IEntryRepository repository)
 {
     Repository = repository;
 }
コード例 #33
0
ファイル: Index.cshtml.cs プロジェクト: Hlosani-M/PhoneBook
 public IndexModel(ILogger <IndexModel> logger, IEntryRepository entryRepository)
 {
     _logger          = logger;
     _entryRepository = entryRepository;
 }
コード例 #34
0
 public EntryService(IEntryRepository entryRepository)
 {
     this.entryRepository = entryRepository
                            ?? throw new ArgumentNullException(nameof(entryRepository));
 }
コード例 #35
0
 public EntriesController(IBusClient busClient,
                          IEntryRepository repository)
 {
     _busClient  = busClient;
     _repository = repository;
 }
コード例 #36
0
 public EntryController()
 {
     _entryRepository = new EntryRepository(new DataConnection());
 }
コード例 #37
0
 public EntryService(IEntryRepository userRepo, IPhoneBookService pbService, EfDbContext context)
 {
     _entryRepo = userRepo;
     _pbService = pbService;
     _context   = context;
 }
コード例 #38
0
 public EntryController(IEntryRepository EntryRepository)
 {
     this.EntryRepository = EntryRepository;
 }
コード例 #39
0
 public ApplicationConverter(IEntryRepository context)
 {
     this.context = context;
 }
コード例 #40
0
 public CommentServices(IEntryRepository entryRepository, ICommentRepository commentRepository)
 {
     _entryRepository = entryRepository;
     _commentRepository = commentRepository;
 }
コード例 #41
0
 public MarkupRendererContext(IEntryRepository repository, string directory, string wikiName)
 {
     _repository = repository;
     _directory = directory;
     _wikiName = wikiName;
 }
コード例 #42
0
ファイル: JsonModel.cs プロジェクト: smallworldapp/backend
 public abstract void Load(object value, IEntryRepository context);
コード例 #43
0
 public OptOutEmail(IEntryRepository entries, IWorldRepository worlds, LinkProvider links)
 {
     this.entries = entries;
     this.worlds  = worlds;
     this.links   = links;
 }
コード例 #44
0
 public EntryService(IEntryRepository repository)
 {
     m_repository = repository;
 }
コード例 #45
0
ファイル: EntryService.cs プロジェクト: nancy-bree/Bloghost
 public EntryService(IEntryRepository entryRepository)
 {
     _entryRepository = entryRepository;
 }
コード例 #46
0
 public EntryController(IEntryService entryService, IEntryRepository entryRepository)
 {
     _entryService    = entryService;
     _entryRepository = entryRepository;
 }