Exemplo n.º 1
0
 public void SetUp()
 {
     config                = new LexiconConfig();
     config.Lexicons       = new LocationConfig();
     config.Resources      = Path.Combine(TestContext.CurrentContext.TestDirectory, "Data");
     config.Lexicons.Local = "Lexicons";
     instance              = CreateInstance();
 }
 public InitialisationService(ILogger <InitialisationService> logger, IWebHostEnvironment environment, IServiceProvider provider, LexiconLoader loader, ConfigDownloader <ILexiconConfig> lexiconDownloader)
 {
     this.logger            = logger ?? throw new ArgumentNullException(nameof(logger));
     this.environment       = environment ?? throw new ArgumentNullException(nameof(environment));
     this.provider          = provider ?? throw new ArgumentNullException(nameof(provider));
     this.loader            = loader ?? throw new ArgumentNullException(nameof(loader));
     this.lexiconDownloader = lexiconDownloader;
 }
Exemplo n.º 3
0
 public void SetUp()
 {
     instance = CreateInstance();
 }