Beispiel #1
0
        private KernelTransaction NewKernelTransaction(long lastTransactionTimestampWhenStarted)
        {
            KernelTransaction txToTerminate = mock(typeof(KernelTransaction));

            when(txToTerminate.LastTransactionTimestampWhenStarted()).thenReturn(lastTransactionTimestampWhenStarted);
            return(txToTerminate);
        }