예제 #1
0
 public ManageModel(UserManager <ApplicationUser> userManager, ILogger <ManageModel> logger,
                    IUrlShortenerService urlShortenerService)
 {
     _userManager         = userManager;
     _logger              = logger;
     _urlShortenerService = urlShortenerService;
 }
예제 #2
0
 public LinkSteamCommand(IConstants constants, IBarebonesSteamOpenId openId, IUrlShortenerService urlShortenerService, EfDatabaseContextFactory databaseContextFactory)
 {
     _constants              = constants;
     _openId                 = openId;
     _urlShortenerService    = urlShortenerService;
     _databaseContextFactory = databaseContextFactory;
 }
예제 #3
0
 public IndexModel(
     IUrlShortenerService urlShortenerService,
     ILogger <IndexModel> logger)
 {
     _urlShortenerService = urlShortenerService;
     _logger = logger;
 }
 public ShortUrlController(
     IUrlShortenerService urlShortenerService,
     ILogger <ShortUrlController> logger)
 {
     _urlShortenerService = urlShortenerService;
     _logger = logger;
 }
예제 #5
0
 public CreateModel(UserManager <ApplicationUser> userManager, ILogger <CreateModel> logger,
                    IUrlShortenerService urlShortenerService, IOptionsMonitor <AppSettings> appSettings)
 {
     _userManager         = userManager;
     _logger              = logger;
     _urlShortenerService = urlShortenerService;
     _appSettings         = appSettings.CurrentValue;
 }
예제 #6
0
 public UrlShortenerController(ApplicationDbContext context, IUrlShortenerService urlShortenerService,
                               ILogger <UrlShortenerController> logger, IOptionsMonitor <AppSettings> appSettings, IUserService userService)
 {
     _context             = context;
     _urlShortenerService = urlShortenerService;
     _logger      = logger;
     _appSettings = appSettings.CurrentValue;
     _userService = userService;
 }
예제 #7
0
 public UrlTrackingService(ISubscriptionService subscriptionService,
     ITrackingUrlRepository trackingUrlRepository,
     IBalanceService balanceService,
     IUrlShortenerService urlShortenerService,
     IProjectUriProvider projectUriProvider,
     IMappingEngine mappingEngine,
     ICompanyService companyService)
 {
     _subscriptionService = subscriptionService;
     _trackingUrlRepository = trackingUrlRepository;
     _balanceService = balanceService;
     _urlShortenerService = urlShortenerService;
     _projectUriProvider = projectUriProvider;
     _mappingEngine = mappingEngine;
     _companyService = companyService;
 }
예제 #8
0
 public UrlTrackingService(ISubscriptionService subscriptionService,
                           ITrackingUrlRepository trackingUrlRepository,
                           IBalanceService balanceService,
                           IUrlShortenerService urlShortenerService,
                           IProjectUriProvider projectUriProvider,
                           IMappingEngine mappingEngine,
                           ICompanyService companyService)
 {
     _subscriptionService   = subscriptionService;
     _trackingUrlRepository = trackingUrlRepository;
     _balanceService        = balanceService;
     _urlShortenerService   = urlShortenerService;
     _projectUriProvider    = projectUriProvider;
     _mappingEngine         = mappingEngine;
     _companyService        = companyService;
 }
예제 #9
0
 public AuthorizeEndpoint(
     IClientSecretValidator clientValidator,
     IPresentationConfigurationService presentationConfigurationService,
     IUrlShortenerService urlShortenerService,
     ISessionStorageService sessionStorage,
     IACAPYClient acapyClient,
     IOptions <IdentityServerOptions> options,
     ILogger <AuthorizeEndpoint> logger
     )
 {
     _clientValidator = clientValidator;
     _presentationConfigurationService = presentationConfigurationService;
     _urlShortenerService = urlShortenerService;
     _sessionStorage      = sessionStorage;
     _acapyClient         = acapyClient;
     _options             = options.Value;
     _logger = logger;
 }
예제 #10
0
 public AuthorizeEndpoint(
     IClientSecretValidator clientValidator,
     IPresentationConfigurationService presentationConfigurationService,
     IUrlShortenerService urlShortenerService,
     ISessionStorageService sessionStorage,
     IACAPYClient acapyClient,
     IConfiguration configuration,
     ILogger <AuthorizeEndpoint> logger
     )
 {
     _clientValidator = clientValidator;
     _presentationConfigurationService = presentationConfigurationService;
     _urlShortenerService = urlShortenerService;
     _sessionStorage      = sessionStorage;
     _acapyClient         = acapyClient;
     _configuration       = configuration;
     _logger = logger;
 }
예제 #11
0
 public UnshortRequestHandler(IUrlShortenerService shortenerService)
 {
     _shortenerService = shortenerService;
 }
 public UrlShortenerController(ILogger <BaseController> logger, IUrlShortenerService urlShortenerService) :
     base(logger)
 {
     _urlShortenerService = urlShortenerService;
 }
예제 #13
0
 public TinyUrlShortenerApp(IUrlShortenerService urlShortenerService)
 {
     _urlShortenerService = urlShortenerService;
 }
예제 #14
0
 public GetListRequestHandler(IUrlShortenerService shortenerService)
 {
     _shortenerService = shortenerService;
 }
 public PresentationRequestController(ISessionStorageService sessionStorageService, IUrlShortenerService urlShortenerService, ILogger <WebHooksController> logger)
 {
     _sessionStorageService = sessionStorageService;
     _urlShortenerService   = urlShortenerService;
     _logger = logger;
 }
예제 #16
0
 public NewUrlRequestHandler(IUrlShortenerService shortenerService)
 {
     _shortenerService = shortenerService;
 }
예제 #17
0
 public HomeController(IUrlShortenerService urlShortenerService)
 {
     this.urlShortenerService = urlShortenerService;
 }
예제 #18
0
 public UrlShortenerController(IUrlShortenerService urlShortenerService)
 {
     _urlShortenerService = urlShortenerService;
 }
 public RedirectsController(IUrlShortenerService urlShortenerService)
 {
     this.urlShortenerService = urlShortenerService;
     urlUtils = new UrlUtils();
 }
예제 #20
0
        public UrlShortenerServiceTest()
        {
            var loggerMock = new Mock <ILogger <UrlShortenerService> >();

            _service = new UrlShortenerService(loggerMock.Object, new DataContext());
        }
예제 #21
0
 public ShortUrlsController(IUrlShortenerService service)
 {
     _service = service;
 }