public void ResetVO() { // Setup AppendTestItemToList("Second"); // For this test, just keep the same order. var desiredSeq = m_testList.PossibilitiesOS.Cast <ICmObject>(); var myvo = CreateTestVO(desiredSeq); // Make sure test setup worked Assert.AreEqual(1, m_voRepo.Count, "There ought to be one VO object."); // SUT VirtualOrderingServices.ResetVO(m_testList, possibilitiesFlid); // Verify Assert.AreEqual(0, m_voRepo.Count, "Test should have deleted the only VO object."); }
internal void RemoveOrdering() { UndoableUnitOfWorkHelper.Do(DetailControlsStrings.ksUndoAlphabeticalOrder, DetailControlsStrings.ksRedoAlphabeticalOrder, Cache.ActionHandlerAccessor, () => VirtualOrderingServices.ResetVO(m_rootObj, m_rootFlid)); }