Ejemplo n.º 1
0
        public new void SetUp()
        {
            testServer = new RainyTestServer();
            testServer.ScenarioSqlite();
            testServer.Start();

            syncServer = new WebSyncServer(testServer.BaseUri, testServer.GetAccessToken());
        }
Ejemplo n.º 2
0
        public new void SetUp()
        {
            testServer = new RainyTestServer ();
            testServer.ScenarioSqlite ();
            testServer.Start ();

            syncServer = new WebSyncServer (testServer.BaseUri, testServer.GetAccessToken ());
        }
Ejemplo n.º 3
0
        public new void SetUp()
        {
            testServer = new RainyTestServer ();
            if (dbScenario == "postgres") {
                testServer.ScenarioPostgres ();
            } else if (dbScenario == "sqlite" || string.IsNullOrEmpty (dbScenario)) {
                testServer.ScenarioSqlite ();
            }

            testServer.Start ();

            this.connFactory = RainyTestServer.Container.Resolve<IDbConnectionFactory> ();
            using (var db = connFactory.OpenDbConnection ()) {
                testUser = db.First<DBUser> (u => u.Username == RainyTestServer.TEST_USER);
            }
        }
Ejemplo n.º 4
0
        public new void SetUp()
        {
            testServer = new RainyTestServer();
            if (dbScenario == "postgres")
            {
                testServer.ScenarioPostgres();
            }
            else if (dbScenario == "sqlite" || string.IsNullOrEmpty(dbScenario))
            {
                testServer.ScenarioSqlite();
            }

            testServer.Start();

            this.connFactory = RainyTestServer.Container.Resolve <IDbConnectionFactory> ();
            using (var db = connFactory.OpenDbConnection()) {
                testUser = db.First <DBUser> (u => u.Username == RainyTestServer.TEST_USER);
            }
        }