Ejemplo n.º 1
0
 public FormTest()
 {
     InitializeComponent();
     receivedStringAction = OnReceivedStringAction();
     exceptionAction      = OnExceptionAction();
     testAppHelper        = new TestAppHelper(key => ConfigurationManager.AppSettings[key], ToggleSyslogServer);
 }
Ejemplo n.º 2
0
        public ConsoleTest()
        {
            var builder = new ConfigurationBuilder()
                          .SetBasePath(Directory.GetCurrentDirectory())
                          .AddJsonFile("appSettings.json");

            settings      = builder.Build();
            testAppHelper = new TestAppHelper(key => settings[key], ToggleSyslogServer);
        }