Exemplo n.º 1
0
        public void WhenUserStartsClient()
        {
            var config = ChallengeSessionConfig.ForJourneyId(journeyId)
                         .WithServerHostname(challengeHostname)
                         .WithPort(port)
                         .WithColours(true)
                         .WithAuditStream(auditStream)
                         .WithRecordingSystemShouldBeOn(true);

            ChallengeSession.ForRunner(implementationRunner)
            .WithConfig(config)
            .WithActionProvider(actionProviderCallback)
            .Start();
        }
Exemplo n.º 2
0
 public static ChallengeSessionConfig GetConfig() =>
 ChallengeSessionConfig
 .ForJourneyId(CredentialsConfigFile.Get("tdl_journey_id"))
 .WithServerHostname(CredentialsConfigFile.Get("tdl_hostname"))
 .WithColours(CredentialsConfigFile.Get("tdl_use_coloured_output", true))
 .WithRecordingSystemShouldBeOn(CredentialsConfigFile.Get("tdl_require_rec", true));