Exemple #1
0
        public void BaseSetUp()
        {
            // create scope
            TestScope = RootProvider.CreateScope();
            Provider  = TestScope.ServiceProvider;
            DB        = new TestDataContext();

            var runnerType  = (Type)TestContext.CurrentContext.Test.Arguments[0];
            var queryRunner = Provider.GetRequiredService(runnerType);

            if (queryRunner is SqlQueryRunner runner)
            {
                UpDb(runner);
            }
        }
 public void StartUp(Application.CommandLineOption option)
 {
     this._RootProvider = new RootProvider(this);
     this._RootEntry = new SystemEntryViewModel(null, this._RootProvider, new RootEntry(this));
     this._JobManager = new JobManager();
 }