Beispiel #1
0
        public void build_the_database_when_the_SessionCache_is_not_EmptySessionCache()
        {
            var connection = Isolate.Fake.Instance <IDbConnection>();
            var session    = IsolateSetupDatabaseMethod(connection);

            _services.InitDatabase();
            Isolate.Verify.WasCalledWithAnyArguments(() => SessionFactoryManager.BuildSchema("TestGenForm", session));
        }
Beispiel #2
0
        public async Task InitDatabase()
        {
            await DatabaseService.InitDatabase();

            CommonDefectsCache.CacheDefects(await ServerDatabaseService.GetAllCommonDefectsFromServer());
        }