public void TransactionSync4() { var top = new SyncIJobChunk { }.Schedule(m_Manager.UniversalQuery); Assert.Throws <InvalidOperationException>(() => { // Cant run exclusive transaction while ijob chunk is running new SyncEntityMgrJob { TheManager = m_Manager }.Schedule().Complete(); }); top.Complete(); }
public void TransactionSync1() { var top = new SyncIJobChunk { }.Schedule(m_Manager.UniversalQuery); Assert.Throws <InvalidOperationException>(() => { // Cant run exclusive transaction while ijob chunk is running var exclusive = m_Manager.BeginExclusiveEntityTransaction(); var middle = new SyncMiddleJob { Txn = exclusive }.Schedule(top); }); top.Complete(); }