public async Task ShouldCallTheRestartService( bool resume, [Frozen, Substitute] IGatewayRestartService restartService, [Target] DefaultGatewayService gateway ) { var cancellationToken = new CancellationToken(false); await gateway.Restart(resume, cancellationToken); await restartService.Received().Restart(Is(gateway), Is(resume), Is(cancellationToken)); }