public PingbackController( ILogger <PingbackController> logger, IBlogConfig blogConfig, IPingbackService pingbackService, IBlogNotificationClient notificationClient) { _logger = logger; _blogConfig = blogConfig; _pingbackService = pingbackService; _notificationClient = notificationClient; }
public PingbackController( ILogger <PingbackController> logger, IOptions <AppSettings> settings, IBlogConfig blogConfig, IPingbackService pingbackService, IBlogNotificationClient notificationClient) : base(logger, settings) { _blogConfig = blogConfig; _pingbackService = pingbackService; _notificationClient = notificationClient; }
public AdminController( IOptions <AuthenticationSettings> authSettings, IBlogAudit blogAudit, ICategoryService categoryService, IFriendLinkService friendLinkService, IPageService pageService, ITagService tagService, ICommentService commentService, IPingbackService pingbackService, IBlogConfig blogConfig) { _authenticationSettings = authSettings.Value; _categoryService = categoryService; _friendLinkService = friendLinkService; _pageService = pageService; _tagService = tagService; _commentService = commentService; _pingbackService = pingbackService; _blogConfig = blogConfig; _blogAudit = blogAudit; }
public void SetUp() { FakePingbackService.SourceUri = ""; FakePingbackService.TargetUri = ""; this.postService = MockRepository.GenerateMock<IPostService>(); this.httpClient = MockRepository.GenerateMock<IHttpClient>(); this.pingbackService = new PingbackService(this.postService, this.httpClient); IDictionary props = new Hashtable(); props["name"] = "MyHttpChannel"; props["port"] = 2011; channel = new HttpChannel(props,null,new XmlRpcServerFormatterSinkProvider()); ChannelServices.RegisterChannel(channel, false); RemotingConfiguration.RegisterWellKnownServiceType(typeof (FakePingbackService),"pingback.rem",WellKnownObjectMode.Singleton); }
public async Task <IActionResult> Pingback([FromServices] IPingbackService pingbackService) { var list = await pingbackService.GetPingbackHistoryAsync(); return(View(list)); }
public PingbackHandler(IPingbackService pingbackService) { this.pingbackService = pingbackService; }
public PingbackModel(IPingbackService pingbackService) { _pingbackService = pingbackService; }
public void SetUp() { this.pingbackService = MockRepository.GenerateMock<IPingbackService>(); this.handler = new PingbackHandler(this.pingbackService); }