public CommonWidgetController(IUserQueryService userQueryService , IBlogQueryService blogQueryService , IProblemQueryService problemQueryService) { _userQueryService = userQueryService; _blogQueryService = blogQueryService; _problemQueryService = problemQueryService; }
public BlogController( IProblemQueryService problemQueryService, ICommentCommandService commentCommandService, IProblemCommandService problemCommandService, IBlogQueryService blogQueryService, IBlogCommandService blogCommandService, IAuthenticationService authenticationService) { this._problemQueryService = problemQueryService; this._commentCommandService = commentCommandService; this._problemCommandService = problemCommandService; this._blogCommandService = blogCommandService; this._blogQueryService = blogQueryService; this._authenticationService = authenticationService; }
protected override void Given() { var serviceProvider = new ServiceCollection() .AddEasyContent( sp => new PostOptions(), sp => new FileProviderOptions()) .OverrideWith( serviceCollection => { serviceCollection.Replace(ServiceDescriptor.Singleton(typeof(IFileProviderConfiguration), typeof(TestFileProviderConfiguration))); serviceCollection.Replace(ServiceDescriptor.Singleton(typeof(IPostConfiguration), typeof(TestPostConfiguration))); return(serviceCollection); }) .BuildServiceProvider(); _postFilter = new PostFilterBuilder() .Build(); _sut = serviceProvider.GetService <IBlogQueryService>(); }
protected override void When() { _result = _sut.GetService <IBlogQueryService>(); }
public PostModel(IBlogQueryService blogQueryService) { _blogQueryService = blogQueryService; }
public BlogController(ICommandBus commandBus, IBlogQueryService blogQueryService) { _commandBus = commandBus; _blogQueryService = blogQueryService; }
public IndexModel(IBlogQueryService blogQueryService) { _blogQueryService = blogQueryService; }