public void Init()
        {
            SlipstreamEnvironment.Initialize();

            var TestingDatabaseName = ServiceTestCaseBase.TestingDatabaseName;
            var dbDomain            = SlipstreamEnvironment.DbDomains.GetDbDomain(TestingDatabaseName);

            this._dataContext = dbDomain.DataProvider.OpenDataContext(TestingDatabaseName);
        }
Beispiel #2
0
        public void Create_and_delete_database()
        {
            var dbName = "oo_testdb";

            SlipstreamEnvironment.Initialize();
            var hash = SlipstreamEnvironment.Settings.ServerPassword.ToSha();

            var service = SlipstreamEnvironment.RootService;

            service.CreateDatabase(hash, dbName, "admin");
            service.DeleteDatabase(hash, dbName);
        }
Beispiel #3
0
        private static void InitializeFramework(string[] args)
        {
            Debug.Assert(!SlipstreamEnvironment.Initialized);

            var cfg = CreateSettingsFromProgramArgs(args);

            cfg.LogToConsole = true;

            Console.WriteLine("Initializing Slipstream framework...");
            SlipstreamEnvironment.Initialize(cfg);

            Console.WriteLine("Slipstream framework has benn initialized.");

            Console.WriteLine("Log Directory=[{0}],Application Server URL=[{1}]",
                              SlipstreamEnvironment.Settings.LogPath,
                              SlipstreamEnvironment.Settings.RpcBusUrl);
        }
Beispiel #4
0
 public void Init()
 {
     SlipstreamEnvironment.Initialize();
 }