public static async Task <LaunchGameWithSteamInfo> FakeLaunchGameWithSteam(this ILaunchWithSteam mediator, RealVirtualityGame game) { LaunchGameWithSteamInfo parameters = null; A.CallTo(() => mediator.Launch(A <LaunchGameWithSteamInfo> ._)) .Invokes((LaunchGameWithSteamInfo x) => parameters = x) .ReturnsLazily(() => Task.FromResult(default(Process))); await game.Launch((dynamic)mediator); return(parameters); }
protected async Task <Process> LaunchWithSteam(ILaunchWithSteam launcher, LaunchState ls) => await launcher.Launch(await GetSteamLaunchInfo(ls).ConfigureAwait(false)) .ConfigureAwait(false);