Exemple #1
0
        public EntryController(IEntryRepository entryRepository, IUserRepository userRepository)
        {
            this.userRepository = userRepository;
            this.entryRepository = entryRepository;

            CurrentUser = userRepository.Query().FirstOrDefault();
        }
        public void SetUp()
        {
            _blogs = new List<Blog> { _blog }.AsQueryable();

            MockDbSets();

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

            _entryRepository = new EntryRepository(_contextFactory.Object);
        }
Exemple #3
0
        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;
        }
Exemple #4
0
 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;
 }
Exemple #5
0
 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;
 }
Exemple #6
0
 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;
 }
 public WikiController(IWikiRepository wikiRepository, IEntryRepository entryRepository)
 {
     _wikiRepository = wikiRepository;
     _entryRepository = entryRepository;
 }
 public ReportService(IEntryRepository repository)
 {
     _repository = repository;
 }
Exemple #9
0
 public FeedFactory(ICollectionRepository collectionRepository, IEntryRepository entryRepository, IGeneratorFactory generatorFactory)
 {
     _collectionRepository = collectionRepository;
     _entryRepository = entryRepository;
     _generatorFactory = generatorFactory;
 }
        public void SetUp()
        {
            ServiceLocatorInitializer.Init();

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

            entryManagementService =
                new EntryManagementService(entryRepository);
        }
Exemple #11
0
 public ExpenseController(DataContext context, IEntryRepository repo, IMapper mapper)
 {
     _mapper  = mapper;
     _repo    = repo;
     _context = context;
 }
Exemple #12
0
 public EntryManager(IEntryRepository entryRepository) : base(entryRepository)
 {
     _entryRepository = entryRepository;
 }
Exemple #13
0
 public EntryController(IEntryRepository entryRepository)
 {
     EntryRepository = entryRepository;
 }
 public EpisodeCountResolver(IEntryRepository entryRepository)
 {
     _entryRepository = entryRepository;
 }
 public EntriesController(IMapper mapper, IEntryRepository entryRepository, IDetailEntryRepository detailEntryRepository)
 {
     _mapper                = mapper;
     _entryRepository       = entryRepository;
     _detailEntryRepository = detailEntryRepository;
 }
 public SearchController(IEntryRepository entryRepository)
 {
     _entryRepository = entryRepository;
     _log             = LogManager.GetCurrentClassLogger();
 }
Exemple #17
0
 public EntryCreatedHandler(IEntryRepository repository)
 {
     _repository = repository;
 }
Exemple #18
0
 public StripeWebHookController()
 {
     _entryRepository = new EntryRepository(new DataConnection());
     _emailService    = new EmailService();
 }
 public ManualGeneratedPairs(IEntryRepository entries, EmailProvider emails)
 {
     this.entries = entries;
     this.emails  = emails;
 }
Exemple #20
0
 public EntryService(IEntryRepository entryRepository, IBase64Validator base64Validator)
 {
     _entryRepository = entryRepository;
     _base64Validator = base64Validator;
 }
Exemple #21
0
 public EntryService(IEntryRepository entryRepository)
 {
     _entryRepository = entryRepository;
 }
Exemple #22
0
 public EntryService(IUnitOfWork unitOfWork,
                     IMapper mapper,
                     IEntryRepository entryRepository)
     : base(unitOfWork, mapper, entryRepository)
 {
 }
        public EntryManagementService(IEntryRepository entryRepository)
        {
            Check.Require(entryRepository != null, "entryRepository may not be null");

            this.entryRepository = entryRepository;
        }
Exemple #24
0
 public BlogService(IBlogRepository blogRepository, IEntryRepository entryRepository)
 {
     _blogRepository = blogRepository;
     _entryRepository = entryRepository;
 }
 public void SetUp()
 {
     _repository = new EntryRepository(_contextFactory.Object);
     _contextFactory.Setup(o => o.CreateContext()).Returns(new TestBlogContext());
 }
 //ctors
 public EntryManager(IEntryRepository repository)
 {
     _EntryRepository = repository;
 }
 public PaymentManager(ICheckingAccountRepository accountRepository, IPaymentRepository paymentRepository, IFeeRepository feeRepository, IEntryRepository entryRepository)
 {
     _checkingAccountRepository = accountRepository;
     _paymentRepository         = paymentRepository;
     _feeRepository             = feeRepository;
     _entryRepository           = entryRepository;
 }
Exemple #28
0
 public EntriesController(IEntryRepository repository, ILoggerFactory loggerFactory)
 {
     this._repository = repository ?? throw new ArgumentNullException(nameof(EntriesController));
     this._logger     = loggerFactory.CreateLogger(nameof(EntriesController));
 }
 public MarkupRendererContext(IEntryRepository repository, string directory, string area)
 {
     _repository = repository;
     _directory = directory;
     _area = area;
 }
Exemple #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;
     }
 }
 public WorldAcceptedEmail(IEntryRepository entries, LinkProvider links)
 {
     this.entries = entries;
     this.links   = links;
 }
 public EntriesService(IEntryRepository repository)
 {
     Repository = repository;
 }
Exemple #33
0
 public IndexModel(ILogger <IndexModel> logger, IEntryRepository entryRepository)
 {
     _logger          = logger;
     _entryRepository = entryRepository;
 }
Exemple #34
0
 public EntryService(IEntryRepository entryRepository)
 {
     this.entryRepository = entryRepository
                            ?? throw new ArgumentNullException(nameof(entryRepository));
 }
 public EntriesController(IBusClient busClient,
                          IEntryRepository repository)
 {
     _busClient  = busClient;
     _repository = repository;
 }
Exemple #36
0
 public EntryController()
 {
     _entryRepository = new EntryRepository(new DataConnection());
 }
Exemple #37
0
 public EntryService(IEntryRepository userRepo, IPhoneBookService pbService, EfDbContext context)
 {
     _entryRepo = userRepo;
     _pbService = pbService;
     _context   = context;
 }
Exemple #38
0
 public EntryController(IEntryRepository EntryRepository)
 {
     this.EntryRepository = EntryRepository;
 }
 public ApplicationConverter(IEntryRepository context)
 {
     this.context = context;
 }
 public CommentServices(IEntryRepository entryRepository, ICommentRepository commentRepository)
 {
     _entryRepository = entryRepository;
     _commentRepository = commentRepository;
 }
 public MarkupRendererContext(IEntryRepository repository, string directory, string wikiName)
 {
     _repository = repository;
     _directory = directory;
     _wikiName = wikiName;
 }
Exemple #42
0
 public abstract void Load(object value, IEntryRepository context);
Exemple #43
0
 public OptOutEmail(IEntryRepository entries, IWorldRepository worlds, LinkProvider links)
 {
     this.entries = entries;
     this.worlds  = worlds;
     this.links   = links;
 }
Exemple #44
0
 public EntryService(IEntryRepository repository)
 {
     m_repository = repository;
 }
Exemple #45
0
 public EntryService(IEntryRepository entryRepository)
 {
     _entryRepository = entryRepository;
 }
Exemple #46
0
 public EntryController(IEntryService entryService, IEntryRepository entryRepository)
 {
     _entryService    = entryService;
     _entryRepository = entryRepository;
 }