Beispiel #1
0
        public static Task InsertTestSessionDataAsync(TestSessionDataId testSessionId)
        {
            var testSessionData = new TestSessionData {
                Id = testSessionId
            };

            return(ExecuteDbContextAsync(db => db.InsertAsync(testSessionData)));
        }
Beispiel #2
0
        public static async Task DatabaseAsync(TestSessionDataId testSessionId)
        {
            using (await Mutex.LockAsync())
            {
                if (_databaseIsInitialized)
                {
                    return;
                }

                _testSessionId = testSessionId;
                if (await TestDataExistsAsync())
                {
                    await Fixture.ResetCheckpoint();
                }

                _databaseIsInitialized = true;
            }
        }
Beispiel #3
0
 internal static Task <TestSessionData> FindTestSessionDataAsync(TestSessionDataId testSessionId)
 {
     return(ExecuteDbContextAsync(db => db.GetAsync <TestSessionData>(testSessionId)));
 }