I have am Mocking a method and telling it to return something when called:
mock.Setup(imp => imp.GetDataSegment()).Returns(customDataSegment);