Ejemplo n.º 1
0
        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);
        }
Ejemplo n.º 2
0
 protected async Task <Process> LaunchWithSteam(ILaunchWithSteam launcher, LaunchState ls)
 =>
 await
 launcher.Launch(await GetSteamLaunchInfo(ls).ConfigureAwait(false))
 .ConfigureAwait(false);