Exemplo n.º 1
0
        public ContentController()
        {
            var validatorFactory = new ValidatorFactory();
            var timeMachine = new TimeMachine();
            var logger = LogManager.GetLogger("Apinterest");
            var sampleFactory = new SampleFactory(validatorFactory, timeMachine, logger);

            _routeExplorerService = new RouteExplorerService(GlobalConfiguration.Configuration.Services.GetApiExplorer(), sampleFactory);
            _resourceLookup = new ResourceLookup(Assembly.GetExecutingAssembly());
        }
Exemplo n.º 2
0
 /// <summary>
 /// Initializes a new instance of the StringResourceVerifier class.
 /// </summary>
 /// <param name="lookup">Lookup to be used for locating string resources</param>
 public StringResourceVerifier(IResourceLookup lookup)
 {
     this.lookup = lookup;
 }
Exemplo n.º 3
0
 /// <summary>
 /// Initializes a new instance of the StringResourceVerifier class.
 /// </summary>
 /// <param name="lookup">Lookup to be used for locating string resources</param>
 public StringResourceVerifier(IResourceLookup lookup)
 {
     this.lookup = lookup;
 }