public void Test_DeleteBusinessObject_ConfirmationMessage()
        {
            //---------------Set up test pack-------------------
            MockRepository mockRepository  = new MockRepository();
            string         boToString      = TestUtil.GetRandomString();
            string         expectedMessage = string.Format("Are you certain you want to delete the object '{0}'", boToString);
            IConfirmer     confirmer       = CreateMockConfirmerWithExpectation(mockRepository,
                                                                                Is.Equal(expectedMessage), false);
            IBusinessObject boToDelete = new MockBOWithToString(boToString);
            ConfirmingBusinessObjectDeletor confirmingBusinessObjectDeletor = new ConfirmingBusinessObjectDeletor(confirmer);

            mockRepository.ReplayAll();
            //---------------Assert Precondition----------------
            //---------------Execute Test ----------------------
            confirmingBusinessObjectDeletor.DeleteBusinessObject(boToDelete);
            //---------------Test Result -----------------------
            mockRepository.VerifyAll();
        }
 public void Test_DeleteBusinessObject_ConfirmationMessage()
 {
     //---------------Set up test pack-------------------
     MockRepository mockRepository = new MockRepository();
     string boToString = TestUtil.GetRandomString();
     string expectedMessage = string.Format("Are you certain you want to delete the object '{0}'", boToString);
     IConfirmer confirmer = CreateMockConfirmerWithExpectation(mockRepository, 
         Is.Equal(expectedMessage), false);
     IBusinessObject boToDelete = new MockBOWithToString(boToString);
     ConfirmingBusinessObjectDeletor confirmingBusinessObjectDeletor = new ConfirmingBusinessObjectDeletor(confirmer);
     mockRepository.ReplayAll();
     //---------------Assert Precondition----------------
     //---------------Execute Test ----------------------
     confirmingBusinessObjectDeletor.DeleteBusinessObject(boToDelete);
     //---------------Test Result -----------------------
     mockRepository.VerifyAll();
 }