Esempio n. 1
0
        private KernelTransaction MockTransaction(Statement statement)
        {
            KernelTransaction kernelTransaction = mock(typeof(KernelTransaction), new ReturnsDeepStubs());

            when(kernelTransaction.ExecutionStatistics()).thenReturn(_statistics);
            when(kernelTransaction.AcquireStatement()).thenReturn(statement);
            return(kernelTransaction);
        }