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); }
public void DoesEscaping() { using (var test = new DatabaseTest <Values>()) { test.Create(); test.Initialize(); test.Load(GetValueList("dawdaw\\dwadawd", "dwadaw'dwadaw", "\"\"dawdawda\"", "[]|_13155616378899!@#%$^^^(!#@!)@#)!@#!()~?/>;--\\")); test.RoundTripCheck(); } }
public void TestSimpleImport() { using (var test = new DatabaseTest <Values>()) { test.Create(); test.Initialize(); test.Load(GetValueList("test", "test2")); test.RoundTripCheck(); } }
public override void DoTable(Parse table) { if (isStandAlone) { SetCollection(DatabaseTest.GetDataTable( Symbols, GetArgumentInput <String>(0), DbEnvironmentFactory.DefaultEnvironment).Rows.GetEnumerator()); } base.DoTable(table); }
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)); }
public AccountRepositoryTest(DatabaseTest database) { _database = database; _repository = _database.AccountRepository; }
public TicketRepositoryTest(DatabaseTest databaseTest) { _database = databaseTest; _repository = _database.TicketRepository; }
public void goToDatabase() { DatabaseTest _database = new DatabaseTest(); _database.Show(); }
public ConsultantRepositoryTest(DatabaseTest databaseTest) { _database = databaseTest; _repository = _database.ConsultantRepository; }
public UserRepositoryTest(DatabaseTest databaseTest) { _database = databaseTest; _repository = _database.UserRepository; }