コード例 #1
0
        public static void Main(string[] args)
        {
//			foreach (Assembly assy in AppDomain.CurrentDomain.GetAssemblies()) {
//				Console.WriteLine("---------------Assembly------------------");
//				//Console.WriteLine(assy.FullName);
//				AssemblyName name = assy.GetName();
//				Console.WriteLine(name.Name);
//				Console.WriteLine(name.CodeBase);
//				Console.WriteLine(name.FullName);
//				Console.WriteLine(name.Version.ToString());
//			}

            Logger.Debug("______________________________ Starting BootManager __________________________");
            BootManager boot = BootManager.Instance;

            boot.StartServices();
            Logger.Debug("______________________________ BootManager startup completed __________________________");

            Logger.Debug("______________________________ Starting Testing Program __________________________");

            Logger.Debug("++++++++++++++++++++++++ Database Test Case +++++++++++++++++++++++++++");
            DatabaseTest dbTest = new DatabaseTest();

            dbTest.TestDatabaseInit();
            dbTest.TestLoadDatabaseAndDriverConnect();
            dbTest.TestDatabaseDeleteQuery();
            dbTest.TestDatabaseInsertQuery();
            dbTest.TestDatabaseFindOneQuery();
            dbTest.TestDatabaseFindCount();
            dbTest.TestDatabaseFindQuery();
            dbTest.TestDatabaseParentChildInsertQuery();
            dbTest.TestDatabaseParentChildFindOneQuery();

            Logger.Debug("++++++++++++++++++++++++ Create Models Test Case +++++++++++++++++++++++++++");
            CreateModelsTest modelsTest = new CreateModelsTest();

            modelsTest.TestCreateModels();
            modelsTest.TestModelsRelationships();

            Logger.Debug("++++++++++++++++++++++++ Layouts Store Test Case +++++++++++++++++++++++++++");
            LayoutsStoreTest layoutTest = new LayoutsStoreTest();

            layoutTest.TestLoadLayouts();
            layoutTest.TestInstanceOfLayout();
            layoutTest.TestSelectLayout();

            Logger.Debug("++++++++++++++++++++++++ Flags Store Test Case +++++++++++++++++++++++++++");
            FlagsStoreTest flagTest = new FlagsStoreTest();

            flagTest.TestFlagProviderInitialize();
            flagTest.TestKeyRegistration();
            flagTest.TestKeyUnregister();

            Logger.Debug("______________________________ End Testing Program __________________________");
            Console.Write("Press any key to continue . . . ");
            Console.ReadKey(true);
        }
コード例 #2
0
        public void DoesEscaping()
        {
            using (var test = new DatabaseTest <Values>())
            {
                test.Create();

                test.Initialize();
                test.Load(GetValueList("dawdaw\\dwadawd", "dwadaw'dwadaw", "\"\"dawdawda\"", "[]|_13155616378899!@#%$^^^(!#@!)@#)!@#!()~?/>;--\\"));
                test.RoundTripCheck();
            }
        }
コード例 #3
0
        public void TestSimpleImport()
        {
            using (var test = new DatabaseTest <Values>())
            {
                test.Create();

                test.Initialize();
                test.Load(GetValueList("test", "test2"));
                test.RoundTripCheck();
            }
        }
コード例 #4
0
 public override void DoTable(Parse table)
 {
     if (isStandAlone)
     {
         SetCollection(DatabaseTest.GetDataTable(
                           Symbols,
                           GetArgumentInput <String>(0),
                           DbEnvironmentFactory.DefaultEnvironment).Rows.GetEnumerator());
     }
     base.DoTable(table);
 }
コード例 #5
0
 public override void DoTable(Parse table)
 {
     if (query == null || symbolName == null)
     {
         if (Args.Length < 2)
         {
             throw new ApplicationException("No query and symbol name specified to StoreQuery constructor or argument list");
         }
         query      = Args[0];
         symbolName = Args[1];
     }
     if (symbolName.StartsWith(">>"))
     {
         symbolName = symbolName.Substring(2);
     }
     Symbols.Save(symbolName, DatabaseTest.GetDataTable(Symbols, query, dbEnvironment));
 }
コード例 #6
0
 public AccountRepositoryTest(DatabaseTest database)
 {
     _database   = database;
     _repository = _database.AccountRepository;
 }
コード例 #7
0
 public TicketRepositoryTest(DatabaseTest databaseTest)
 {
     _database   = databaseTest;
     _repository = _database.TicketRepository;
 }
コード例 #8
0
        public void goToDatabase()
        {
            DatabaseTest _database = new DatabaseTest();

            _database.Show();
        }
コード例 #9
0
 public ConsultantRepositoryTest(DatabaseTest databaseTest)
 {
     _database   = databaseTest;
     _repository = _database.ConsultantRepository;
 }
コード例 #10
0
 public UserRepositoryTest(DatabaseTest databaseTest)
 {
     _database   = databaseTest;
     _repository = _database.UserRepository;
 }