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)); }
public async Task InitDatabase() { await DatabaseService.InitDatabase(); CommonDefectsCache.CacheDefects(await ServerDatabaseService.GetAllCommonDefectsFromServer()); }