I think what you want to do is :
var mockAStub = MockRepository.GenerateStub(); mockAStub.Stub(s => s.GetAllData()).....
classB.GetData();
And maybe asserting the method mockAStub.GetAllData() is called like this :
mockAStub.AssertWasCalled(s => s.GetAllData());
Hope this help