Пример #1
0
        public async Task <TestResult> InsertTenhousandItems()
        {
            var testResult = new TestResult();

            testResult.TestType = (int)TestType.TenThousandInsert;

            _realmRepository.Clear();
            await _sqliteRepository.Clear();

            // Insert result for realm
            var realmResult = _realmRepository.InsertTenThousandItems();


            // Insert result for Sqlite
            var sqlResult = await _sqliteRepository.InsertTenThousandItems();

            // Save testresult
            testResult.RealmMilliseconds = realmResult;
            testResult.SqlMilliseconds   = sqlResult;

            return(testResult);
        }