public void testDeleteAllRecordsRhinoStub()
 {
     RecordsForDB data = new RecordsForDB();
     IDatabase fakeDB = mock.Stub<IDatabase>();
     Assert.AreEqual(100, data.numberOfRecords);
     data.deleteAllRecords(fakeDB);
     Assert.AreEqual(0, data.numberOfRecords);
 }
        public void testDeleteAllRecordsRhinoMock()
        {
            RecordsForDB data = new RecordsForDB();
            IDatabase fakeDB = mock.DynamicMock<IDatabase>();

            //note that this ASSERTING that this function will be called
            fakeDB.executeQuery("DELETE FROM RECORDS");

            mock.ReplayAll();
            Assert.AreEqual(100, data.numberOfRecords);
            data.deleteAllRecords(fakeDB);
            Assert.AreEqual(0, data.numberOfRecords);
            mock.VerifyAll();
        }