Can an activity execute another activity?

Hi. Is there a way for an activity to execute a local activity or must this always be done from a workflow?

Of course there is a way of just calling the activity as a method but it makes testing a bit harder since there is no way to override the activity return. It also makes it inconsistent with the other method of calling it with temporal elsewhere with the same activity/method.

Calling activity from an activity is not supported.

it makes testing a bit harder since there is no way to override the activity return

You can inject any dependency into activity structure to simplify testing.