예제 #1
0
 /// <summary>
 /// Snippet Controller constructor
 /// </summary>
 /// <param name="provider">The injected <see cref="ISnippetProvider"/></param>
 public SnippetController(ISnippetProvider snippetprovider, IVoteProvider voteprovider, IFlagProvider flagprovider, IConfiguration config)
 {
     snippetProvider = snippetprovider;
     voteProvider    = voteprovider;
     flagProvider    = flagprovider;
     configuration   = config;
 }
예제 #2
0
 /// <summary>
 /// Snippet Controller constructor
 /// </summary>
 /// <param name="provider">The injected <see cref="ISnippetProvider"/></param>
 public SnippetController(ISnippetProvider snippetprovider, IVoteProvider voteprovider, IFlagProvider flagprovider, IConfiguration config)
 {
     snippetProvider = snippetprovider;
     voteProvider = voteprovider;
     flagProvider = flagprovider;
     configuration = config;
 }
예제 #3
0
파일: Ranker.cs 프로젝트: arielbh/CodeRoom
 public Ranker(ISnippetProvider snippetProvider, IRuleEngineProvider ruleEngineProvider, IRepository repository)
 {
     _snippetProvider = snippetProvider;
     _ruleEngineProvider = ruleEngineProvider;
     _repository = repository;
 }
예제 #4
0
 public StoryController(IStoryProvider provider, ISnippetProvider snippetProvider, ISubmissionPeriodProvider submissionPeriodProvider)
 {
     StoryProvider            = provider;
     SnippetProvider          = snippetProvider;
     SubmissionPeriodProvider = submissionPeriodProvider;
 }
예제 #5
0
 public StoryController(IStoryProvider provider, ISnippetProvider snippetProvider, ISubmissionPeriodProvider submissionPeriodProvider)
 {
     StoryProvider = provider;
     SnippetProvider = snippetProvider;
     SubmissionPeriodProvider = submissionPeriodProvider;
 }
예제 #6
0
 public SnippetProviderTests()
 {
     _provider = new SnippetProvider(_repo);
 }
예제 #7
0
 public SnippetProviderTests()
 {
     _provider = new SnippetProvider(_repo);
 }