/// <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; }
public Ranker(ISnippetProvider snippetProvider, IRuleEngineProvider ruleEngineProvider, IRepository repository) { _snippetProvider = snippetProvider; _ruleEngineProvider = ruleEngineProvider; _repository = repository; }
public StoryController(IStoryProvider provider, ISnippetProvider snippetProvider, ISubmissionPeriodProvider submissionPeriodProvider) { StoryProvider = provider; SnippetProvider = snippetProvider; SubmissionPeriodProvider = submissionPeriodProvider; }
public SnippetProviderTests() { _provider = new SnippetProvider(_repo); }