/// <summary>
        /// ActionFilter that implements the Highlight functionality
        /// </summary>
        public HighlightSearch()
        {
            var container = (IUnityContainer)GlobalConfiguration.
                            Configuration.DependencyResolver.GetService(typeof(IUnityContainer));

            _highlighter = container.Resolve <IHighlighter>();;
            _helper      = container.Resolve <IJokesHelper>();;
        }
Exemple #2
0
 public JokeBusiness(IRepositoryFactory repFactory, JokesHelper helper)
 {
     _repFactory = repFactory;
     _helper     = helper;
 }