Beispiel #1
0
 public PhotosController(IPhotoRepository photoRepository, IAlbumRepository albumRepository, IFeedbackRepository feedbackRepository, ILoggingRepository loggingRepository)
 {
     _photoRepository    = photoRepository;
     _albumRepository    = albumRepository;
     _feedbackRepository = feedbackRepository;
     _loggingRepository  = loggingRepository;
 }
Beispiel #2
0
 public ProfileController(IUserInfoRepository userInfo, IUnitOfWork unitOfWork, IAchievementRepository achievements, IFeedbackRepository feedbacks)
 {
     _userInfo     = userInfo;
     _unitOfWork   = unitOfWork;
     _achievements = achievements;
     _feedbacks    = feedbacks;
 }
        private int getTableId(string feedbackId)
        {
            IFeedbackRepository _doctorRepo = RepositoryFactory.Create <IFeedbackRepository>(ContextTypes.EntityFramework);
            var result = _doctorRepo.Find(x => x.FeedbackID == feedbackId).FirstOrDefault();

            return(result.Id);
        }
Beispiel #4
0
 public FeedbackService(IFeedbackRepository FeedbackRepository, IUnitOfWork unitOfWork, IFormService formService, ISettingService settingService)
 {
     this.feedbackRepository = FeedbackRepository;
     this.unitOfWork         = unitOfWork;
     this.formService        = formService;
     this.settingService     = settingService;
 }
 public FeedbackCaptureViewComponent(IFeedbackRepository feedbackRepository, IRequestService requestService, IAuthService authService, IGroupService groupService)
 {
     _feedbackRepository = feedbackRepository;
     _requestService     = requestService;
     _authService        = authService;
     _groupService       = groupService;
 }
Beispiel #6
0
 public AdminManageController(IAskQestionRepository repo, IOrderSiteRepository rep, IFeedbackRepository re, IGalleryRepository galleryRe)
 {
     askQuestionrepository = repo;
     orderSiteRepository   = rep;
     feedbackRepository    = re;
     galleryRepository     = galleryRe;
 }
Beispiel #7
0
 public FeedbackService(IFeedbackRepository feedbacksRepository, IUserProfileRepository userProfileRepository, IOrderRepository orderRepository, IUnitOfWork unitOfWork)
 {
     this.userProfileRepository = userProfileRepository;
     this.orderRepository       = orderRepository;
     this.feedbacksRepository   = feedbacksRepository;
     this.unitOfWork            = unitOfWork;
 }
Beispiel #8
0
        public FeedbackLogic(IConfiguration configuration, IHostingEnvironment hostingEnvironment)
        {
            _configuration      = configuration;
            _hostingEnvironment = hostingEnvironment;

            feedbackRepository = new FeedbackRepository(_configuration, _hostingEnvironment);
        }
Beispiel #9
0
 public DAL()
 {
     container       = Bootstrapper.Initialize();
     logger          = container.GetInstance <IVtbPortalLogger>();
     feedbackRepo    = container.GetInstance <IFeedbackRepository>();
     shareholderRepo = container.GetInstance <IShareholderAccountRepository>();
 }
Beispiel #10
0
 /// <summary>
 ///     Creates a new instance of <see cref="CloseIncidentHandler" />.
 /// </summary>
 /// <param name="repository">To be able to load and update incident</param>
 /// <param name="feedbackRepository">To be able to see if someone is waiting on update notifications.</param>
 /// <param name="commandBus">To send notification emails.</param>
 public CloseIncidentHandler(IIncidentRepository repository, IFeedbackRepository feedbackRepository,
                             ICommandBus commandBus)
 {
     _repository         = repository;
     _feedbackRepository = feedbackRepository;
     _commandBus         = commandBus;
 }
Beispiel #11
0
 public FeedbackController(IFeedbackRepository _feedback, IUserRepository _user, ISessionRepository _session, IStringLocalizer <SharedResources> lLocal)
 {
     feedbackRepository = _feedback;
     userRepository     = _user;
     sessionRepository  = _session;
     localizer          = lLocal;
 }
Beispiel #12
0
 public HomeController(IAskQestionRepository askQuestionRepo, IOrderSiteRepository orderSiteRepo, IFeedbackRepository feedbackRepo, IGalleryRepository galleryRepo)
 {
     askQuestionrepository = askQuestionRepo;
     orderSiteRepository   = orderSiteRepo;
     feedbackRepository    = feedbackRepo;
     galleryRepository     = galleryRepo;
 }
Beispiel #13
0
        public ReportsModule()
        {
            _feedbackRepo = new FeedbackRepository(ConfigurationManager.ConnectionStrings["happyIndex"].ConnectionString);
            _questionRepo = new QuestionRepository(ConfigurationManager.ConnectionStrings["happyIndex"].ConnectionString);

            Get["/api/reports/{name}"] = parameters =>
            {
                object   result = null;
                string   reportName = parameters.name;
                DateTime start, end;
                if (!DateTime.TryParse(Request.Query.start, out start))
                {
                    start = DateTime.MinValue;
                }
                if (!DateTime.TryParse(Request.Query.end, out end))
                {
                    end = DateTime.MaxValue;
                }
                switch (reportName)
                {
                case "company":
                    result = BuildCompanyReport(start, end);
                    break;

                case "pollingstation":
                    result = _feedbackRepo.GetPollingStationFeedbackReport(start, end, Request.Query.name);
                    break;
                }
                return(result);
            };
        }
Beispiel #14
0
 public FeedbackController(
     ApplicationDbContext context,
     IFeedbackRepository repository)
 {
     _context    = context;
     _repository = repository;
 }
Beispiel #15
0
 public UnitOfWork(
     DatabaseContext dbContext,
     IProductRepository productRepository,
     IProductReviewRepository productReviewRepository,
     IUserRepository userReviewRepository,
     ICouponRepository couponRepository,
     IOrderRepository orderRepository,
     IShipmentRepository shipmentRepository,
     IPaymentRepository paymentRepository,
     IHashMapRepository hashMapRepository,
     IUserOrderRepository userOrderRepository,
     IFeedbackRepository feedbackRepository)
 {
     _dbContext               = dbContext;
     _productRepository       = productRepository;
     _productReviewRepository = productReviewRepository;
     _userReviewRepository    = userReviewRepository;
     _couponRepository        = couponRepository;
     _orderRepository         = orderRepository;
     _shipmentRepository      = shipmentRepository;
     _paymentRepository       = paymentRepository;
     _hashMapRepository       = hashMapRepository;
     _userOrderRepository     = userOrderRepository;
     _feedbackRepository      = feedbackRepository;
 }
Beispiel #16
0
 public UnitOfWork(
     IContext connectionFactory,
     IFeedbackRepository feedbackRepository)
     : base(connectionFactory)
 {
     FeedbackRepository = feedbackRepository;
 }
 public DefaultController(IFeedbackRepository feedbackRepository, INewRepository newRepository, INoticeRepository noticeRepository, ILinkRepository linkRepository)
 {
     _feedbackRepository = feedbackRepository;
     _newRepository      = newRepository;
     _noticeRepository   = noticeRepository;
     _linkRepository     = linkRepository;
 }
Beispiel #18
0
 public FeedbackApiController(Club club, IFeedbackQuery feedbackQuery, IFeedbackRepository feedbackRepository, IMemberQuery memberQuery)
 {
     this.club               = club;
     this.feedbackQuery      = feedbackQuery;
     this.feedbackRepository = feedbackRepository;
     this.memberQuery        = memberQuery;
 }
Beispiel #19
0
 public FeedbackService(IFeedbackRepository feedbackRepository,
                        IUnitOfWork unitOfWork, IMapper mapper)
 {
     _feedbackRepository = feedbackRepository;
     _unitOfWork         = unitOfWork;
     _mapper             = mapper;
 }
Beispiel #20
0
 public AdminController(IFeedbackRepository feedRepo, IProjectRepository projectRepo, IUserRepository userRepo, ILetterRepository letterRepo)
 {
     this.feedRepo    = feedRepo;
     this.projectRepo = projectRepo;
     this.userRepo    = userRepo;
     this.letterRepo  = letterRepo;
 }
Beispiel #21
0
 public FeedbacksController(IFeedbackRepository feedbackRepository, IMapper mapper, IUserRepository userRepository, IUrlHelper urlHelper)
 {
     _feedbackRepository = feedbackRepository;
     _userRepository     = userRepository;
     _mapper             = mapper;
     _urlHelper          = urlHelper;
 }
 public TransactionService(ITransactionRepository transactionsRepository, IFeedbackRepository feedbacksRepository, IUserProfileRepository userProfileRepository, IUnitOfWork unitOfWork)
 {
     this.feedbacksRepository    = feedbacksRepository;
     this.transactionsRepository = transactionsRepository;
     this.unitOfWork             = unitOfWork;
     this.userProfileRepository  = userProfileRepository;
 }
Beispiel #23
0
 public FeedbackController(UserManager <User> userManager, IFeedbackRepository repository, IAchievementRepository achievementRepository, IUnitOfWork unitOfWork, IUserInfoRepository userInfo)
 {
     _userManager  = userManager;
     _achievements = achievementRepository;
     _unitOfWork   = unitOfWork;
     _repository   = repository;
     _userInfo     = userInfo;
 }
 public ProposalController(IProposalRepository repository, IUnitOfWork unitOfWork, UserManager <User> userManager, IAdvertRepository adverRepository, IFeedbackRepository feedbacks)
 {
     _repository      = repository;
     _unitOfWork      = unitOfWork;
     _userManager     = userManager;
     _adverRepository = adverRepository;
     _feedbacks       = feedbacks;
 }
Beispiel #25
0
 public FieldService(INotify notify,
                     IFieldRepository fieldRepository,
                     IFeedbackRepository feedbackRepository,
                     IReportRepository reportRepository) : base(notify)
 {
     _fieldRepository    = fieldRepository;
     _feedbackRepository = feedbackRepository;
     _reportRepository   = reportRepository;
 }
 public FeedbackController(
     IMapper mapper,
     UserManager <UserEntity> userManager,
     IFeedbackRepository feedback)
 {
     _mapper      = mapper ?? throw new ArgumentNullException(nameof(mapper));
     _userManager = userManager ?? throw new ArgumentNullException(nameof(userManager));
     _feedback    = feedback ?? throw new ArgumentNullException(nameof(feedback));
 }
Beispiel #27
0
 public OrderService(IOrderRepository ordersRepository, IFeedbackRepository feedbacksRepository, ITransactionRepository transactionRepository, IOrderStatusRepository orderStatusRepository, IUserProfileRepository userProfileRepository, IUnitOfWork unitOfWork)
 {
     this.feedbacksRepository   = feedbacksRepository;
     this.orderStatusRepository = orderStatusRepository;
     this.ordersRepository      = ordersRepository;
     this.unitOfWork            = unitOfWork;
     this.userProfileRepository = userProfileRepository;
     this.transactionRepository = transactionRepository;
 }
Beispiel #28
0
 public AttachFeedbackToIncident(IFeedbackRepository repository, IEventBus eventBus)
 {
     if (eventBus == null)
     {
         throw new ArgumentNullException("eventBus");
     }
     _repository = repository;
     _eventBus   = eventBus;
 }
 public FeedbackController(IFeedbackRepository feedbackRepository, IOptions <EmailSettings> emailSettings, IFeedbackValidator feedbackValidator)
 {
     _feedbackRepository           = feedbackRepository;
     _feedbackValidator            = feedbackValidator;
     emailConfigDetail             = new EmailConfigDetail();
     this.emailSettings            = emailSettings.Value;
     emailConfigDetail.FromMailId  = this.emailSettings.FromAddress;
     emailConfigDetail.HostAddress = this.emailSettings.HostServer;
 }
Beispiel #30
0
 public FeedbackService(IFeedbackRepository feedbackRepository, ICardRepository cardRepository, ILogger logger, 
     IUserProfileRepository userProfileRepository, IActivityHelperService activityHelperService)
 {
     _feedbackRepository = feedbackRepository;
     _cardRepository = cardRepository;
     _logger = logger;
     _userProfileRepository = userProfileRepository;
     _activityHelperService = activityHelperService;
 }
Beispiel #31
0
 public FeedbacksController(ApplicationDbContext context,
                            UserManager <AppUser> userManager,
                            IFeedbackRepository feedbackRepository,
                            IHubContext <FeedbackHub> hub)
 {
     _context            = context;
     _feedbackRepository = feedbackRepository;
     _hub = hub;
 }
Beispiel #32
0
 public TestService(ITestRepository testRepository, ICardRepository cardRepository, 
     IFeedbackRepository feedbackRepository, IUnitOfWork unitOfWork,ILogger logger,
     IUserProfileRepository userProfileRepository)
 {
     _testRepository = testRepository;
     _cardRepository = cardRepository;
     _unitOfWork = unitOfWork;
     _logger = logger;
     _feedbackRepository = feedbackRepository;
     _userProfileRepository = userProfileRepository;
 }
Beispiel #33
0
 public CardService(ICardRepository cardRepository, IUserProfileRepository userProfileRepository, IUnitOfWork unitOfWork, ILogger logger, IActivityHelperService activityHelperService, ISpecialNoteRepository specialNoteRepository, IFeedbackRepository feedbackRepository, IInterviewRepository interviewRepository, ITestRepository testRepository)
 {
     _cardRepository = cardRepository;
     _userProfileRepository = userProfileRepository;
     _unitOfWork = unitOfWork;
     _logger = logger;
     _activityHelperService = activityHelperService;
     _specialNoteRepository = specialNoteRepository;
     _feedbackRepository = feedbackRepository;
     _interviewRepository = interviewRepository;
     _testRepository = testRepository;
 }
 public FeedbackController(IFeedbackRepository repository, MapperFactory mapperFactory)
 {
     if (repository == null)
     {
         throw new ArgumentNullException(nameof(repository));
     }
     if (mapperFactory == null)
     {
         throw new ArgumentNullException(nameof(mapperFactory));
     }
     this.repository = repository;
     this.mapperFactory = mapperFactory;
 }
        public Controller(IFeedbackRepository feedbackRepository, IEmployeeRepository employeeRepository)
        {
            if (feedbackRepository == null)
            {
                throw new ArgumentNullException(nameof(feedbackRepository));
            }
            if (employeeRepository == null)
            {
                throw new ArgumentNullException(nameof(employeeRepository));
            }

            this.feedbackRepository = feedbackRepository;
            this.employeeRepository = employeeRepository;
        }
 public DeviceService(IDeviceRepository deviceRepository, IErrorRepository errorRepository,
     IEventRepository eventRepository, ICrashRepository crashRepository, IFeedbackRepository feedbackRepository,
     ISystemErrorRepository systemErrorRepository, IAppUserRepository appUserRepository,
      AppActs.Repository.Interface.IApplicationRepository applicationRepository, AppActs.API.Model.Settings settings)
 {
     this.deviceRepository = deviceRepository;
     this.errorRepository = errorRepository;
     this.eventRepository = eventRepository;
     this.crashRepository = crashRepository;
     this.feedbackRepository = feedbackRepository;
     this.systemErrorRepository = systemErrorRepository;
     this.appUserRepository = appUserRepository;
     this.applicationRepository = applicationRepository;
     this.settings = settings;
 }
Beispiel #37
0
 protected BaseController(IControllerData data)
 {
     this.accountRepository = data.AccountRepository;
     this.formsAuthentication = data.FormsAuthentication;
     this.articlesRepository = data.ArticlesRepository;
     this.staticPagesRepository = data.StaticPagesRepository;
     this.filesRepository = data.FilesRepository;
     this.lecturersRepository = data.LecturersRepository;
     this.eventsRepository = data.EventsRepository;
     this.settingsRepository = data.SettingsRepository;
     this.committeeRepository = data.CommitteeRepository;
     this.slideshowRepository = data.SlideshowRepository;
     this.albumRepository = data.AlbumRepository;
     this.galleryRepository = data.GalleryRepository;
     this.feedbackRepository = data.FeedbackRepository;
     this.sessionsRepository = data.SessionsRepository;
     this.bannersRepository = data.BannersRepository;
 }
Beispiel #38
0
 public ControllerData(IFormsAuthentication formsAuthentication, IAccountRepository accountRepository, IArticlesRepository articlesRepository,
     IStaticPagesRepository staticPagesRepository, IFilesRepository filesRepository, ILecturersRepository lecturersRepository,
     IEventsRepository eventsRepository, ISettingsRepository settingsRepository, ICommitteeRepository committeeRepository,
     ISlideshowRepository slideshowRepository, IAlbumRepository albumRepository, IGalleryRepository galleryRepository,
     IFeedbackRepository feedbackRepository, ISessionsRepository sessionsRepository, IBannersRepository bannersRepository)
 {
     this.FormsAuthentication = formsAuthentication;
     this.AccountRepository = accountRepository;
     this.ArticlesRepository = articlesRepository;
     this.StaticPagesRepository = staticPagesRepository;
     this.FilesRepository = filesRepository;
     this.LecturersRepository = lecturersRepository;
     this.EventsRepository = eventsRepository;
     this.SettingsRepository = settingsRepository;
     this.CommitteeRepository = committeeRepository;
     this.SlideshowRepository = slideshowRepository;
     this.AlbumRepository = albumRepository;
     this.GalleryRepository = galleryRepository;
     this.FeedbackRepository = feedbackRepository;
     this.SessionsRepository = sessionsRepository;
     this.BannersRepository = bannersRepository;
 }
 public void Setup()
 {
     feedbackRepository = Substitute.For<IFeedbackRepository>();
     employeeRepository = Substitute.For<IEmployeeRepository>();
     sut = new Controller(feedbackRepository, employeeRepository);
 }
 public FeedbackController(IFeedbackRepository feedbackRepository)
 {
     this._feedbackRepository = feedbackRepository;
 }
 public FeedbackDataService(IFeedbackRepository feedbackRepository)
 {
     this._feedbackRepository = feedbackRepository;
 }
 public FeedbackApprovalAppl(ITypeAdapter adapter, IFeedbackRepository repo)
 {
     _adapter = adapter;
     _repo = repo;
 }
 public FeedbackModelBinder(IFeedbackRepository service)
 {
     _feedbackRepository = service;
 }
 public void Setup()
 {
     repository = Substitute.For<IFeedbackRepository>();
     mapperFactory = Substitute.For<MapperFactory>();
     sut = new FeedbackController(repository, mapperFactory);
 }
Beispiel #45
0
 public FeedbackManager(IFeedbackRepository feedbackRepository, ILoggingService loggingService,ICurrentUser currentUser)
 {
     _feedbackRepository = feedbackRepository;
     _loggingService = loggingService;
     _currentUser = currentUser;
 }