public void Init()
        {
            SdkLoggerFactory.Configure(new FileInfo("log4net.sdk.config"));

            _sef = new TestSportEntityFactoryBuilder();
            _sef.InitializeSportEntities();
            _sef.LoadTournamentMissingValues();
            _sef.LoadSeasonMissingValues();
        }
Beispiel #2
0
        private static void Main()
        {
            log4net.Config.XmlConfigurator.Configure(new FileInfo("log4net.config"));
            SdkLoggerFactory.Configure(new FileInfo("log4net.sdk.config"));
            _log = LogManager.GetLogger(typeof(Start));
            if (!SdkLoggerFactory.CheckAllLoggersExists())
            {
                _log.Warn("Loggers are not set correctly!");
            }

            var key = 'y';

            while (key.Equals('y'))
            {
                DoExampleSelection();

                Console.WriteLine(string.Empty);
                Console.Write("Want to run another example? (y|n): ");
                key = Console.ReadKey().KeyChar;
                Console.WriteLine(string.Empty);
            }
        }
Beispiel #3
0
 public void Init()
 {
     SdkLoggerFactory.Configure(new FileInfo("log4net.sdk.config"), SdkCommon.TestData.SdkTestLogRepositoryName);
 }