单项选择题

______ everything ready for the spring outing, it began to rain.

A. Getting
B. Having
C. When I have got
D. When I had got