public static void UpdateSubmoduleStatusAndWaitForResult(ISubmoduleStatusProvider provider, GitModule module, IReadOnlyList <GitItemStatus> gitStatus) { List <DetailedSubmoduleInfo> result = new List <DetailedSubmoduleInfo>(); provider.StatusUpdated += Provider_StatusUpdated; provider.UpdateSubmodulesStatus( workingDirectory: module.WorkingDir, gitStatus: gitStatus); AsyncTestHelper.WaitForPendingOperations(); provider.StatusUpdated -= Provider_StatusUpdated; return; void Provider_StatusUpdated(object sender, SubmoduleStatusEventArgs e) { } }